You are not logged in.

#1 2010-12-31 20:37:13

iso
Member
Registered: 2008-12-27
Posts: 46

[Solved] Audio works for root, but not any other users

I have a dell dimension e521, to which the audio card did not work out of the box.  After following some steps [1] I was able to get sound, but only if when I run the file with sudo.

Does anyone have any idea why this is, and what I can do to prevent using sudo?

Thanks for the help

1. http://art.ubuntuforums.org/showthread.php?t=670318

Last edited by iso (2010-12-31 22:26:39)

Offline

#2 2010-12-31 20:39:05

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: [Solved] Audio works for root, but not any other users

Your user is in the audio group?


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#3 2010-12-31 21:08:27

iso
Member
Registered: 2008-12-27
Posts: 46

Re: [Solved] Audio works for root, but not any other users

Good catch.  My user is not in the audio group, but for some reason there doesn't seem to be an audio group, so one of the other groups is probably the one that I want to add.  the groups that the root user belongs to are: root bin daemon sys adm disk wheel log

I am also having problems adding my user to an additional group.

`usermod -a -G wheel chris` should add the user chris to the wheel group right?  For some reason it does nothing.

**UPDATE: after logging out my groups were updated.  Unfortunately, after adding all the groups the root user belongs to I am still unable to get any sound.

Last edited by iso (2010-12-31 21:22:07)

Offline

#4 2010-12-31 21:26:13

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: [Solved] Audio works for root, but not any other users

You installed alsa-utils right?  I am pretty sure that is what creates the audio group.


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#5 2010-12-31 21:35:55

iso
Member
Registered: 2008-12-27
Posts: 46

Re: [Solved] Audio works for root, but not any other users

yes alsa-utils are installed

Offline

#6 2010-12-31 21:52:56

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: [Solved] Audio works for root, but not any other users

iso wrote:

`usermod -a -G wheel chris` should add the user chris to the wheel group right?  For some reason it does nothing.

**UPDATE: after logging out my groups were updated.  Unfortunately, after adding all the groups the root user belongs to I am still unable to get any sound.

Shouldn't it be your user added to the audio group rather than root? Your user would have to be in the wheel group to do sudo by default

Running (as root/sudo)

gpasswd -a chris audio

will add user CHRIS to group AUDIO.

As user, what is the output of

id

. For comparison mine is

[21:52:00] SS4 ~/clementine/build $  id                                                                                                                                                                    
uid=1000(SS4) gid=100(users) groups=100(users),7(lp),10(wheel),91(video),92(audio),93(optical),94(floppy),95(storage),98(power)

edit: have you checked to see if alsamixer has any channels muted?

Last edited by SS4 (2010-12-31 21:55:10)


Rauchen verboten

Offline

#7 2010-12-31 22:11:01

iso
Member
Registered: 2008-12-27
Posts: 46

Re: [Solved] Audio works for root, but not any other users

gpasswd did add the seemingly non-existent audio group to my user and things now work.

Would you care to elaborate on why gpasswd worked when usermod didn't?

Thanks for the help.

Offline

#8 2010-12-31 22:14:36

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: [Solved] Audio works for root, but not any other users

You used usermod to add Chris to the Wheel group rather than the Audio group


Rauchen verboten

Offline

#9 2010-12-31 22:26:16

iso
Member
Registered: 2008-12-27
Posts: 46

Re: [Solved] Audio works for root, but not any other users

I did previously tried adding my user to the audio group, but it seemed that the group didn't exist.

305  useradd -G audio chris
306  usermod -a -G audio chris
307  sudo usermod -a -G audio chris
315  sudo usermod -a -G audio chris
456  history | grep audio

Thanks again

Last edited by iso (2010-12-31 22:30:34)

Offline

Board footer

Powered by FluxBB