Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2002 08:01:32 -0500
From:      "Jack L. Stone" <jackstone@sage-one.net>
To:        Marc Perisa <perisa@porsche.de>, Chip Wiegand <chip@wiegand.org>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: what's up with /var/empty?
Message-ID:  <3.0.5.32.20021024080132.00e357f8@mail.sage-one.net>
In-Reply-To: <3DB7C70E.4090801@porsche.de>
References:  <20021023220902.7334520a.chip@wiegand.org>

next in thread | previous in thread | raw e-mail | index | archive | help
At 12:10 PM 10.24.2002 +0200, Marc Perisa wrote:
>Hi Chip,
>
>Chip Wiegand wrote:
>> I just finished installing 4.7 and want to move /var to /usr/var and
>> symlink it, but there is an empty subdirectory called empty
>> (/var/empty). It is not going away when I try to delete the /var
>> directory after moving it to /usr/var. It has permissions like this: 
>> dr-xr-xr-x root wheel 
>> Seems like I had to do something about a sticky bit, but don't recall
>> and can't find anything in the list archives about this.
>> Can someone remind me? And this time I'll write it down in my notebook.
>> 
>
>
>it is not about sticky bits. /var/empty is used since OpenSSH 3.4 to 
>chroot the child process.
>
>man sshd will tell you more.
>
>So, stop sshd (all of them I think) and then it should work
>
>Hope that helps
>
>Marc
>

It's also "locked schg" and you will have to chflags noschg before removing:
dr-xr-xr-x   2 root    wheel   schg  512 Oct  9 07:42 empty/

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
jackstone@sage-one.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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