Fedora 6 - Dell Dimension 8300 - Creative Audigy sound card. Multiuser trouble..

Harald_Jensas at Dell.com Harald_Jensas at Dell.com
Sat Nov 11 11:49:14 CST 2006


Hi,

I have been running FC 6 for a couple of weeks now and I am quite happy with it.
However, there is an issue that I can't get fixed..

I have set up 2 user accounts on the system, and the problem is that only the first user to start a KDE or Gnome session is able to play sound. I also noticed that this is not the case for root.

I figured this must be some kind of permissions in the /dev folder.
I had a look and noticed that several device nodes are created for sound, and all of them get the following permissions:

crw------- username root audio

Where username is the first user to start a session.
By manualy setting the permission on the device nodes in /dev to crw-rw-rw all users that start a session is able to play sounds. But since these device nodes are created by udev these permissions changes are lost after a reboot.


My attempt to solve the problem:

1. Configure udev rules to place sound device nodes in a specific group named audio.
2. Configure udev rules to set permissions on the device nodes to crw-rw----.
3. Make all users that I want to allow playing sounds members of the audio group.

So I edit the audio part of my /dev/etc/udev/rules.d/50-udev.rules

# 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"

After a reboot I check /dev, and I find that not all the settings I specified in udev rules has taken effect:

[harald at c-15b1e055 ~]$ ls -l /dev | grep audio
crw-rw---- 1 root     audio  14,   14 Nov 11 10:23 admmidi
crw-rw---- 1 root     audio  14,   13 Nov 11 10:23 amidi
crw-rw---- 1 root     audio  14,    9 Nov 11 10:23 dmmidi

After a bit more research it turn out the only device node I need to change to be able to play sound is /dev/dsp.

[harald at c-15b1e055 ~]$ ls -l /dev/dsp
crw------- 1 harald root 14, 3 Nov 11 10:23 /dev/dsp


Where do I look next? Anyone got a tip for me?



Regards/Mvh
Harald Jensås




More information about the Linux-Desktops mailing list