Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2003 05:55:21 -0500
From:      "Jacques A. Vidrine" <nectar@FreeBSD.org>
To:        Vallo Kallaste <vallo@estcard.ee>, freebsd-current@freebsd.org, Tim Robbins <tjr@FreeBSD.ORG>
Subject:   Re: Somethings still up with new NSS?
Message-ID:  <20030428105521.GB2676@madman.celabo.org>
In-Reply-To: <20030428190209.A21656@dilbert.robbins.dropbear.id.au> <20030428080505.GA1474@chihiro.leafy.idv.tw> <20030428075916.GA53857@myhakas.internal>
References:  <20030428075916.GA53857@myhakas.internal> <20030428190209.A21656@dilbert.robbins.dropbear.id.au> <20030428075916.GA53857@myhakas.internal> <20030428080505.GA1474@chihiro.leafy.idv.tw> <20030428075916.GA53857@myhakas.internal>

next in thread | previous in thread | raw e-mail | index | archive | help
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@celabo.org . jvidrine@verio.net . nectar@freebsd.org . nectar@kth.se



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030428105521.GB2676>