*BSD News Article 96580


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!newsfeeds.sol.net!nntp.uio.no!news2.interlog.com!news.interlog.com!patrick.interlog.com!patrick
From: Patrick McConnell <patrick@patrick.interlog.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help: password db corrupt
Date: 31 May 1997 05:45:30 GMT
Organization: InterLog Internet Services
Lines: 29
Message-ID: <5modub$ni3@news.interlog.com>
References: <5mmqub$g2m@news.interlog.com> <5mn0vn$8kq@ui-gate.utell.co.uk>
NNTP-Posting-Host: patrick.interlog.com
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970516; i386 FreeBSD 2.2.2-RELEASE]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:41932

Thanks to all who responded so quickly. I didn't know it would be so easy
to fix. The system's backup of master.passwd combined with my backup of
passwd managed to get things going again. I had myself scared for a bit
there...

Thanks again,

Patrick


Brian Somers <brian@shift.utell.net> wrote:
> In article <5mmqub$g2m@news.interlog.com>,
> 	patrick@interlog.com (Patrick McConnell) writes:
> > I guess I've done something stupid, and now my password database is 
> > corrupt. I believe what happened was I over-wrote the /etc/pwd.db file. 
[...]
> > 
> > Ok, so if you're finished laughing, does anyone have any suggestions?

> Pant pant (wipes smirk from face).  Hate that !

> master.passwd is the original - the reset are derivations.

> You should have a copy of master.passwd in /var/backups.  Do a
> "mount -a -u -t nonfs" and copy it to /etc.  Then do a
> "pwd_mkdb master.passwd" to create *pwd.db and do a "vipw"
> and a :wq to create your passwd file.  You may not even need
> the pwd_mkdb step.