Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-22-2005, 04:45 AM   #1
Registered: Jun 2004
Location: Australia
Distribution: Ubuntu 5.04
Posts: 55

Rep: Reputation: 15
Gnome altered permissions in /dev

Hello all,

I recently logged in as one of my other users who is set up to run Gnome (I'm intending my mother to eventually use this account). Anyway, after adding a few desktop shortcuts and removing a few minor panel items I logged out and logged back in as me (I use KDE). On logging in I get an error message from Alsa about /dev/dsp. I have a look, and the other user I was using before has claimed ownership to a bunch of files in /dev and set permissions to 600. The files in questions are apm*, audio*, beep, console, dsp*, fb* plus others. The user was not root, nor did I use su at anytime.

My question is, how and why did this happen, and what is the easiest way to fix it? Is there a way to "undo" the commands? I don't want to reset the permissions because I'm not sure what they originally were.

Thanks for any advice.


Old 03-22-2005, 10:21 PM   #2
Registered: Mar 2005
Posts: 59

Rep: Reputation: 15
ummm... if this helps, which it may not, every file you named (on my machine) is listed has permissions set to 600, except audio1 which has permissions set to 777. and they are all owned by root. if i were you i'd just chmod and chown everything, log in as the user on gnome and root in different tty's and look to see what is changing it... then probably summit a bug report respectively... post what you find out, because i use gnome...
Old 03-23-2005, 01:37 AM   #3
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
sounds like the esound daemon which gnome uses by default as the software sound mixer is still holding on to /dev/dsp. you can 'su -' then run 'lsof /dev/dsp' to see what process is locking the /dev/dsp. if you had a soundcard which supported hardware mixing then this wouldn't be an issue as multiple connections to /dev/dsp would be allowed. KDE by default uses arts for its software audio mixing and when it finds that /dev/dsp is in use by something else on login then it can throw an error like you are experiencing. the permissions on your devices sound fine but if you are paranoid you can use /dev/MAKEDEV to recreate the devices in /dev, see 'man MAKEDEV' or google for makedev for more information on how to use this.
Old 03-23-2005, 06:38 AM   #4
Registered: Jun 2004
Location: Australia
Distribution: Ubuntu 5.04
Posts: 55

Original Poster
Rep: Reputation: 15
Thanks kryptonite for the info. I ended doing pretty much that and changing the permissions. I haven't run into any problems yet so I think they are OK (I chowned and set 600 and 660, depending on what seemed appropriate).

anonobomber, I think you might be right about all the sound stuff. I remember I clicked the volume control applet in gnome and might have moved the slider, so that might have done something. Thanks for the tip about makedev, if I run into problems I'll try that method.

If I work it out I'll post back.




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
Gentoo /dev permissions Orkie Linux - Distributions 2 07-12-2005 03:33 PM
/dev/dsp permissions jon56er Linux - Newbie 4 03-05-2005 05:13 PM
/dev/null permissions? alaios Linux - General 2 10-09-2004 03:56 PM
/dev permissions mdk Mandriva 2 09-16-2004 10:12 PM
/dev Permissions ToeShot Linux - General 2 11-25-2001 06:30 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:49 PM.

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