LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Sound works for root and first user created, no one else (https://www.linuxquestions.org/questions/linux-hardware-18/sound-works-for-root-and-first-user-created-no-one-else-135163/)

downinthemine 01-15-2004 02:41 PM

Sound works for root and first user created, no one else
 
The title explains it all. In X, my sound works for both root (just logged into Gnome as root to test, not my normal operating procedure) and my main user. However, I tried to create a second user and that user has no sound. I get an error that no suitable device was found and it routes the sound to /dev/null. Some details:

Slack 9.1 (and loving it)
Dell Inspiron 4000
700MHZ
256MB RAM
ESS Maestro sound card
ATI Rage Mobility 8MB

leonscape 01-15-2004 02:46 PM

Check your permissions on the sound devices. Your new user might not be a member of the group thats allowed to access the sound devices. The group is usually called audio. To add someone to that group type:

adduser theuser audio

Check your sound devices for the proper group for you:

ls -l /dev/dsp0

downinthemine 01-15-2004 07:44 PM

That did not work, but I did do chmod a+rw /dev/dsp0. Will that have the same effect?

leonscape 01-15-2004 07:51 PM

It will be less secure, and their are other devices as well so you'd have to chmod them all which could get very risky. Their maybe other problems as well, depending on what sound system your using ( OSS/ALSA ) /dev/dsp may not actually be the device being used for sound.

If you look under /dev you'll see a lot of devices listed with the audio group. ( if thats what its called on your machine ).

downinthemine 01-15-2004 07:58 PM

There is no audio group on my machine and none of my groups seem to be audio.

leonscape 01-15-2004 08:10 PM

So what group is either /dev/audio or /dev/dsp under? ( These maybe only links so find the group of what their linked too. )

downinthemine 01-15-2004 08:34 PM

Here is what I have right now:

Code:

root@slacktop:/dev# ls -l audio
lrwxrwxrwx    1 root    root            6 Dec 18 13:00 audio -> audio0
root@slacktop:/dev# ls -l audio0
crw-------    1 andy    sys      14,  4 Aug 29 03:47 audio0
root@slacktop:/dev# ls -l audio1
crw-------    1 andy    sys      14,  20 Aug 29 03:47 audio1
root@slacktop:/dev# ls -l audio2
crw-------    1 andy    sys      14,  36 Aug 29 03:47 audio2
root@slacktop:/dev# ls -l audio3
crw-------    1 andy    sys      14,  52 Aug 29 03:47 audio3
root@slacktop:/dev# ls -l dsp
lrwxrwxrwx    1 root    root            4 Dec 18 13:00 dsp -> dsp0
root@slacktop:/dev# ls -l dsp0
crw-------    1 andy    sys      14,  3 Aug 29 03:47 dsp0
root@slacktop:/dev# ls -l dsp1
crw-------    1 andy    sys      14,  19 Aug 29 03:47 dsp1
root@slacktop:/dev# ls -l dsp2
crw-------    1 andy    sys      14,  35 Aug 29 03:47 dsp2
root@slacktop:/dev# ls -l dsp3
crw-------    1 andy    sys      14,  51 Aug 29 03:47 dsp3


leonscape 01-15-2004 08:44 PM

So their assigned the group sys. Andy was your primary login. If you look at the permissions only andy is allowed access to the devices ( root is always allowed acces to everthing regardless ). you'll probably have too chmod g+rw audio* and chmod g+rw dsp* and add the new user to the sys group. This should get everthing working.

It rather annoying that the groups aren't set up for permissions to start with. Check your video permissions as well as OpenGL probably won't work for anyone but andy either.


All times are GMT -5. The time now is 05:32 PM.