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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .