From owner-freebsd-questions Wed Nov 13 18: 7:50 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 CAFAD37B401 for ; Wed, 13 Nov 2002 18:07:48 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D7EB43E3B for ; Wed, 13 Nov 2002 18:07:47 -0800 (PST) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr530-b200.otenet.gr [212.205.244.208]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id gAE27YAL005597; Thu, 14 Nov 2002 04:07:34 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id gAE27NNP000656; Thu, 14 Nov 2002 04:07:33 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id gADMIADF099518; Thu, 14 Nov 2002 00:18:10 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Thu, 14 Nov 2002 00:18:09 +0200 From: Giorgos Keramidas To: "Gary W. Swearingen" Cc: Dirk-Willem van Gulik , freebsd-questions@freebsd.org Subject: Re: Recovering /etc/passwd (was: REASON #7919 NOT to do things as root!) Message-ID: <20021113221809.GB98372@gothmog.gr> References: <20021110202138.Q55127-100000@foem.leiden.webweaving.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 2002-11-11 11:57, "Gary W. Swearingen" wrote: > Dirk-Willem van Gulik writes: > > One would almost wish that things like the /etc/rc.conf, named and *mc > > files where there too :-) > > One guru who used to post here frequently kept /etc in CVS (and I suppose > that he backed that up). Well, if you are really one of the devoted believers of the alt.religion.cvs group, that's not really *very* hard to do. Keeping files directly under CVS control can get tricky, especially when permissions are involved. But... you can always roll your own branch of /usr/src/etc in a local CVS repository, and use the merging capabilities of CVS to keep the files in sync with the current FreeBSD source. If you are interested in -STABLE which rarely changes, you'll find that it's not really hard to keep your local branch in sync with the FreeBSD source. Then you can check out a copy of the local branch in /tmp/etc and use a good old tool, that we all know about, mergemaster(1): # mergemaster -m /tmp/etc The trick here is that you can use the nice, working Makefiles of FreeBSD and mergemaster, to update your /etc from a local branch, which accidentally happens to include all the proper changes for your local setup :-) Giorgos. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message