From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32009 invoked by alias); 2 Sep 2012 10:54:44 -0000 Received: (qmail 31949 invoked by uid 22791); 2 Sep 2012 10:54:25 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Sun, 02 Sep 2012 10:54:11 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id F1C312C00CA; Sun, 2 Sep 2012 12:54:08 +0200 (CEST) Date: Sun, 02 Sep 2012 10:54:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: getfacl seems to list wrong permissions for Group Message-ID: <20120902105408.GD13401@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <50317517.6010902@mvseac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <50317517.6010902@mvseac.com> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-09/txt/msg00007.txt.bz2 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