From owner-freebsd-questions Sun Oct 17 11:40: 4 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 53CA514F32 for ; Sun, 17 Oct 1999 11:40:01 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id NAA73046; Sun, 17 Oct 1999 13:39:51 -0500 (CDT) (envelope-from dan) Date: Sun, 17 Oct 1999 13:39:51 -0500 From: Dan Nelson To: bill slaybaugh Cc: FreeBSD List Subject: Re: lost my /etc/spwd.db Message-ID: <19991017133951.A72953@dan.emsphone.com> References: <380A136F.9787AA37@bright.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i In-Reply-To: <380A136F.9787AA37@bright.net>; from slay3241@bright.net on Sun, Oct 17, 1999 at 02:20:31PM -0400 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Oct 17), bill slaybaugh said: > After an extended round of disk grinding, trying to swap some > free-space my netscape session bombed out. I am pretty new to > FreeBSD and I didn't know what to make of a repeated message: "no > such file or directory - /etc/spwd.db" I smelled trouble when I tried > to su to root in xterm and got "who are you?" After rebooting the > machine and failing to get in as root or anyone I began to realize I > had lost my password file. NOW WHAT? If you still have a master.passwd you can rebuild spwd.db by running "pwd_mkdb /etc/paster.passwd". If master.passwd is gone as well, check /var/backups which usually stores the last two revisions of master.passwd. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message