From owner-freebsd-questions@FreeBSD.ORG Tue Dec 7 19:31:44 2004 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 6E51E16A4CE for ; Tue, 7 Dec 2004 19:31:44 +0000 (GMT) Received: from pastinakel.tue.nl (pastinakel.tue.nl [131.155.2.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2752743D68 for ; Tue, 7 Dec 2004 19:31:44 +0000 (GMT) (envelope-from stijn@pcwin002.win.tue.nl) Received: by pastinakel.tue.nl (Postfix, from userid 40) id 8139A14BE5D; Tue, 7 Dec 2004 20:31:43 +0100 (CET) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by pastinakel.tue.nl (Postfix) with ESMTP id F253514BE1F; Tue, 7 Dec 2004 20:31:41 +0100 (CET) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.13.1/8.13.1/Submit) id iB7JVfkR050939; Tue, 7 Dec 2004 20:31:41 +0100 (CET) (envelope-from stijn) Date: Tue, 7 Dec 2004 20:31:41 +0100 From: Stijn Hoop To: "J. W. Ballantine" Message-ID: <20041207193141.GN39558@pcwin002.win.tue.nl> Mail-Followup-To: Stijn Hoop , "J. W. Ballantine" , freebsd-questions@freebsd.org References: <200412071906.iB7J6Tn03583@akiva.homer.att.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z0eOaCaDLjvTGF2l" Content-Disposition: inline In-Reply-To: <200412071906.iB7J6Tn03583@akiva.homer.att.com> User-Agent: Mutt/1.4.2.1i X-Bright-Idea: Let's abolish HTML mail! X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on pastinakel.tue.nl X-Spam-DCC: : X-Spam-Status: No, hits=-4.9 required=6.3 tests=BAYES_00 autolearn=ham version=2.64 X-Spam-Level: cc: freebsd-questions@freebsd.org Subject: Re: directory Operation not permitted 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: Tue, 07 Dec 2004 19:31:44 -0000 --z0eOaCaDLjvTGF2l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 07, 2004 at 02:06:27PM -0500, J. W. Ballantine wrote: > I'm running FreeBSD5-stable and there is a directory named > "empty" in the /var/tmp/temproot/var path, created by mergemaster, > that will not allow me , as su, to chmod or remove. Any time I try > I get Operation Not Permitted. >=20 > There doesn't seem to be anything special about it, any thoughts as to > what is going on with this beast??? It is a directory necessary for sshd. It has filesystem flags set that prev= ent it from being removed until the flag is reset, which only the superuser can= do by default (and when the system securelevel is raised, not even the superus= er can). Read up on chflags(1) (the 'schg' flag), init(8) (for securelevels and their definitions), and ls(1) (for the -o flag to see the flags). > When I rerun mergemaster and reply yes to the final should I delete the d= ir.=20 > path, it is removed. That is because mergemaster does a chflags noschg on the directory before deleting it. HTH, --Stijn --=20 If today is the first day of the rest of your life, what the hell was yesterday? --z0eOaCaDLjvTGF2l Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBtgUdY3r/tLQmfWcRAl5CAJ95wmTynY3krjm11P393/lDn77mfACfUUR9 hE4S4hsK4AqFlI2Whplo0eI= =C3NB -----END PGP SIGNATURE----- --z0eOaCaDLjvTGF2l--