Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Unable to login after upgrade [SOLVED]



On Wed, 29 Oct 2008, Daniel Carosone wrote:

On Wed, Oct 29, 2008 at 12:42:21PM +0100, Claus Andersen wrote:
# ls -l /usr/bin/su
-r-sr-xr-x  1 0  wheel  18971 Oct 28 01:48 /usr/bin/su

You've somehow botched the upgrade/merge of the master.passwd file, or
maybe of the [s]pwd.db database files that are generated from it.

Sounds reasonable. How do I fix that? rm /etc/passwd; rm
/etc/master.passwd - create new /etc/passwd and then mkdb_passwd?

You need to fix (possibly with a hammer by recreating, if you can't
spot the specific problem) the master.passwd file (not passwd) then
mkdb it to generate the others.

Thanks alot - that did the trick! I had got into my head that master.passwd was built from passwd. Seems like naming conventions does have a significance then :-)

For archive reference the hammer applied was:

Boot to single user and...

# fsck -Y /
# mount -u /
# rm /etc/passwd
# chmod 777 /etc/master.passwd
# rm /etc/master.passwd
# echo root:*:0:0::0:0:Charlie \&:/root:/bin/ksh > /etc/master.passwd
# /usr/sbin/pwd_mkdb -d / -p /etc/master.passwd
# passwd
# shutdown -r now

I was now able to change the root password and boot into multiuser. I have since then put in remaining default users and am a happy camper again.

--
Rgds,
Claus


Home | Main Index | Thread Index | Old Index