Usermod: Cannot Lock /Etc/Passwd

Usermod: Cannot Lock /Etc/Passwd

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

1 Answer

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

Chloe Bennett
Author

Chloe Bennett

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.