From owner-freebsd-questions Tue Jun 25 10:40:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by hub.freebsd.org (Postfix) with ESMTP id 401E937B40B for ; Tue, 25 Jun 2002 10:39:50 -0700 (PDT) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.4/8.12.4) with ESMTP id g5PHdn4W049273; Tue, 25 Jun 2002 18:39:49 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.4/8.12.4/Submit) id g5PHdiBG049272; Tue, 25 Jun 2002 18:39:44 +0100 (BST) Date: Tue, 25 Jun 2002 18:39:44 +0100 From: Matthew Seaman To: Mark Pearce Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: How do I delete files used in a jail Message-ID: <20020625173944.GB15530@happy-idiot-talk.infracaninophi> References: <20020625180143.768902ff.mark@netchat.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020625180143.768902ff.mark@netchat.co.za> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Jun 25, 2002 at 06:01:43PM +0200, Mark Pearce wrote: > I am trying to delete some directories that I was using within a > jail a while back. I try deleting and this is the errors I get: > > Any ideas why ? Perhaps the files have had the immutable flag set. Try: ls -loR jail to see what flags are set. chflags -R 0 jail should recursively remove all flag settings --- if you're running with securelevel >0, then you'll have to reboot to single user mode to get that to work. You chould then be able to rm -rf. Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message