Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Oct 2002 16:34:12 +0200
From:      Dimitry Andric <dim@xs4all.nl>
To:        Josh Tolbert <hemi@scoundrelz.net>
Cc:        FreeBSD Stable List <freebsd-stable@freebsd.org>
Subject:   Re: Left-over directory when asked to remove /var/tmp/temproot
Message-ID:  <1821970623.20021012163412@xs4all.nl>
In-Reply-To: <20021011230255.O68599-100000@view.scoundrelz.net>
References:  <20021011230255.O68599-100000@view.scoundrelz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2002-10-12 at 06:16:02 Josh Tolbert wrote:

JT> chmod: empty: Operation not permitted

JT>         /var/tmp/temproot/var/empty is, well, empty. I'm probably missing
JT> something trivial with chflags. How do I make /var/tmp/temproot/var/empty
JT> deletable?

By running installworld and mergemaster in single user mode, as
/usr/src/UPDATING tells you. You are probably using securelevel, which
does not permit you to remove schg flags from anything.


JT>         Also, when did mergemaster start leaving things behind?
JT>         Any ideas?

Since some install scripts create schg directories and/or files. Note
that it doesn't leave anything behind if you run in single user mode,
it just complains a bit.


JT> P. S.: interestingly, there's also a /var/empty that's also schg.

Yes, this is used for sshd's privilege separation feature. It's an
empty directory for the authentication stage of ssh, and setting the
schg flag makes sure it stays empty. :)

Cheers,
- --
Dimitry Andric <dim@xs4all.nl>
PGP Key: http://www.xs4all.nl/~dim/dim.asc
Fingerprint: 7AB462D2CE35FC6D42394FCDB05EA30A2E2096A3
Lbh ner abj va ivbyngvba bs gur QZPN

-----BEGIN PGP SIGNATURE-----
Version: 6.5.8ckt http://www.ipgpp.com/
Comment: http://duncan.gn.apc.org/stoa_cover.htm

iQA/AwUBPagk2rBeowouIJajEQKfxACeKiTdvPS8mxsRkkBTE5qo8WziVqQAoLMS
vZ4O89Ad0grl2pZ0Ssr1DKAI
=4g7L
-----END PGP SIGNATURE-----


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




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