I have problem with posix file flags and permission denied on computer which is in domain. I have file on disk D: named foo. It is accessible both in Windows and in Cygwin as /cygdrive/d/foo but has flags ----rwx---+. If I copy this file to file named bar, it is not accessible in Cygwin nor in Windows. Fresh Windows installation, fresh Cygwin 2.0.2-1, foo file created in notepad. As user engycz I'm member of group "NT AUTHORITY\Authenticated Users" and "BUILTIN\Users" so I have R/W access to foo.
$ ls -al foo ----rwx---+ 1 engycz Domain Users 5 12. 5 20.15 foo $ cat foo hello $ getfacl.exe foo # file: foo # owner: engycz # group: Domain Users user::--- group::--- group:Authenticated Users:rwx group:SYSTEM:rwx group:Administrators:rwx group:Users:r-x mask:rwx other:--- $ icacls.exe foo foo BUILTIN\Administrators:(I)(F) NT AUTHORITY\SYSTEM:(I)(F) NT AUTHORITY\Authenticated Users:(I)(M) BUILTIN\Users:(I)(RX) ==================== $ cp foo bar ==================== $ ls -al bar ----rwx---+ 1 engycz Domain Users 5 12. 5 20.18 bar $ cat bar cat: bar: Permission denied $ getfacl.exe bar # file: bar # owner: engycz # group: Domain Users user::--- group::r-x group:Authenticated Users:rwx group:SYSTEM:rwx group:Administrators:rwx group:Users:r-x mask:rwx other:--- $ icacls.exe bar bar DOM_LAN\engycz:(DENY)(S,RD,REA,X) DOM_LAN\engycz:(D,Rc,WDAC,WO,RA,WA) DOM_LAN\Domain Users:(RX) Everyone:(Rc,S,RA) BUILTIN\Administrators:(F) NT AUTHORITY\SYSTEM:(F) NT AUTHORITY\Authenticated Users:(M) BUILTIN\Users:(RX) -- 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