14

In order to play audio (espeak or aplay for example) I have to be root (via sudo). How can I do those as just a regular user? Is there a group I must be a member of or do I have to change some permissions somewhere? Thanks.

2 Answers 2

7

The user has to be in the audio group:

gpasswd -a [user] audio
9

have you tried:

adduser <username> audio

as suggested here, or:

usermod -a -G audio <username>

as suggested here.

1
  • It's good to suggest adduser and addgroup rather than more primitive alternatives. Dec 5, 2012 at 18:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.