From owner-freebsd-questions Sun Nov 10 11:36: 1 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 DFB6937B401; Sun, 10 Nov 2002 11:35:59 -0800 (PST) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3303943E42; Sun, 10 Nov 2002 11:35:58 -0800 (PST) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id gAAJZs173454; Sun, 10 Nov 2002 13:35:54 -0600 (CST) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20021110133553.00ec9908@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Sun, 10 Nov 2002 13:35:53 -0600 To: Dirk-Willem van Gulik , "Greg 'groggy' Lehey" From: "Jack L. Stone" Subject: Re: Recovering /etc/passwd (was: REASON #7919 NOT to do things as root!) Cc: joe , FreeBSD Questions In-Reply-To: <20021110202138.Q55127-100000@foem.leiden.webweaving.org> References: <20021110015003.GB93051@wantadilla.lemis.com> 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 At 08:23 PM 11.10.2002 +0100, Dirk-Willem van Gulik wrote: > > >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 Just do your own script to run the backups you want..... that's all the other one(s) do.... Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message