delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/05/17:27:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 5 Mar 2003 17:26:41 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Eric Tiffany <etiffany AT alum DOT mit DOT edu>
cc: cygwin AT cygwin DOT com
Subject: Re: bash 'test -x' gives incorrect results with group permissions?
In-Reply-To: <003d01c2e35b$ad5e4240$0101a8c0@newt>
Message-ID: <Pine.GSO.4.44.0303051726060.25599-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Wed, 5 Mar 2003, Eric Tiffany wrote:

> I encountered a perplexing situation with file permissions.  I am running
> cygwin 1.3.20 and bash 2.05b.0(8).
>
> I have an executable with the following permissions:
>
> $ ls -ln  /c/j2sdk1.4.1_01/bin/java
>
> -rwxrwx---+   1 544      18          24672 Sep 30 03:08
> /c/j2sdk1.4.1_01/bin/java
>
> And here is my user info:
>
> $ id
>
> uid=1006(Eric Tiffany) gid=513(None)
> groups=513(None),544(Administrators),545(Users)
>
> If I run getfacl, I see the following:
>
> $ getfacl.exe -a /c/j2sdk1.4.1_01/bin/java
> getfacl.exe -a /c/j2sdk1.4.1_01/bin/java
> # file: /c/j2sdk1.4.1_01/bin/java
> # owner: Administrators
> # group: SYSTEM
> user::rwx
> group::rwx
> group:Users:r-x
> mask:rwx
> other:---
>
> I can execute the file from the command line.
>
> However, if I say 'test -x /c/j2sdk1.4.1_01/bin/java' in a script, it
> returns false. This seems wrong just based on the fact that I actually can
> exec the file.  However, it also seems to contradict the permissions set for
> the file, if I am interpreting the results of getfacl correctly.
>
> Is this a bug?

Yes.  The fix is on the way, though...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019