Hello,
On a FreeBSD 10.0-RELEASE-p1 machine I edited my full user name in /etc/master.passwd and /etc/passwd and ran
To cut a long story short, I ran (from memory)
Thanks,
Sprock
On a FreeBSD 10.0-RELEASE-p1 machine I edited my full user name in /etc/master.passwd and /etc/passwd and ran
pwd_mkdb -u myuser master.passwd
which reported no errors, then pwd_mkdb -u myuser passwd
which reported an error on line 3 of the file ("inappropriate format"). That line is for the root user. I then ran (from memory) pw show -n root
and pasted the result back into /etc/passwd. The pwd_mkdb command then reported the error on line 4.To cut a long story short, I ran (from memory)
pwd show -a >> /etc/passwd.
. I then ran pwd_mkdb /etc/passwd
which reported no errors. However, I cannot now either log in as root nor su root
. I am still logged in to the machine as my user. I am reluctant to log out. I looked in /var/backups, which is empty (the machine has never been left running overnight). Can someone please tell me how I may recover from this situation? I have the FreeBSD 10 bootonly installation CD.Thanks,
Sprock