Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

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.

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

The user has to be in the audio group:

gpasswd -a [user] audio
share|improve this answer
add comment

have you tried:

adduser <username> audio

as suggested here, or:

usermod -a -G audio <username>

as suggested here.

share|improve this answer
    
It's good to suggest adduser and addgroup rather than more primitive alternatives. –  John Baber Dec 5 '12 at 18:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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