Permission denied for /dev/dsp

If you are new to YDL and have some more or less basic questions.

Permission denied for /dev/dsp

Postby shuuhen » 31 Oct 2004, 23:33

Sound works for root, but not my normal account. While loggin in, I'm getting a message saying there's a problem initializing the sound driver. It seems that permission is denied to /dev/dsp, but I don't know what permissions are supposed to be. Currently the permissions for /dev/dsp are cr-------- with owner and group set as root.

Does anyone know what the problem is? If not can someone who has the sound working tell me what the permissions are supposed to be for /dev/dsp.
User avatar
shuuhen
ydl newbie
ydl newbie
 
Posts: 12
Joined: 07 Sep 2004, 02:40

Postby StarKnight83 » 01 Nov 2004, 17:01

Id check and make sure that your user is in the "audio" group
Til our paths cross again
User avatar
StarKnight83
Moderator
Moderator
 
Posts: 959
Joined: 12 Jul 2004, 16:26
Location: Ft. Wayne, IN; USA

Postby shuuhen » 05 Nov 2004, 04:51

I don't seem to have an 'audio' group. It would be in /etc/group, right? groups tells me my normal login is only a member of it's own group.
User avatar
shuuhen
ydl newbie
ydl newbie
 
Posts: 12
Joined: 07 Sep 2004, 02:40

Postby shuuhen » 09 Nov 2004, 06:49

It seems to be fixed now. The audio group was missing. I added it to the list of groups (should I have made it a system group?), changed the permissions to 660, changed the ownership to root:audio, then added my user to the audio group.
User avatar
shuuhen
ydl newbie
ydl newbie
 
Posts: 12
Joined: 07 Sep 2004, 02:40

Postby StarKnight83 » 09 Nov 2004, 14:28

I noticed that myself the other day (no audio group) though i have sound for my system (ibook g4).
Til our paths cross again
User avatar
StarKnight83
Moderator
Moderator
 
Posts: 959
Joined: 12 Jul 2004, 16:26
Location: Ft. Wayne, IN; USA

Postby shuuhen » 10 Nov 2004, 02:31

When I booted my computer today the permissions were back to 600 with root as owner and group again. It works if I make the permissions changes, log out, then log in again, but that's not something I want to do each time I start up my comp. I have a few things to try though.

No audio group, but you have sound? Interesting. What does it say for permissions?
User avatar
shuuhen
ydl newbie
ydl newbie
 
Posts: 12
Joined: 07 Sep 2004, 02:40

Postby StarKnight83 » 10 Nov 2004, 14:30

heres the output of "ls -al /dev/dsp*"
crw------- 1 root wheel 0, 0x00000e03 10 Aug 20:55 dev/dsp
lrwxr-xr-x 1 root wheel 3 5 Nov 13:03 dev/dsp0 -> dsp
crw------- 1 root wheel 0, 0x00000e13 10 Aug 20:55 dev/dsp1
crw------- 1 root wheel 0, 0x00003700 10 Aug 20:55 dev/dsp56k

It appears that adding your user to wheel group (always good for you-allows su to root) should do the trick. They gave all permisions to /dev/dsp0 which is a syslink to /dev/dsp while in the wheel group; so their using the wheel group w/ a syslink to the appropriate device to eliminate the audio group. I maybe wrong in this but thats what it looks like to me
Til our paths cross again
User avatar
StarKnight83
Moderator
Moderator
 
Posts: 959
Joined: 12 Jul 2004, 16:26
Location: Ft. Wayne, IN; USA

Postby shuuhen » 11 Nov 2004, 19:31

Well, now my sound is working again. The install of glib was screwed up (probably when I tried to updated it from source), so I reinstalled it with yum. After that the sound started working.

After reinstalling glib, I got this output from 'ls -al /dev/dsp*':
crw------- 1 shuuhen root 14, 3 Jan 30 2003 /dev/dsp
crw------- 1 shuuhen root 14, 19 Jan 30 2003 /dev/dsp1
crw------- 1 shuuhen root 55, 0 Jan 30 2003 /dev/dsp56k

I know I'm not a member of the 'wheel' group, but I can su to root. What I remember doing was adding myself to the /etc/sudoers file. Weird thing though, I now don't see myself in the sudoers file, but I can su to root.
User avatar
shuuhen
ydl newbie
ydl newbie
 
Posts: 12
Joined: 07 Sep 2004, 02:40


Return to Beginner

Who is online

Users browsing this forum: No registered users and 33 guests

cron