From owner-freebsd-questions Sun Nov 10 11:23:28 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5965837B401; Sun, 10 Nov 2002 11:23:27 -0800 (PST) Received: from foem.leiden.webweaving.org (fia224-72.dsl.hccnet.nl [62.251.72.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69CC243E7B; Sun, 10 Nov 2002 11:23:25 -0800 (PST) (envelope-from dirkx@webweaving.org) Received: from foem (foem [10.11.0.2]) by foem.leiden.webweaving.org (8.12.6/8.12.6) with ESMTP id gAAJNDv7057057 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 10 Nov 2002 20:23:13 +0100 (CET) (envelope-from dirkx@webweaving.org) Date: Sun, 10 Nov 2002 20:23:13 +0100 (CET) From: Dirk-Willem van Gulik X-X-Sender: dirkx@foem.leiden.webweaving.org To: "Greg 'groggy' Lehey" Cc: joe , FreeBSD Questions Subject: Re: Recovering /etc/passwd (was: REASON #7919 NOT to do things as root!) In-Reply-To: <20021110015003.GB93051@wantadilla.lemis.com> Message-ID: <20021110202138.Q55127-100000@foem.leiden.webweaving.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 10 Nov 2002, Greg 'groggy' Lehey wrote: > # pwd_mkdb -p /etc/master.passwd > > /etc/passwd doesn't get used much any more. The real files are > /etc/pwd.db and /etc/spwd.db. See the man page for pwd_mkdb for more > details. And the files in /var/backups/ used by the periodic script have saved my bacon more than once. ls /var/backups aliases.bak group.bak master.passwd.bak aliases.bak2 group.bak2 master.passwd.bak2 One would almost wish that things like the /etc/rc.conf, named and *mc files where there too :-) Dw To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message