From owner-freebsd-stable Sat Oct 12 7:34:54 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9057937B401 for ; Sat, 12 Oct 2002 07:34:52 -0700 (PDT) Received: from tensor.xs4all.nl (tensor.xs4all.nl [213.84.94.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD02E43EB7 for ; Sat, 12 Oct 2002 07:34:51 -0700 (PDT) (envelope-from dim@xs4all.nl) Received: from kilgore (kilgore.dim [192.168.0.3]) by tensor.xs4all.nl (Postfix) with ESMTP id AF4D2563F; Sat, 12 Oct 2002 16:34:49 +0200 (CEST) Date: Sat, 12 Oct 2002 16:34:12 +0200 From: Dimitry Andric X-Mailer: The Bat! (v1.62/Beta5) Business X-Priority: 3 (Normal) Message-ID: <1821970623.20021012163412@xs4all.nl> To: Josh Tolbert Cc: FreeBSD Stable List Subject: Re: Left-over directory when asked to remove /var/tmp/temproot In-Reply-To: <20021011230255.O68599-100000@view.scoundrelz.net> References: <20021011230255.O68599-100000@view.scoundrelz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -----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 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