Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Sep 2005 14:27:20 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Ansar Mohammed <ansarm@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: rm -rf ?
Message-ID:  <432C6008.90908@mac.com>
In-Reply-To: <BAYC1-PASMTP0484DD443A1394D40E3C8FB3900@cez.ice>
References:  <BAYC1-PASMTP0484DD443A1394D40E3C8FB3900@cez.ice>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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