Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 2000 23:55:54 -0700
From:      "Crist J . Clark" <cjclark@reflexnet.net>
To:        Spades <spades@galaxynet.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: passwd
Message-ID:  <20000918235554.K367@149.211.6.64.reflexcom.com>
In-Reply-To: <3.0.32.20000919143501.009fdc40@smtp.magix.com.sg>; from spades@galaxynet.org on Tue, Sep 19, 2000 at 02:35:01PM %2B0800
References:  <3.0.32.20000919143501.009fdc40@smtp.magix.com.sg>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 19, 2000 at 02:35:01PM +0800, Spades wrote:
> At 09:50 PM 9/18/00 -0700, you wrote:
> >On Tue, Sep 19, 2000 at 12:30:43PM +0800, Spades wrote:
> >>   I overwritten my /etc/passwd with /etc/adduser.conf and accidentally
> >> rebooted, now the passwds all cannot work. When i rename /etc/master.passwd
> >> to /etc/passwd, it might work too.
> >> 
> >>   When I run the passwd command, I get an error saying that the
> /etc/pwd.db 
> >> is an incorrect file type or format. It looks like both, the /etc/pwd.db 
> >> and /etc/spwd.db are corrupted.  I am trying to get something working so 
> >> that i can log in.  
> >> 
> >> Any idea?
> >
> >If you still have an intact master.passwd, just boot into single user,
> >
> >  # pwd_mkdb -p /etc/master.passwd
> >
> >And you're set.
> 
> Server will not boot into single mode.

Well, how are you getting into root with corrupted password files?
Anyway, just run it as root.

Why won't it boot into single user? (If that is what you need to do to
get root.)
-- 
Crist J. Clark                           cjclark@alum.mit.edu


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000918235554.K367>