LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Sound error (permission denied in /dev directory) (https://www.linuxquestions.org/questions/debian-26/sound-error-permission-denied-in-dev-directory-170837/)

davidas 04-16-2004 04:32 AM

Sound error (permission denied in /dev directory)
 
I've install LICQ, but as recommend by the package, I also install SOX. Then I start LICQ as a normal user. Whenever there is incoming message (a sound accompanies it), I have the following error on the terminal:

sox: Can't open output file '/dev/dsp': Permission denied
playing /usr/share/licq/sounds/icq/Message.wav
sox: Can't open output file '/dev/dsp': Permission denied
playing /usr/share/licq/sounds/icq/Message.wav

Is this the correct permission for the dsp file in /dev?

david:/dev# ls -l dsp
crw-rw---- 1 root audio 14, 3 Mar 15 2002 dsp

All the files in /dev seems to be owned by root though. Does that mean I can only run LICQ as root to have the sound properly played?

Thanks !

portux 04-16-2004 05:37 AM

You should have the file writable (and readble) by others.

"crw-rw-rw- 1 root audio 14, 3 Mar 15 2002 dsp"

davidas 04-16-2004 07:11 AM

What command can I use to list those in 'Audio' group?

Thanks :)

sterrenkijker 04-16-2004 07:18 AM

that's a way to do it, the more proper way is adding your user to the group audio:

adduser username audio

choose for username your own username.

I've had the same problem. Quite stupid the user isn't added to the audio group automatically...

davidas 04-16-2004 09:43 AM

I've added the user into the audio group. However, the same error persists:

david@xdavid:~$
** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): Permission denied

Is there any command to list the users in 'Audio' group for me to verify?

PS. Running Xmms as root works perfectly.

Thanks !

Quote:

Originally posted by sterrenkijker
that's a way to do it, the more proper way is adding your user to the group audio:

adduser username audio

choose for username your own username.

I've had the same problem. Quite stupid the user isn't added to the audio group automatically...


mrcheeks 04-16-2004 12:29 PM

su
chmod a+rwx /dev/dsp* /dev/mixer*

ps: avoid X usage as root

chika.tambun 05-05-2009 03:51 PM

the finest solution for "Failed to open audio device (/dev/dsp): Permission denied"
 
@mrcheeks
that way too much

just

chika:/etc $ sudo chmod o+rw dsp

[then make sure that it show like this]
chika:/etc $ ls -la dsp
....
crw-rw-rw- 1 root audio 14, 3 2009-05-06 02:40 dsp
....

the trooper 05-05-2009 04:01 PM

Have you seen the date on this thread?

chika.tambun 05-06-2009 07:54 AM

nope
 
but, i come with the same problem
n the solution is there... i just send the conclusion

btw, thanks 4 reply


add me ym: chika.tambun

oʌǝɹ 05-06-2009 12:29 PM

First user created is automatically added to video and audio group. Next ones need to be added manually.
I've never found a command to list users present in a group but
grep audio /etc/group will give you the list of users minus the user that has the same name, if any:
user:x:1000:
audio:x:29:user


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