problem removing directory
Alex de Kruijff
freebsd at akruijff.dds.nl
Tue Jun 3 13:44:09 PDT 2003
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
More information about the freebsd-questions
mailing list