Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2010 10:03:41 +0000
From:      krad <kraduk@googlemail.com>
To:        Michael Powell <nightrecon@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: delete directory
Message-ID:  <d36406631003240303m4c7cddc6m2fd6d69399838402@mail.gmail.com>
In-Reply-To: <hobn62$sdb$1@dough.gmane.org>
References:  <4BA95CF5.7090401@comclark.com> <hobn62$sdb$1@dough.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 24 March 2010 00:42, Michael Powell <nightrecon@hotmail.com> wrote:

> Aiza wrote:
>
> > This directory named empty has read/exec permissions.
> > How do I delete it?
> >
> > # /usr/jails/newjail/var >ls -l
> > total 2
> > dr-xr-xr-x  2 root  wheel  512 Nov 21 22:53 empty
> > # /usr/jails/newjail/var >cd empty
> > # /usr/jails/newjail/var/empty >ls -l
> > total 0
> > # /usr/jails/newjail/var/empty >cd ..
> > # /usr/jails/newjail/var >rmdir empty
> > rmdir: empty: Operation not permitted
> > # /usr/jails/newjail/var >rm -rf empty
> > rm: empty: Operation not permitted
> > # /usr/jails/newjail/var >chmod 777 empty
> > chmod: empty: Operation not permitted
>
> Usually when I see this I think flags are set. See man chflags.
>
> Used to be it was something like chflags -R noschg <blah>, then you could
> do
> the usual rm -rf <blah> once the immutable flag was unset. Don't know if
> has
> changed.
>
> -Mike
>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>

sounds about right



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d36406631003240303m4c7cddc6m2fd6d69399838402>