Protection from the dreaded "rm -fr /"

Doug Russell drussell at saturn-tech.com
Sat Oct 2 12:18:33 PDT 2004


On Sat, 2 Oct 2004, 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... :)

There are many times where sanity checking is an absolute must, but I
think it should be implemented in the shell, or a safety later of some
kind in those instances where it is necessary, not in the actual workings
of the system itself, IMHO.

Later......						<Doug>



More information about the freebsd-hackers mailing list