From owner-freebsd-questions@FreeBSD.ORG Tue Jun 3 13:44:09 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 6C89837B405 for ; Tue, 3 Jun 2003 13:44:09 -0700 (PDT) Received: from smtp07.wxs.nl (smtp07.wxs.nl [195.121.6.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADA3743F3F for ; Tue, 3 Jun 2003 13:44:08 -0700 (PDT) (envelope-from freebsd@akruijff.dds.nl) Received: from kruij557.speed.planet.nl (ipd50a97ba.speed.planet.nl [213.10.151.186]) by smtp07.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HFX00H6AAXB5E@smtp07.wxs.nl> for FreeBSD-questions@FreeBSD.org; Tue, 03 Jun 2003 22:44:07 +0200 (MEST) Received: from Intranet.lan (akruijff@localhost [127.0.0.1]) by Intranet.lan (8.12.6p2/8.12.8) with ESMTP id h4UCAUPK002106 for ; Fri, 30 May 2003 14:10:30 +0200 Received: (from akruijff@localhost) by Intranet.lan (8.12.6p2/8.12.8/Submit) id h4UCAToi002105 for FreeBSD-questions@FreeBSD.org; Fri, 30 May 2003 14:10:29 +0200 (CEST) Date: Fri, 30 May 2003 14:10:29 +0200 From: Alex de Kruijff In-reply-to: <20030518111419.GA99297@users.munk.nu> To: FreeBSD Questions Message-id: <20030530121029.GA2078@dds.nl> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4.1i References: <20030518110213.GA88040@dds.nl> <20030518111419.GA99297@users.munk.nu> X-Authentication-warning: Intranet.lan: akruijff set sender to freebsd@akruijff.dds.nl using -f Subject: Re: problem removing directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 20:44:09 -0000 On Sun, May 18, 2003 at 12:14:19PM +0100, Jez Hancock wrote: > On Sun, May 18, 2003 at 01:02:13PM +0200, Alex de Kruijff wrote: > > Hi, > > > > I wanted to move /var/tmp to /tmp and symlink it for security reasons. > > I move /var/tmp to /var/tmp-old and copied the files to /tmp and them > > symlink /var/tmp to /tmp. So far so good. > > > > However, now i am unable to remove one directory and need some help in > > removing this. > > > > Intranet# ll > > total 1 > > dr-xr-xr-x 2 root wheel 512 Mar 16 22:04 empty/ > > Intranet# pwd > > /var/tmp-old/temproot/var > > Intranet# ll > > total 1 > > dr-xr-xr-x 2 root wheel 512 Mar 16 22:04 empty/ > > Intranet# rm -rf * > Try: > chflags -R noschg * in /var/tmp/ Tanks that did it. > > Presumably you ran mergemaster at some point which creates the > /var/tmp/temproot hierarchy and sets some system 'immutable' flags on > some of the files in there to stop them being modified. Running > 'chflags noschg' removes the immutable flag. Yes I did. Tanks again, Alex