From owner-freebsd-security Thu Jan 2 6: 7:24 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 06E7037B401 for ; Thu, 2 Jan 2003 06:07:20 -0800 (PST) Received: from datastorm.kicks-ass.org (datastorm.kicks-ass.org [202.22.160.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4305943EA9 for ; Thu, 2 Jan 2003 06:07:18 -0800 (PST) (envelope-from talon@datastorm.kicks-ass.org) Received: from datastorm.kicks-ass.org (forsaken.datastorm.kicks-ass.org [10.0.0.1]) by datastorm.kicks-ass.org (Postfix) with ESMTP id F36C92AB4F; Fri, 3 Jan 2003 01:07:27 +1100 (EST) Message-ID: <3E14479E.5080700@datastorm.kicks-ass.org> Date: Fri, 03 Jan 2003 01:07:26 +1100 From: Talon Organization: Data-Storm Computers User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020622 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Elite Bizkit Cc: haupt@outof.ch, freebsd-security@FreeBSD.org Subject: Re: Removing a Jail References: X-Enigmail-Version: 0.49.5.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Elite Bizkit wrote: | 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 BiZKiT you may need to mount some devices if you are in single user mode Are these questions even relavant to this mailing list. Regards Jason - -- ~ |===================================| ~ | Data-Storm Computers | Powered By | ~ | FreeBSD Rock Stable Performance | ~ |===================================| -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) Comment: Signed With GnuPG iD8DBQE+FEedyoJQBYFw6XARAiV4AKCg9eBxl8gr2M1ez+sKQE//5fLIVQCeIQti k/7PusEaLjtBh0HY4IWXdys= =trsw -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message