Date: Sat, 2 Oct 2004 10:55:32 -0600 From: Tillman Hodgson <tillman@seekingfire.com> To: freebsd-hackers@freebsd.org Subject: Re: Protection from the dreaded "rm -fr /" Message-ID: <20041002165532.GQ35869@seekingfire.com> In-Reply-To: <1221615358.20041002164846@andric.com> References: <20041002081928.GA21439@gothmog.gr> <1221615358.20041002164846@andric.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 02, 2004 at 04:48:46PM +0200, Dimitry Andric wrote: > Of course, your work is commendable, but isn't is much simpler to just > not type commands like that? I mean, "rm -rf /etc" or "rm -rf /bin" > are just as bad, but do you really want to be checking for all > possible `bad' deletions? That way, we'll start to look like some > software from Redmond... :) `rm -rf /etc` works the way one would expect (removes the etc branch of the filesystem tree). `rm -rf /` is a special case -- it's unlikely to succeed. Additionally, it's a common typo. If it doesn't do what an admin expects, and it's a common typo, removing the ability for it to fail by removing the ability for it to be used makes a lot of sense to me. -T -- Wisdom is not communicable. The wisdom which a wise man tries to communicate always sounds foolish. Hermann Hesse
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041002165532.GQ35869>