LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-27-2003, 02:57 AM   #1
marcheikens
Member
 
Registered: Aug 2003
Location: Cleveland, OH
Distribution: Ubuntu 6.06
Posts: 66

Rep: Reputation: 15
Audio: /dev/dsp can't be opened


I have seen that this is a common problem, but I can't fix it the way that seems normal:

On loading KDE, I get a message that there was an "Error while initializing the sound driver: device /dev/dsp can't be opened (Permission denied)"

This is a single-user system, but as I'm learning, I have a few accounts.

I had this problem a couple days ago, and realized that somehow the owner on a bunch of my devices in /dev/ were changed to one of my users (I still can't figure out how that happened), so I went through and fixed them, changing the owner to root when applicable. Then I made an audio group, and did chown root.audio on the following devices:

/dev/audio
/dev/audio1
/dev/audioctl
/dev/dsp

That fixed it. Wonderful. It worked great until tonight, when I logged in as a different user, and had the same problem--somehow the owner/group went back to root/root for these devices...upon changing them back, I still get the error message. I am quite confused. How can these permissions be changed when I'm not changing them?

Another question, what exactly are the correct owners/groups for most files in /dev/ ?

Thanks for any help--

-Marc

Last edited by marcheikens; 08-27-2003 at 02:58 AM.
 
Old 08-27-2003, 04:05 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Code:
How can these permissions be changed when I'm not changing them?
PAM, that's how. look at /etc/security/console.perms (i think) and edit if you wish to lower the securtiy to the relevant device groups.
 
Old 08-27-2003, 10:36 AM   #3
marcheikens
Member
 
Registered: Aug 2003
Location: Cleveland, OH
Distribution: Ubuntu 6.06
Posts: 66

Original Poster
Rep: Reputation: 15
There's a file there...I don't exactly know how to edit it. Funny thing though, this morning things work again. Sometimes I'm amazed...Thanks--

-Marc
 
  


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
No sound, /dev/dsp can't be opened. DarkDrive Linux - Hardware 23 12-04-2004 09:13 PM
/dev/dsp cannot be opened blanks Linux - Hardware 4 06-16-2004 11:59 PM
dev/dsp can't be opened cijunet Linux - General 3 12-03-2002 10:12 PM
dev/dsp can't be opened cijunet Linux - Newbie 1 12-03-2002 04:52 PM
Device /dev/dsp can't be opened... MatMan5959 Linux - Hardware 4 06-20-2002 12:13 PM


All times are GMT -5. The time now is 06:14 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration