Re: Multiply X users: ownership conflicts of sound devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mikkel L. Ellertson wrote:
> Paulo Cavalcanti wrote:
>>
>> How to add the audio group in Fedora 6.
>>
>> 1) Change /etc/security/console.perms.d/50-default.perms
>> # <console>  0600 <sound>      0600 root
>> <console>  0660 <sound>      0660 root.audio
>>
>> 2) Create a file /etc/udev/rules.d/52-sound.rules with the following
>> contents:
>> # audio devices
>> KERNEL=="dsp*",                 GROUP="audio", Mode="0660"
>> KERNEL=="audio*",               GROUP="audio", Mode="0660"
>> KERNEL=="midi*",                GROUP="audio", Mode="0660"
>> KERNEL=="mixer*",               GROUP="audio", Mode="0660"
>> KERNEL=="sequencer*",           GROUP="audio", Mode="0660"
>> KERNEL=="sound/*",              GROUP="audio", Mode="0660"
>> KERNEL=="snd/*",                GROUP="audio", Mode="0660"
>> KERNEL=="beep",                 GROUP="audio", Mode="0660"
>> KERNEL=="admm*",                GROUP="audio", Mode="0660"
>> KERNEL=="adsp*",                GROUP="audio", Mode="0660"
>> KERNEL=="aload*",               GROUP="audio", Mode="0660"
>> KERNEL=="amidi*",               GROUP="audio", Mode="0660"
>> KERNEL=="dmfm*",                GROUP="audio", Mode="0660"
>> KERNEL=="dmmidi*",              GROUP="audio", Mode="0660"
>> KERNEL=="sndstat",              GROUP="audio", Mode="0660"
>>
>> 3) Create a group "audio" and add all users allowed to access
>> the audio devices.
>>
> One problem with this - console.perms will overwrite this when the
> ownership of the console changes. From
> /etc/security/console.perms.d/50-default.perms
> 
> <sound>=/dev/dsp* /dev/audio* /dev/midi* \
>         /dev/mixer* /dev/sequencer* \
>         /dev/sound/* /dev/beep \
>         /dev/snd/* /dev/adsp*
> 
Oops - on reading this again, it didn't come out right. The udev
rules should not be necessary - the console.perms rules should be
all that are needed, as they will set both the permissions and
ownership of the device, and is called from udev when the devices
are created. If you need them, you can add more devices to the sound
section of the console.perms rules.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux