Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!uunet!in3.uu.net!208.197.151.4!news.esinet.net!news1.cstone.net!newshost.cyberramp.net!excalibur.flash.net!news-in.iadfw.net!news.gymnet.com!LSNT1!lsbsdi6.lightspeed.net!news-ana-7.sprintlink.net!news-ana-24.sprintlink.net!news-west.sprintlink.net!news-peer.sprintlink.net!news.sprintlink.net!Sprint!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news-feed.inet.tele.dk!nntp.uio.no!news2.interlog.com!news.interlog.com!p atrick.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: 30 Message-ID: <509B9CDCF074E83C.38A2A16D60A8C3CC.5A3267DDCDB656ED@library-proxy.airnews.net> X-Orig-Message-ID: <5modub$ni3@news.interlog.com> References: <5mmqub$g2m@news.interlog.com> <5mn0vn$8kq@ui-gate.utell.co.uk> NNTP-Proxy-Relay: library.airnews.net NNTP-Posting-Host: biceps.gymnet.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:42156 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.