From owner-freebsd-questions@FreeBSD.ORG Fri Jan 9 17:23:14 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 16BDF106566B for ; Fri, 9 Jan 2009 17:23:14 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: from xps.daemonology.net (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx2.freebsd.org (Postfix) with SMTP id 6E2A214F7AA for ; Fri, 9 Jan 2009 17:23:13 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: (qmail 39884 invoked from network); 9 Jan 2009 17:23:13 -0000 Received: from unknown (HELO xps.daemonology.net) (127.0.0.1) by localhost with SMTP; 9 Jan 2009 17:23:13 -0000 Message-ID: <49678800.8010701@freebsd.org> Date: Fri, 09 Jan 2009 09:23:12 -0800 From: Colin Percival User-Agent: Thunderbird 2.0.0.17 (X11/20081002) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20af5b6d6703bc7b2575a763e7c70822.squirrel@admin.bert-jan.com> <44k595qz3o.fsf@be-well.ilk.org> <9d5014697dd38400633bdcdd89c9e875.squirrel@admin.bert-jan.com> <44aba0xz0o.fsf@be-well.ilk.org> In-Reply-To: <44aba0xz0o.fsf@be-well.ilk.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Bert-Jan Subject: Re: Login accounts don't work after update to 7.1 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: Fri, 09 Jan 2009 17:23:14 -0000 Lowell Gilbert wrote: > "Bert-Jan" writes: >> What is the proper way to handle this ? Can I run a command after the >> update finishes that regenerates the account databases from the >> master.passwd ? I checked the history and *I* never touched it during the >> update, so it was merged like it should. > > I'm not sure what the proper way is; there's certainly code in there to > update the databases automatically, so you *shouldn't* have to do > anything. To do the same thing manually, you can use pwd_mkdb(8). When > you edit the password database with vipw(8), this is handled for you. If freebsd-update installs a new master.passwd file, it will regenerate the databases from it. All I can guess in this case is that freebsd-update couldn't manage to merge updates into master.passwd automatically, and when it opened up the file in an editor for you to fix, you didn't merge things properly. -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid