From owner-freebsd-questions@FreeBSD.ORG Wed Mar 24 00:29:47 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08B33106566B for ; Wed, 24 Mar 2010 00:29:47 +0000 (UTC) (envelope-from aiza21@comclark.com) Received: from avmxsmtp1.comclark.com (avmxsmtp1.comclark.com [202.69.191.115]) by mx1.freebsd.org (Postfix) with ESMTP id 932F48FC18 for ; Wed, 24 Mar 2010 00:29:46 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgseADL5qEvKRa39OWdsb2JhbAAHh2KTSQEBAQE3Br87hH0Egxw X-IronPort-AV: E=Sophos;i="4.51,298,1267372800"; d="scan'208";a="10881847" Received: from unknown (HELO [10.0.10.3]) ([202.69.173.253]) by avmxsmtp3.comclark.com with ESMTP; 24 Mar 2010 08:29:44 +0800 Message-ID: <4BA95CF5.7090401@comclark.com> Date: Wed, 24 Mar 2010 08:29:41 +0800 From: Aiza User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: delete directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2010 00:29:47 -0000 This directory named empty has read/exec permissions. How do I delete it? # /usr/jails/newjail/var >ls -l total 2 dr-xr-xr-x 2 root wheel 512 Nov 21 22:53 empty # /usr/jails/newjail/var >cd empty # /usr/jails/newjail/var/empty >ls -l total 0 # /usr/jails/newjail/var/empty >cd .. # /usr/jails/newjail/var >rmdir empty rmdir: empty: Operation not permitted # /usr/jails/newjail/var >rm -rf empty rm: empty: Operation not permitted # /usr/jails/newjail/var >chmod 777 empty chmod: empty: Operation not permitted