-----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-----
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to