Suggestions for post rm -rf /etc/*
Glen Smith
gesmith at spcrepair.com
Sun Apr 17 09:28:07 PDT 2005
Hi Ruben
On Sun, 17 Apr 2005, Ruben de Groot wrote:
> 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
How I love FreeBSD more and more. Thanks alot. This really helped. Oh
yeah, shame on me.
Sincerely,
Glen Smith
--
IT/Network Administrator
Smith's PC Repair & Consulting
http://www.spcrepair.com
More information about the freebsd-questions
mailing list