From owner-freebsd-questions Mon Sep 18 23:36:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp4.singnet.com.sg (smtp4.singnet.com.sg [165.21.101.224]) by hub.freebsd.org (Postfix) with ESMTP id 3C24737B423 for ; Mon, 18 Sep 2000 23:36:51 -0700 (PDT) Received: from netserver01 (ad202.166.107.59.magix.com.sg [202.166.107.59]) by smtp4.singnet.com.sg (8.11.0/8.11.0) with SMTP id e8J6bcZ04999; Tue, 19 Sep 2000 14:37:38 +0800 (SGT) Message-Id: <3.0.32.20000919143501.009fdc40@smtp.magix.com.sg> X-Sender: spades@smtp.magix.com.sg X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Tue, 19 Sep 2000 14:35:01 +0800 To: cjclark@alum.mit.edu From: Spades Subject: Re: passwd Cc: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Server will not boot into single mode. 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. >-- >Crist J. Clark cjclark@alum.mit.edu > Spades (CService5) CService Nick Password http://www.cservice.galaxynet.org ` _ , ' - (o)o) - -*-*-*-*-*-*-*-ooO'(_)--Ooo-*-*-*- Bryan, Lee Chenghui | ICQ UIN: 1558635 | spades@galaxynet.org | Global - irc.provalue.net | Operator- services.galaxynet.org | ================================= "A man of words and not of deeds is like a garden full of weeds..." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message