From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 3 01:29:21 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 BF1A816A4DE for ; Sun, 3 Oct 2004 01:29:21 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E22943D46 for ; Sun, 3 Oct 2004 01:29:21 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (harmony.village.org [10.0.0.6]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id i931PqwG069174; Sat, 2 Oct 2004 19:25:56 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 02 Oct 2004 19:27:21 -0600 (MDT) Message-Id: <20041002.192721.110809394.imp@bsdimp.com> To: tillman@seekingfire.com From: "M. Warner Losh" In-Reply-To: <20041002165155.GP35869@seekingfire.com> References: <200410021123.59811.max@love2party.net> <20041002102430.Y5481@thor.farley.org> <20041002165155.GP35869@seekingfire.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org 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: Sun, 03 Oct 2004 01:29:22 -0000 In message: <20041002165155.GP35869@seekingfire.com> Tillman Hodgson writes: : On Sat, Oct 02, 2004 at 10:42:16AM -0500, Sean Farley wrote: : > Why not default on? root will not run 'rm -rf /' on purpose very often. : > Once will be enough. :) Also, when and why would someone want to do : > this? : : Exactly. Who would expect `rm -rf /` to actually succeed? It's not only : dangerous, it doesn't work in a useful way ;-) I would. I would expect it to work in a chroot I no longer wanted, for example. Warner