LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   device /dev/dsp can't be opened (https://www.linuxquestions.org/questions/linux-software-2/device-dev-dsp-cant-be-opened-80028/)

kalif 08-07-2003 10:15 PM

device /dev/dsp can't be opened
 
every time i run the kde window system i recieve this message when it first starts up. i would like to have sound but have thusfar been running without it. i have looked everywhere on the net for solutions to this problem but none have been much assistance except for teaching me many things i did not know but did not need to know. i have slackware 8.1 installed and can provide any other information anyone needs to help me with this problem.

thanks in advance,
ryan

itsjustme 08-07-2003 10:30 PM

Take a look at this search result on '/dev/dsp' here at LQ:

http://www.linuxquestions.org/questi...der=descending

There's probably a chmod or ln solution in there.

What are the permissions for /dev/dsp on your system?

regards...

gNY 08-08-2003 07:11 AM

On my system Debian Woody, I used the following to get sound to work.

Give proper permission to the file
chmod 666 /dev/dsp

Add users to the group for audio
gpasswd -a <your login name> audio

Strike 08-08-2003 08:07 AM

Quote:

Originally posted by gNY
On my system Debian Woody, I used the following to get sound to work.

Give proper permission to the file
chmod 666 /dev/dsp

Add users to the group for audio
gpasswd -a <your login name> audio

This is half right and half evil. Never chmod 666 /dev/dsp. Its permissions should be 660, and it should be owned by root.audio. Then, anyone in the audio group has read/write access to it.

gNY 08-08-2003 08:59 AM

Good advice. I will implement this ASAP.

Thanks
George

kalif 08-09-2003 12:34 AM

alright i have now chmoded the /dev/dsp... and as with all the other tries to chmod /dev/dsp it has gained me nothing... anything else i could try:Pengy:

MasterC 08-09-2003 12:41 AM

Is that right? Odd..

Can you post up the following:
ls -l /dev/dsp
lsmod
And:
lspci -v

Cool

MasterC 08-09-2003 12:43 AM

Quote:

Originally posted by Strike
This is half right and half evil. Never chmod 666 /dev/dsp. Its permissions should be 660, and it should be owned by root.audio. Then, anyone in the audio group has read/write access to it.
I'm no uber security nut, but would certainly like to know of any holes ;) I too follow this scheme, but only because "I was told to" previously. But could you expand on the need to secure your dsp device from world reading/writing? Thanks for any info ;)

Cool

Strike 08-09-2003 03:01 AM

Quote:

Originally posted by MasterC
I'm no uber security nut, but would certainly like to know of any holes ;) I too follow this scheme, but only because "I was told to" previously. But could you expand on the need to secure your dsp device from world reading/writing? Thanks for any info ;)

Cool

Well it's not as severe a security risk as many permissions problems can be, it's more of a "prevent a source of potential annoyances" than anything else. If you chmod 666 /dev/dsp and then go for years forgetting about that and then you start handing out shell accounts to people, you may find yourself listetning to someone cat'ing /dev/urandom into /dev/dsp in the middle of the night :) That and it's just the perfect thing to use the unix permissions model for that it makes no sense to pass up the perfect opportunity to acquaint yourself with it.

MasterC 08-09-2003 03:06 AM

Sounds good to me ;) Thanks for the follow up!

Cool

kalif 08-09-2003 05:16 PM

alright...

ls -l /dev/dsp spits out the following:
crw-rw---- 1 root sys 14, 3 Jul 18 1994 /dev/dsp

lsmod spits out the following:
Module Size Used by Not tainted
soundcore 3236 0 (autoclean)
tulip_cb 31872 2
cb_enabler 2528 2 [tulip_cb]
ds 6624 4 [cb_enabler]
i82365 22416 2
pcmcia_core 40896 0 [cb_enabler ds i82365]
ide-scsi 7456 0

lspci -v spits out the following:
pcilib: Cannot open /proc/bus/pci/06/00.0
lspci: Unable to read 64 bytes of configuration space.

kalif 08-10-2003 07:16 PM

well, i posted the outputs of the 3 commands you wanted me to run... any ideas what could be wrong?

benchcomptons 08-10-2003 08:26 PM

I'm having the same problem right now. No sound in KDE or Gnome.

http://www.linuxquestions.org/questi...651#post416651

MasterC 08-11-2003 12:29 AM

Is your user a member of group sys? If not, add them to that group and see if that fixes it (although, i don't see a sound module loaded for a soundcard, and the lspci bit is kind of confusing..).

Cool

kalif 08-11-2003 07:06 AM

my user that i am trying to do this with is root... would that have a difference?


All times are GMT -5. The time now is 04:01 PM.