Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jul 2007 16:30:38 -0500
From:      David Kelly <dkelly@hiwaay.net>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        freebsd-questions@freebsd.org, Peter Boosten <peter@boosten.org>
Subject:   Re: password failure- after mergmaster
Message-ID:  <20070709213038.GA66595@Grumpy.DynDNS.org>
In-Reply-To: <77FE6039-9C53-4579-BCD6-C7C7199D37A6@mac.com>
References:  <3A85D7EF44E1C744BF6434691F5659E9702CFD@www.fcimail.org> <20070709201750.GA66218@Grumpy.DynDNS.org> <469299A6.4090006@boosten.org> <77FE6039-9C53-4579-BCD6-C7C7199D37A6@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 09, 2007 at 01:29:44PM -0700, Chuck Swiger wrote:
> On Jul 9, 2007, at 1:25 PM, Peter Boosten wrote:
> >
> >Having read this I must admit that it's a complete mystery to me why
> >mergemaster would touch your password file at all...
> 
> Because sometimes new versions of the OS come with new built-in user  
> accounts, which need to be added to the existing passwd or groups  
> databases somehow?

Yes, exactly. Have to *merge* the changes into /etc/master.passwd rather
than brute force overwrite.

Notice the difference from my first post in this thread, the file which
was clobbered is /etc/master.passwd, not just /etc/passwd which is a
dummy file generated from master.passwd.

In single user he can "mount -a" to get all the filesystems mounted
read/write, then extract /etc/master.passwd file from his level 0 dump.
But once again it needs to be diff'ed against the "new" version written
by mergemaster to see why mergemaster changed it.

Then the password databases need to be rebuilt. The easiest way (and
only way I remember without manpage surfing) is to run vipw and
trivially change the master password file. On exit vipw rebuilds the
password databases with pwd_mkdb(8) (I had to look that up).

-- 
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.



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