Multiply X users: ownership conflicts of sound devices
Mikkel L. Ellertson
mikkel at infinity-ltd.com
Thu Jan 18 23:36:49 UTC 2007
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!
More information about the fedora-list
mailing list