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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux