Date: Sat, 2 Oct 2004 20:57:04 +0300 From: Giorgos Keramidas <keramida@freebsd.org> To: Lee Harr <missive@hotmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Protection from the dreaded "rm -fr /" Message-ID: <20041002175704.GB2230@gothmog.gr> In-Reply-To: <BAY2-F27PUPeKljq65R00014185@hotmail.com> References: <BAY2-F27PUPeKljq65R00014185@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-10-02 21:23, Lee Harr <missive@hotmail.com> wrote: > >John Beck, who works for Sun, has posted an entry in his blog yesterday > >about "rm -fr /" protection, which I liked a lot: > >http://blogs.sun.com/roller/page/jbeck/20041001#rm_rf_protection > > > >His idea was remarkably simple, so I went ahead and wrote this patch for > >rm(1) of FreeBSD: > > How about: > > chflags sunlnk / > ? Setting sunlink on / will only protect the / directory, not its descendants, so you don't gain much.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041002175704.GB2230>