From owner-freebsd-questions@FreeBSD.ORG Thu May 8 04:43:28 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93F0737B401 for ; Thu, 8 May 2003 04:43:28 -0700 (PDT) Received: from catflap.home.slightlystrange.org (pc1-cmbg1-4-cust43.cmbg.cable.ntl.com [62.253.133.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A05143F85 for ; Thu, 8 May 2003 04:43:27 -0700 (PDT) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 19Djof-000J7c-00 for freebsd-questions@freebsd.org; Thu, 08 May 2003 12:44:01 +0100 Date: Thu, 8 May 2003 12:44:01 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20030508114401.GA73030@catflap.home.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <200305081325.36007.ajacoutot@lphp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200305081325.36007.ajacoutot@lphp.org> User-Agent: Mutt/1.4.1i X-Scanner: exiscan *19Djof-000J7c-00*sccA5Fnknl2* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) Subject: Re: rm: Operation not permitted X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dan@slightlystrange.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2003 11:43:28 -0000 On Thu, May 08, 2003 at 01:25:36PM +0200, Antoine Jacoutot wrote: > Hi ! > > I have a ERASE/empty/ directory in /root, and when I want to erase this > folder, I get the following error: > # rm -Rf ERASE/ > rm: ERASE/empty: Operation not permitted > rm: ERASE/: Directory not empty > > I chmod everything to 777 but still get the same error (as root !). > Is there any way I can get read of those folders ? Try # ls -lo /root/ERASE You will probably see that the directory empty has the "schg" flag set. This tells the kernel not to allow any alterations to flagged object. To remove it, you will need to remove the flag - # chflags -R noschg ERASE will do the trick. You can then remove ERASE and its contents. man chflags(1) for more details. Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \