delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/09/02/06:54:58

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sun, 2 Sep 2012 12:54:08 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: getfacl seems to list wrong permissions for Group
Message-ID: <20120902105408.GD13401@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <50317517 DOT 6010902 AT mvseac DOT com>
MIME-Version: 1.0
In-Reply-To: <50317517.6010902@mvseac.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Aug 19 16:21, L Anderson wrote:
> In directory /cygwin/bin of my cygwin installation,
> 
> $ ls -l  //yields:
> [snip]
> -rwxr-xr-x  1 lowella Administrators 73742 Nov 14 2010 zsyncmake.exe
> 
> and
> 
> $ ls -ln  //yields
> [snip]
> -rwxr-xr-x  1 1000  544  73742 Nov 14  2010 zsyncmake.exe
> 
> and
> 
> $ stat -c '%A %a %n' *  //yields:
> [snip]
> -rwxr-xr-x 755 zsyncmake.exe
> 
> all quite consistent and pretty much as expected.
> NB: zsyncmake.exe is the last file listed from /bin.
> 
> However,
> 
> $ getfacl -a zsyncmake.exe  //yields:
> # file: zsyncmake.exe
> # owner: lowella
> # group: Administrators
> user::rwx
> group::---
> mask:rwx
> other:r-x
> 
> Why does getfacl give "group::---" instead of "group::r-x" as
> appears in the ls and stat listings?  Is this a bug in getfacl?

No.  getfacl shows the ACL as is (from a POSIX perspective),
the stat/ls information shows the effective POSIX permissions
for the group which are a result of the facts that "Everyone" has
r-x permissions and that permissions on Windows are cumulative.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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