LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 11-30-2005, 09:15 AM   #1
alesz
Member
 
Registered: Mar 2005
Distribution: FC5 on disk, Knoppix as LiveCD
Posts: 48

Rep: Reputation: 15
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?
 
Old 12-01-2005, 07:34 AM   #2
spookt
LQ Newbie
 
Registered: Dec 2003
Location: North East UK
Distribution: Red Hat / Fedora
Posts: 11

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
devfs and devfsd don't create /dev/dsp or /dev/sound/dsp ? behmjose Linux - Hardware 2 10-02-2006 01:27 PM
No /dev/dsp /dev/mixer etc david.skinner Linux - Software 2 05-19-2005 03:28 AM
XMMS problem : ** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): sureshrk19 Slackware 4 04-01-2004 10:17 PM
/dev/dsp + device busy/no audio + esd mghere Linux - Newbie 7 12-12-2003 12:51 AM
Audio: /dev/dsp can't be opened marcheikens Linux - Newbie 2 08-27-2003 10:36 AM


All times are GMT -5. The time now is 11:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration