Cannot lock '/etc/group' in recovery mode

I’ve currently booted into recovery mode, because I removed my sole user from admin :/

When I run adduser oadams admin, I get gpasswd: cannot lock /etc/group; try again later.

For what it’s worth, ls /etc/ | grep "lock", returns only mtab.fuselock, so there’s nothing to delete.

How can I get my user back in the admin group?

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

Check that you are root


Check that the root partition is mounted read-write

cat /proc/mounts

If you see that your partition is mounted as ro (read-only), try remounting it as rw

mount -o remount,rw /

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply