From owner-freebsd-questions Thu Sep 12 22:10:50 2002 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 72AF437B400 for ; Thu, 12 Sep 2002 22:10:48 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1B3A43E75 for ; Thu, 12 Sep 2002 22:10:47 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.5) id g8D5AkYO058928; Fri, 13 Sep 2002 00:10:46 -0500 (CDT) (envelope-from dan) Date: Fri, 13 Sep 2002 00:10:46 -0500 From: Dan Nelson To: "Gary D. Kline" Cc: FreeBSD Mailing List Subject: Re: can't rm -f /var/empty:: a new feature for 4.7? Message-ID: <20020913051046.GJ42486@dan.emsphone.com> References: <200209130501.g8D51EK01185@tao.thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200209130501.g8D51EK01185@tao.thought.org> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Sep 12), Gary D. Kline said: > While running mergemaster with "t" to /tmp, I created a > /var/tmp/empty. All are dirs, and "empty" is mode "dr-". Not even > root can chmod or rmdir. I may be wrong, but the index node does > no seem to point to itself. Any ideas on what's going on? How to > remove? This is more of a HUH, WHAT THE HELL? than anything. I'm > stumped. It this a new security feature in 4.7PRE? You probably mean /tmp/var/empty ? I believe sshd chroots itself in there for some operations. It's flagged schg so root can't even do anything with it. Run "chflags noschg /tmp/var/empty" to remove the flag. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message