On 10.02.2022 17:48, Rob Stevens wrote:
Whenever I create files with cygwin (using whatever utilitity or editor)
I get these permissions as reported by icacls:
   NULL SID:(DENY)(Rc,S,X,DC)
   MALIN\rob:(R,W,D,WDAC,WO)
   NT AUTHORITY\SYSTEM:(DENY)(S,X)
   BUILTIN\Administrators:(DENY)(S,X)
   MALIN\None:(R)
   NT AUTHORITY\SYSTEM:(RX,W)
   BUILTIN\Administrators:(RX,W)
   Everyone:(R)
These permissions are not those inherited from the containing directory.
Not that only, but the windows utilities complain the the
permissions are mal-ordered.

Is this not a bug?? Do I need a different (null?) umask in the environment?


do not change the order

https://cygwin.com/cygwin-ug-net/ntsec.html

see under "File permissions"

The order of ACEs is important. The system reads them in sequence until either any single requested permission is denied or all requested permissions are granted. Reading stops when this condition is met. Later ACEs are not taken into account.

Unfortunately, the security tab in the file properties dialog of the Windows Explorer will pop up a warning stating "The permissions on ... are incorrectly ordered, which may cause some entries to be ineffective." Pressing the Cancel button of the properties dialog fortunately leaves the sort order unchanged, but pressing OK will cause Explorer to canonicalize the order of the ACEs, thereby invalidating POSIX compatibility.


--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to