X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Thu, 22 Jul 2010 09:36:50 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: remove alternate access method / access control list
Message-ID: <20100722073650.GD8324@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <AANLkTil9c8b1KpYm1Pyrlv3LYEQ1rL-87H5khqdHSpOk@mail.gmail.com> <4C473657.7060209@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <4C473657.7060209@redhat.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Jul 21 12:03, Eric Blake wrote:
> On 07/21/2010 11:44 AM, Fred Wheeler wrote:
> > chmod affects the access permissions according to the ntsec system,
> > but has no effect on this alternate access method.
> 
> This is possibly a bug in cygwin.  POSIX says:
> [...]
> That is, calling chmod() to change bits should also have the effect of
> removing ACLs, per POSIX (although POSIX appears to be silent about the
> case of calling chmod() to set the bits to the value they already have).
> 
> But you would need to test this on Linux, to see if cygwin behaves the
> same as Linux in this regard, [...]

  $ uname -sr
  Linux 2.6.33.6-147.fc13.x86_64
  $ touch foo
  $ ls -l foo
  -rw-r--r--. 1 corinna vinschen 0 Jul 22 08:57 foo
  [~]$ setfacl -m g:users:rw- foo
  [~]$ ls -l foo
  -rw-rw-r--+ 1 corinna vinschen 0 Jul 22 08:57 foo
  [~]$ chmod 600 foo
  [~]$ ls -l foo
  -rw-------+ 1 corinna vinschen 0 Jul 22 08:57 foo
  [~]$ getfacl foo
  # file: foo
  # owner: corinna
  # group: vinschen
  user::rw-
  group::r--                      #effective:---
  group:users:rw-                 #effective:---
  mask::---
  other::---


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

