LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-15-2004, 02:41 PM   #1
downinthemine
Member
 
Registered: Jul 2003
Location: Silver Spring, MD
Distribution: Xubuntu
Posts: 167

Rep: Reputation: 30
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
 
Old 01-15-2004, 02:46 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
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
 
Old 01-15-2004, 07:44 PM   #3
downinthemine
Member
 
Registered: Jul 2003
Location: Silver Spring, MD
Distribution: Xubuntu
Posts: 167

Original Poster
Rep: Reputation: 30
That did not work, but I did do chmod a+rw /dev/dsp0. Will that have the same effect?
 
Old 01-15-2004, 07:51 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
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 ).
 
Old 01-15-2004, 07:58 PM   #5
downinthemine
Member
 
Registered: Jul 2003
Location: Silver Spring, MD
Distribution: Xubuntu
Posts: 167

Original Poster
Rep: Reputation: 30
There is no audio group on my machine and none of my groups seem to be audio.
 
Old 01-15-2004, 08:10 PM   #6
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
So what group is either /dev/audio or /dev/dsp under? ( These maybe only links so find the group of what their linked too. )
 
Old 01-15-2004, 08:34 PM   #7
downinthemine
Member
 
Registered: Jul 2003
Location: Silver Spring, MD
Distribution: Xubuntu
Posts: 167

Original Poster
Rep: Reputation: 30
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
 
Old 01-15-2004, 08:44 PM   #8
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
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.

Last edited by leonscape; 01-15-2004 at 08:46 PM.
 
  


Reply



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
gui login failed despite users created. but Text mode + root + startx works OK Emmanuel_uk VectorLinux 2 11-21-2005 03:41 PM
FC3 No Sound As User Works As Root AliasMrJones Fedora 2 01-22-2005 05:34 PM
Sound works as root but not as user? n0x Linux - Hardware 2 09-11-2004 07:27 AM
sound works in root - no sound in user - Debian seanb Debian 9 02-28-2004 12:42 AM
sound works with root not user shanenin Linux - Software 3 10-29-2003 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:55 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
Open Source Consulting | Domain Registration