Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!garlic.com!fox.almaden.ibm.com!uunet!in1.uu.net!newsfeed.internetmci.com!uwm.edu!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!ensta!itesec!keltia.frmug.fr.net!not-for-mail From: roberto@keltia.freenix.fr (Ollivier Robert) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: corrupt etc/spwd.db Date: 5 May 1996 19:47:06 GMT Organization: Usenet Canal Historique Lines: 18 Message-ID: <4mj0jq$lgg@keltia.freenix.fr> References: <4m9j3i$qcq@netnews.upenn.edu> NNTP-Posting-Host: keltia.freenix.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In article <4m9j3i$qcq@netnews.upenn.edu>, Eric M. Umansky <eumansky@mail1.sas.upenn.edu> wrote: > For unknown reasons, the spwd.db and passwd files seem to have erased > themselves. We have been able to access the files using single user-mode, but > the problem is that we don't know what to put in the spwd.db file. And until If you can still access /etc/master.passwd and it has a valid content, then just issue the following command: pwd_mkdb -p /etc/master.passwd It will then recreate the two databases (pwd.db ad spwd.db) and the passwd file (which is here only for compatibility and not used at all). [[ cc'ed to both addresses ]] -- Ollivier ROBERT -=- FreeBSD: The daemon is FREE! -=- roberto@freebsd.org -=-=-=-=-=-=-=-=-=-=- FreeBSD 2.x FAQ maintainer -=-=-=-=-=-=-=-=-=-=-=-=-