Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2003 18:31:16 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Gavin Kenny <gavinkenny@yahoo.co.uk>
Cc:        questions@freebsd.org
Subject:   Re: what is /var/empty
Message-ID:  <20030508163116.GA19883@falcon.midgard.homeip.net>
In-Reply-To: <20030508162218.65341.qmail@web41706.mail.yahoo.com>
References:  <20030508162218.65341.qmail@web41706.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@student.uu.se



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