Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2002 00:18:09 +0200
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        "Gary W. Swearingen" <swear@attbi.com>
Cc:        Dirk-Willem van Gulik <dirkx@webweaving.org>, freebsd-questions@freebsd.org
Subject:   Re: Recovering /etc/passwd (was: REASON #7919 NOT to do things as root!)
Message-ID:  <20021113221809.GB98372@gothmog.gr>
In-Reply-To: <kfadkfhobp.dkf@localhost.localdomain>
References:  <20021110202138.Q55127-100000@foem.leiden.webweaving.org> <kfadkfhobp.dkf@localhost.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-11-11 11:57, "Gary W. Swearingen" <swear@attbi.com> wrote:
> Dirk-Willem van Gulik <dirkx@webweaving.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021113221809.GB98372>