adduser not working - unable to lock passwd
I am running RH 7.2 (I think. It's 7.x for sure. It's been up for so long) as a samba and web server for internal network. Recently, I tried to add a user using linuxconf but did not work. I tried "useradd", but it could not be executed because it can not "lock the password file".
(exact output is - useradd: unable to lock password file)
I ended up adding the users by manually creating the
home directories and vi-ing the /etc/passwd and /etc/shadow
files, copying all the .bash* files etc. from another existing home directory, chown-ing (-R) the home directories, then running passwd <newuser>.
I ran fuser to see if there is any process (like another session of linuxconf I fogot to close, etc.) using passwd or shadow, but there seems to be no other process accessing the file.
Can anyone help me with figuring out what is going on?