Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Jul 2007 22:27:52 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        David Kelly <dkelly@hiwaay.net>
Cc:        Jean-Paul Natola <jnatola@familycareintl.org>, freebsd-questions@freebsd.org
Subject:   Re: password failure- after mergmaster
Message-ID:  <4692A858.2090106@infracaninophile.co.uk>
In-Reply-To: <20070709201750.GA66218@Grumpy.DynDNS.org>
References:  <3A85D7EF44E1C744BF6434691F5659E9702CFD@www.fcimail.org> <20070709201750.GA66218@Grumpy.DynDNS.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

David Kelly wrote:
> On Mon, Jul 09, 2007 at 04:06:01PM -0400, Jean-Paul Natola wrote:
>> OOOPSS-
>>
>> I got mergemaster to run- but now that the system restarted the root password
>> and my password are invalid-
>>
>> I can ONLY start in single user mode-
> 
> You let mergemaster clobber the password file.
> 
> So in single user, "mount -a", then use vipw to recreate your accounts
> in the password database. On exit from vipw use passwd to set the
> passwords. 
> 

Note that there will be a backup copy of the master.passwd file in
/var/backups/master.passwd.bak -- the will be possibly more than one
backup copy in that directory.  These are created by the nightly
periodic script:

/etc/periodic/daily/200.backup-passwd

which is enabled by default. As these run overnight the backed-up
copy should pre-date your adventures with mergemaster.  Verify that
the contents are sensible, then copy it back to /etc/master.passwd
and run pwd_mkdb(8) to generate /etc/passwd and /etc/pwd.db from it.

	Cheers,

	Matthew

- --
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGkqhX8Mjk52CukIwRCFanAKCF+mkgAZoNVE1fbjHU3HrC/LQIsACfU5tz
wb0lxphVnCmkHb7Zd79npFc=
=w67I
-----END PGP SIGNATURE-----



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