*BSD News Article 10029


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA7040 ; Fri, 15 Jan 93 20:07:27 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!agate!agate.berkeley.edu!cgd
From: cgd@eden.CS.Berkeley.EDU (Chris G. Demetriou)
Newsgroups: comp.unix.bsd
Subject: Re: [386BSD] /etc/spwd.db lost, can't log in
Date: 18 Jan 93 01:28:24
Organization: Kernel Hackers 'r' Us
Lines: 21
Distribution: world
Message-ID: <CGD.93Jan18012824@eden.CS.Berkeley.EDU>
References: <jeremy.727348491@scorpion.ac.cowan.edu.au>
NNTP-Posting-Host: eden.cs.berkeley.edu
In-reply-to: j.laidman@cowan.edu.au's message of 18 Jan 93 09:14:51 GMT

In article <jeremy.727348491@scorpion.ac.cowan.edu.au> j.laidman@cowan.edu.au (Jeremy Laidman) writes:
>Now I can't login in multiuser mode.  It says invalid /etc/spwd.db.
>Is there some way I can make a new one?

boot the puppy single-user, and say "pwd_mkdb" (it's in /usr/sbin)

alternately, if you can only get into single-user mode w/a fixit floppy,
mount your root fs on /mnt, mount the /usr fs on /mnt/usr, and say:

/mnt/usr/sbin/chroot /mnt /usr/sbin/pwd_mkdb

then sync, unmount everything, and reboot...

good luck!

chris
--
Chris G. Demetriou                                    cgd@cs.berkeley.edu

"Sometimes it is better to have twenty million instructions by
        Friday than twenty million instructions per second." -- Wes Clark