Date: Fri, 30 May 2003 14:10:29 +0200 From: Alex de Kruijff <freebsd@akruijff.dds.nl> To: FreeBSD Questions <FreeBSD-questions@FreeBSD.org> Subject: Re: problem removing directory Message-ID: <20030530121029.GA2078@dds.nl> In-Reply-To: <20030518111419.GA99297@users.munk.nu> References: <20030518110213.GA88040@dds.nl> <20030518111419.GA99297@users.munk.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030530121029.GA2078>