4

I get this massage: usermod: Permission denied. usermod: cannot lock /etc/passwd; try again later after trying to add myself to audio group by: usermod -a -G audio USERNAME.

I would be grateful for any help.

2
  • 3
    Did you try prefacing the command with sudo? – J. Starnes Jan 3 '18 at 2:06
  • 1
    sudo usermod -a -G audio USERNAME will work – Harsh Patel Jan 3 '18 at 5:25
6

You need to run usermod as root, you can do this with sudo:

sudo usermod -a -G audio USERNAME

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.