QA – Useradd: unable to lock password file
Posted by cloudflashes on October 27, 2008
Q:
Under Red Hat Linux release 9, use root to add a user, get error message as below:
useradd: unable to lock password file
A:
Needed to remove a lock file
Under the /etc directory, there are some lock files as:
group.lock
gshadow.lock
passwd.lock
shadow.lock
or
.pwck.lock
.pwd.lock
Remove them.