I am running an Ubuntu Server (with ebox/zentyal installed). I believe it uses a combination of LDAP users and local users but I currently cannot login (through SSH) with any of them.
I was trying to fix a user problem on another box I was playing around with and accidentally pasted the following commands from a forum:
rm /etc/passwd pwconv rm /etc/shadow cp /etc/passwd- /etc/passwd pwconv
So I am hoping I fixed my passwd file by restoring it from the
/etc/passwd-, but I still can't login with my admin user (I still have a root terminal open though).
Any ideas on how to at least get my admin user to login through ssh again (it's a local user, not an LDAP one)?
I tried setting a new password with
passwd admin but I am getting an
Authentication Token Manipulation Error (which was the problem I was trying to solve in the first place).
Tried Danny's fix below:
root@server:/etc# useradd -G admin kribor root@server:/etc# passwd kribor passwd: Authentication token manipulation error passwd: password unchanged