X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 22 Jul 2010 09:36:50 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: remove alternate access method / access control list Message-ID: <20100722073650.GD8324@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4C473657 DOT 7060209 AT redhat DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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