Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2009 13:47:43 +0100 (CET)
From:      "Bert-Jan" <>
Subject:   Login accounts don't work after update to 7.1
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi Folks,

I just updated one of my servers from 7.0-RC1 to 7.1-RELEASE.

During the first freebsd-update install, before rebooting, I was surprised
to find that it was going to change my /etc/passwd (deleting all my
accounts, keeping only the built-in accounts) and /etc/pwd.db and
/etc/spwd.db. I was quite suspicious so I made copies of them.
After rebooting the machine came back online perfectly. I checked
/etc/passwd but there were no changes yet. Then, as the docs says, I ran
freebsd-update install again and it took quite a while. *Then* my
/etc/passwd was changed, so I replaced it with the spare copy I made. Of
course I had to test it now so I exitted from root back to my own account,
and you guessed it: I can't su anymore:

$ su -
su: who are you?

I started up a second session and found my own account doesn't work
anymore either. So all I have now is an open session with my own account.
I should probably also have copied the two db files back and of course I
should have left my running root session open and started another one. Not
a very bright moment..

Is there a way I can recover the server from this ?
Of course I can put in a cd and change some passwords, but the server is
in a datacenter and I don't really have the time to go there and fix it.
I'm looking for a remote solution.
It's probably not much help but there's one jail running on it that's
still working fine. I can login and su on that one, but I don't know if I
can use it to repair the main system.

Please, help !



Want to link to this message? Use this URL: <>