On Mon, Apr 28, 2003 at 10:59:16AM +0300, Vallo Kallaste wrote: > Hi > > Some moments ago "lost" all the users on my remote home system. Not > a big problem, but here's what I did. Sources (and world) are from > Apr 26. Seems like a problem with new ondisk format of spwd.db or > similar. > Sequence which broke: > logged on remotely > su to root, changed inetd.conf file to enable ftpd, killall -HUP > inetd > back to normal user, changed my password with passwd(1) > tried to connect to ftpd, no luck > As I had ssh session still up, looked into logfiles and found that > root user does not exist, hmm.. tried to su -, same story, tried su > to normal user.. you got the idea. > On Mon, Apr 28, 2003 at 04:05:05PM +0800, leafy wrote: > This is a *me too* post. > What I did was "portinstall postgresql" and during the install phase, > it complained about "postgre user disappeared during update" and my root > user was gone too. A 'vipw' saved my ass but can I be sure that it won't > happen again? On Mon, Apr 28, 2003 at 07:02:09PM +1000, Tim Robbins wrote: > I had this happen to me. In my case, I changed my shell, logged out, then > tried to log back in again. The console showed that sshd couldn't find my > account, and I don't think it couldn find the privsep account either. I could > not log in as root at the console either. I fixed the problem by booting > single-user and re-running pwd_mkdb. The entries in master.passwd and passwd > were correct, but I think that for some reason they weren't being read > correctly from the database. I thought the relative dearth of critical bug reports so far was too good to be true :-) Sounds like I have introduced a bug into `pwd_mkdb -u', which is the common denominator in your reports. `passwd', `chsh', `pw' all use `pwd_mkdb -u', whereas vipw uses plain `pwd_mkdb'. I will look at it closely today! Meanwhile, if this happens to you, just run `vipw' or `pwd_mkdb' to rebuild your database. Cheers, -- Jacques Vidrine . NTT/Verio SME . FreeBSD UNIX . Heimdal nectar_at_celabo.org . jvidrine_at_verio.net . nectar_at_freebsd.org . nectar_at_kth.seReceived on Mon Apr 28 2003 - 01:55:24 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:05 UTC