Re: Multiply X users: ownership conflicts of sound devices

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

 



Paulo Cavalcanti wrote:
>> I tried to change the permissions of some of the sound devices
>> to "rw-rw-rw", but either that doesn't work or I forgot a device
>> (which devices are relevant here?).
> 
>> Can somebody give me some clues what to do in this case?
> 
> Hi,
> 
> 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*

and

<console>  0600 <sound>      0600 root

So the permissions will get changed back to 0600 and the owner will
ether be root, or the owner of the console. (The user logged into
the first X secession in this case.)

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