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