11

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.

7

The user has to be in the audio group:

gpasswd -a [user] audio
8

have you tried:

adduser <username> audio

as suggested here, or:

usermod -a -G audio <username>

as suggested here.

  • It's good to suggest adduser and addgroup rather than more primitive alternatives. – John Baber-Lucero Dec 5 '12 at 18:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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