From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 2 19:18:33 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 735AE16A4CE for ; Sat, 2 Oct 2004 19:18:33 +0000 (GMT) Received: from mxb.saturn-tech.com (mxb.saturn-tech.com [207.229.19.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CCB543D39 for ; Sat, 2 Oct 2004 19:18:33 +0000 (GMT) (envelope-from drussell@saturn-tech.com) Received: from mxb.saturn-tech.com (localhost [127.0.0.1]) by mxb.saturn-tech.com (8.12.3/8.12.3) with ESMTP id i92JLLKt088571 for ; Sat, 2 Oct 2004 13:21:21 -0600 (MDT) (envelope-from drussell@saturn-tech.com) Received: from localhost (drussell@localhost)i92JLLbm088568 for ; Sat, 2 Oct 2004 13:21:21 -0600 (MDT) (envelope-from drussell@saturn-tech.com) X-Authentication-Warning: mxb.saturn-tech.com: drussell owned process doing -bs Date: Sat, 2 Oct 2004 13:21:21 -0600 (MDT) From: Doug Russell To: freebsd-hackers@freebsd.org In-Reply-To: <1221615358.20041002164846@andric.com> Message-ID: <20041002131621.T88183-100000@mxb.saturn-tech.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: Protection from the dreaded "rm -fr /" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Oct 2004 19:18:33 -0000 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......