From owner-freebsd-isp@FreeBSD.ORG Wed Feb 2 07:41:43 2005 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EB0816A4CF for ; Wed, 2 Feb 2005 07:41:43 +0000 (GMT) Received: from bigass1.bitblock.com (ns1.bitblock.com [66.199.170.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id A378643D1D for ; Wed, 2 Feb 2005 07:41:42 +0000 (GMT) (envelope-from mitch@bitblock.com) Received: from dc1 ([66.199.170.122]) (AUTH: LOGIN mitch@bitblock.com) by bigass1.bitblock.com with esmtp; Wed, 02 Feb 2005 07:41:37 +0000 X-Abuse-Reports: Visit http://www.bitblock.com/abuse.php X-Abuse-Reports: and submit a copy of the message headers X-Abuse-Reports: or review our policies and procedures X-Abuse-Reports: ID= 42008431.0000C0E7.bigass1.bitblock.com,dns; dc1 ([66.199.170.122]),AUTH: LOGIN mitch@bitblock.com From: "Mitch (Bitblock)" To: freebsd-isp@freebsd.org Date: Tue, 1 Feb 2005 23:41:37 -0800 Organization: Bitblock Systems Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.224 Thread-Index: AcUI+qADze1Jr/wkQP2EY7E5Lgc7lg== Message-ID: Subject: Delete/rm/unlink traversal order and chflags - does it make sense to reverse it? X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2005 07:41:43 -0000 Not sure if this is the right place, but thought perhaps the people who share my problem would at least be here ;-) I've been thinking of ways to save users from themselves. Using: chflags sunlnk .ImportantUserData is great for saving themselves from Samba - Samba doesn't descend a directory to delete the contents if there is not access to delete the directory! The shell though, will happily delete the contents of a folder, leaving the skeleton intact. Is there a way to change the shell / unlink function behavior? This is out of my league in C coding, but on the surface, the samba way seems to make more sense. If a "rm -rf /" was stopped before it got started would it be a bad thing? Maybe the key would just be the rm program itself? Just thought I'd see if anyone had comment or a better way. Thanks! m/