LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   chgrp /dev/dsp to audio group, when? (https://www.linuxquestions.org/questions/fedora-35/chgrp-dev-dsp-to-audio-group-when-387884/)

alesz 11-30-2005 08:15 AM

chgrp /dev/dsp to audio group, when?
 
Multiple users cannot play sound when logged on different X displays.

I found a solution to this using a group named audio ang executing the following:
Code:

chmod 660 /dev/dsp && chgrp audio /dev/dsp
But this works until one user does not log off and log in again. I found out that the X logon procedure changes the /dev/dsp permisions to back default 600.

How could I make the setting of 660'ed /dev/dsp persistent?
Could it be done without running a script every time some logs on?

spookt 12-01-2005 06:34 AM

If you're using FC3 or FC4 you've got udev so you'll need to edit the rules to set the group when the device file is created.

Look in /etc/udev/rules.d/50-udev.rules and you will see the line which controls /dev/dsp :

Code:

KERNEL="dsp0",          SYMLINK="dsp"
You should be able to change the default group ownership like this:

Code:

KERNEL="dsp0",          SYMLINK="dsp" ,  GROUP="audio"
Make sure you back up the rules file first (probably to a sepparate directory so udev doesn't try to read both).

I'm sure that instead of altering 50.udev.rules you should create a local rules file but the above should work. If yum or up2date updates udev then I think you may loose the changes.

See man udev for more info.

Hope that helps

Paul


All times are GMT -5. The time now is 03:16 PM.