LinuxQuestions.org
Help answer threads with 0 replies.
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 05-06-2005, 02:27 AM   #1
slyman
Member
 
Registered: Jun 2004
Location: Sydney, Australia
Distribution: FC3, Linux From Scratch, Knoppix
Posts: 99

Rep: Reputation: 15
FC3, /dev/dsp permissions changing weirdness


Hi All,

Thought I'd post this just in case anyone else has this problem - took me a while to figure out what was going on, anyway...

At home I have my main PC setup (with FC3) for multiple X logins, so if I am logged in my girlfriend can just press ctrl-alt-F? and get a login of her own which will not effect mine.

A couple of days ago I noticed that if I was already logged in, she did not get any sound.

I though this was interesting because I had:

- Assigned all the audio devices to root:users in /etc/udev/permissions.d/50-udev.permissions

- Both my girlfriend and I are members of users and members of users have rw rights to /dev/[audio devs]

- I have no problem with running multiple applications using sound at the same time

- If my girlfriend was the only person logged in sound was fine, like me above.

Much confusion.

A little experimentation later and I found out that the uid of /dev/dsp was being changed to the first user to log in to X and the gid changed to root when said user logged in, regardless of what I set it to in /etc/udev/permissions.d/50-udev.permissions.

For even more weirdness, if nobody was logged into X, it was set to root:users as how I had set /etc/udev/permissions.d/50-udev.permissions.

After an hour or so of messing around, I discovered that the uid, gid and permissions were being changed by pam, the offending config file being /etc/security/console.perms.

I commented out the neccesary lines like so...

Code:
#<sound>=/dev/dsp* /dev/audio* /dev/midi* \
#	/dev/mixer* /dev/sequencer \
#	/dev/sound/* /dev/beep \
#	/dev/snd/*
...and further down...

Code:
#<console>  0660 <sound>      0660 root.users
...and everything was fine.

I guess you do learn something everyday.

Last edited by slyman; 05-06-2005 at 02:29 AM.
 
  


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
/dev/dsp permissions jon56er Linux - Newbie 4 03-05-2005 05:13 PM
changing file ownership /dev/dsp (doesnt work..) icehenge Linux - General 8 03-12-2004 09:48 PM
/dev/dsp* keep changing back to 600 Gophy Slackware 1 03-01-2004 02:05 PM
keeping permissions on /dev/dsp KingMoffa Linux - General 6 10-24-2003 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:53 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration