Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 2000 21:50:50 -0700
From:      "Crist J . Clark" <cjclark@reflexnet.net>
To:        Spades <spades@galaxynet.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: passwd
Message-ID:  <20000918215050.G367@149.211.6.64.reflexcom.com>
In-Reply-To: <3.0.32.20000919123043.013bda10@smtp.magix.com.sg>; from spades@galaxynet.org on Tue, Sep 19, 2000 at 12:30:43PM %2B0800
References:  <3.0.32.20000919123043.013bda10@smtp.magix.com.sg>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
-- 
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?20000918215050.G367>