Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Apr 2005 13:30:19 +0200
From:      Ruben de Groot <mail25@bzerk.org>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Suggestions for post rm -rf /etc/*
Message-ID:  <20050417113019.GA16668@ei.bzerk.org>
In-Reply-To: <20050417075241.GA3880@spcrepair.com>
References:  <20050417075241.GA3880@spcrepair.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 17, 2005 at 02:52:41AM -0500, Glen Smith typed:
> Anyone have a suggestion for fixing  a machine three states away after
> you rm -rf * dir/* inside of /etc or am I just screwed. I even had zsh
> ask me if that's what I really want to do. ::sob:: 

Well, asuming you don't have any backups (shame on you!) and you have the
sources installed, you could do

cd /usr/src/etc
make distribution

this will give you back all default files in /etc. Copies of your 
original master.passwd, aliases and group files can be found in 
/var/backups

Ruben



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