5

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, 2018 at 2:06
  • 1
    sudo usermod -a -G audio USERNAME will work Jan 3, 2018 at 5:25

1 Answer 1

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.