Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Jan 2009 09:23:12 -0800
From:      Colin Percival <cperciva@freebsd.org>
To:        freebsd-questions@freebsd.org
Cc:        Bert-Jan <info@bert-jan.com>
Subject:   Re: Login accounts don't work after update to 7.1
Message-ID:  <49678800.8010701@freebsd.org>
In-Reply-To: <44aba0xz0o.fsf@be-well.ilk.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>

next in thread | previous in thread | raw e-mail | index | archive | help
Lowell Gilbert wrote:
> "Bert-Jan" <info@bert-jan.com> 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



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