Date: Thu, 02 Jan 2003 12:32:40 +0000 From: "Elite Bizkit" <elite_bizkit@hotmail.com> To: haupt@outof.ch Cc: freebsd-security@FreeBSD.org Subject: Re: Removing a Jail Message-ID: <F252CkWkKEsEXlwM9Ut0001760b@hotmail.com>
next in thread | raw e-mail | index | archive | help
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 <haupt@outof.ch> >To: "Elite Bizkit" <elite_bizkit@hotmail.com> >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" <elite_bizkit@hotmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F252CkWkKEsEXlwM9Ut0001760b>