what is /var/empty

Erik Trulsson ertr1013 at student.uu.se
Thu May 8 09:31:22 PDT 2003

On Thu, May 08, 2003 at 05:22:18PM +0100, Gavin Kenny wrote:
> Hi 
> I've just installed 4.8 and I have two problems:
> 1) I usually put var in /usr/var and softlink it. only
> I can't delete the original /var as there is a
> directory called empty in it, even as root I can't
> change it's permissions or delete it. What is this
> empty directory?!?!

The reason you can't delete it is beacause it has the schg flag set.
Use chflags(1) to remove the flag.
The directory is used as a chroot(2) directory by sshd and is supposed
to exist and be empty. The schg flag is set to make sure /var/empty
stays empty.

<Insert your favourite quote here.>
Erik Trulsson
ertr1013 at student.uu.se

More information about the freebsd-questions mailing list