From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id EAA02560 for ; Tue, 16 Jul 1996 04:47:17 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id OAA19193; Mon, 15 Jul 1996 14:38:15 -0400 (EDT) Resent-Date: Mon, 15 Jul 1996 14:37:16 -0400 (EDT) From: Zefram Message-Id: <8258.199607151753@granite.dcs.warwick.ac.uk> Subject: Re: [[ -x ]] and root To: colin@fuligin.loni.ucla.edu (Colin Holmes) Date: Mon, 15 Jul 1996 18:53:42 +0100 (BST) Cc: zsh-users@math.gatech.edu (Z Shell users mailing list) In-Reply-To: <199607151726.KAA24274@fuligin.loni.ucla.edu> from "Colin Holmes" at Jul 15, 96 10:26:42 am X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]7813.72 X-US-Congress: Moronic fuckers MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"pEPNQ3.0.7h4.S_ewn"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/298 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >However, [[ -x file ]] returns true for all files when run under a root process, >even for files --r--r--r that (correctly) fail execution for root with "permission >denied:" > >Is this a zsh "feature" or am I misunderstanding something fundamental? It's a "feature" of most Linux kernels, that broke one of my scripts. If you are indeed using Linux, complain to Linus -- he was sent correct patches to fix this problem months ago, but he seems to have ignored them. -zefram