fixing /etc/passwd
Marcel Kunath
kunathma@pilot.msu.edu
Tue, 25 Dec 2001 01:21:05 -0500 (EST)
Hello,
I mucked up my user setup in the passwd file.
I added a machine for a PDC. I later deleted it and I must have done it the
wrong way. I now try to add it again and it fails.
The name is
sa$
The files /etc/passwd and /etc/shadow don't have it referenced in it.
I do a
# useradd -g machines -c NTMachine -d /dev/null -s /bin/false sa$
useradd: user sa$ exists
# usermod -g machines -c NTMachine -d /dev/null -s /bin/false sa$
usermod: sa$ not found in /etc/passwd
# userdel sa$
userdel: error deleting password entry
userdel: error deleting shadow password entry
# groups sa$
sa$ : machines
How is this fixable?
Thanks,
mk