rm -rf ?

Chuck Swiger cswiger at mac.com
Sat Sep 17 11:27:19 PDT 2005


Ansar Mohammed wrote:
> Ok I am logged in as root, yet I cant delete /var/empty ( I get operation
> not permitted).
>  
> Any suggestions?

Don't do that.  /var/empty is used by SSH for privilege seperation, which means 
it should exist and not contain any files, which is enforced using the "system 
immutable" flag:

59-sec% ls -lod /var/empty
drwx------  2 root  wheel  schg 512 Jul  1  2002 /var/empty/

See "man chflags" for more information.

-- 
-Chuck



More information about the freebsd-questions mailing list