From owner-freebsd-questions@FreeBSD.ORG Thu May 8 09:31:22 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AED637B401 for ; Thu, 8 May 2003 09:31:22 -0700 (PDT) Received: from falcon.midgard.homeip.net (h76n3fls20o913.telia.com [213.67.148.76]) by mx1.FreeBSD.org (Postfix) with SMTP id 100C643FB1 for ; Thu, 8 May 2003 09:31:20 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: (qmail 23890 invoked by uid 1001); 8 May 2003 16:31:16 -0000 Date: Thu, 8 May 2003 18:31:16 +0200 From: Erik Trulsson To: Gavin Kenny Message-ID: <20030508163116.GA19883@falcon.midgard.homeip.net> Mail-Followup-To: Gavin Kenny , questions@freebsd.org References: <20030508162218.65341.qmail@web41706.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030508162218.65341.qmail@web41706.mail.yahoo.com> User-Agent: Mutt/1.5.4i cc: questions@freebsd.org Subject: Re: what is /var/empty X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2003 16:31:22 -0000 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. -- Erik Trulsson ertr1013@student.uu.se