From owner-freebsd-questions@FreeBSD.ORG Mon Jul 9 21:28:12 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D37D616A41F for ; Mon, 9 Jul 2007 21:28:12 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id 374DF13C447 for ; Mon, 9 Jul 2007 21:28:11 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.1/8.14.1) with ESMTP id l69LRqpd036478; Mon, 9 Jul 2007 22:27:53 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=permerror; spf=permerror X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk l69LRqpd036478 Message-ID: <4692A858.2090106@infracaninophile.co.uk> Date: Mon, 09 Jul 2007 22:27:52 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.4 (X11/20070619) MIME-Version: 1.0 To: David Kelly References: <3A85D7EF44E1C744BF6434691F5659E9702CFD@www.fcimail.org> <20070709201750.GA66218@Grumpy.DynDNS.org> In-Reply-To: <20070709201750.GA66218@Grumpy.DynDNS.org> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Mon, 09 Jul 2007 22:28:03 +0100 (BST) X-Virus-Scanned: ClamAV 0.90.3/3616/Mon Jul 9 20:27:14 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00, DKIM_POLICY_SIGNSOME, DKIM_POLICY_TESTING, NO_RELAYS autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on happy-idiot-talk.infracaninophile.co.uk Cc: Jean-Paul Natola , freebsd-questions@freebsd.org Subject: Re: password failure- after mergmaster X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2007 21:28:12 -0000 -----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-----