From owner-freebsd-security Thu Jan 2 4:38:28 2003 Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55F8737B401 for ; Thu, 2 Jan 2003 04:38:25 -0800 (PST) Received: from hotmail.com (f25.law10.hotmail.com [64.4.15.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12D3043EB2 for ; Thu, 2 Jan 2003 04:38:25 -0800 (PST) (envelope-from elite_bizkit@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 2 Jan 2003 04:32:40 -0800 Received: from 81.6.253.64 by lw10fd.law10.hotmail.msn.com with HTTP; Thu, 02 Jan 2003 12:32:40 GMT X-Originating-IP: [81.6.253.64] From: "Elite Bizkit" To: haupt@outof.ch Cc: freebsd-security@FreeBSD.org Subject: Re: Removing a Jail Date: Thu, 02 Jan 2003 12:32:40 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 02 Jan 2003 12:32:40.0765 (UTC) FILETIME=[0A7EDED0:01C2B25B] Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I logged into single user mode (pressing space at prompt then useing boot -s), ran "chflags -R noschg /usr/jail" and got the following message "chflags: not found". I tried "man chflags" but that also returned "man: not found". Are these not available in single user mode? or have I done something wrong? - BiZKiT >From: Emanuel Haupt >To: "Elite Bizkit" >CC: freebsd-security@FreeBSD.org >Subject: Re: Removing a Jail >Date: Thu, 2 Jan 2003 13:17:44 +0100 > >On Thu, 02 Jan 2003 09:56:02 +0000 >"Elite Bizkit" wrote: > > > Ah I see, "sh MAKEDEV jail" creates a device inside the jail, so if I >run > > "rm -fr /usr/jail" the device will be removed aswell? > >usually you can't delete jails just by rm due to there are several files >with 'schg' flags. depending on your security level you have to boot to >single user mode and chflags (man 1 chflags) them in order to be able to >remove it: > >$ chflags -R noschg /your/jaildir >$ rm -rf /your/jaildir > > > > > - BiZKiT > > >emanuel _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message