Subject: Re: HELP system is screwed up passwd trouble
To: None <vodka@intoxicate.us>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-users
Date: 09/22/2002 23:41:25
On Fri, Sep 20, 2002 at 11:02:59AM -0500, vodka@intoxicate.us wrote:
> Hi,
> 
> I upgraded my 1.5.3 system to 1.6 and some things screwed up.  Somehow I
> can't change my password anymore, or use passwd.  When I use passwd I get
> the following error:
> 
> passwd: /etc/master.passwd: entry inconsistent
> passwd: /etc/master.passwd: file unchanged
> 
> Does anyone know why??
> 
> Also I copied my old master.passwd and my passwd to /etc after I upgraded
> and none of the passwords work.  I have to fix this ASAP, so if anyone can
> help me it will be much appreciated.

The text files are not used by the system, the system uses db files
/etc/pwd.db and /etc/spwd.db. After copying master.passwd, you need to
rebuild the db files with: pwd_mkdb -p /etc/master.passwd

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--