The function chmod
is implemented in Cygwin but does not fully match access rights in Windows. This appears in the following change log: https://cygwin.com/cygwin-ug-net/ov-new1.7.html
Since 1.7.34, chmod does not always affect the POSIX permission mask as returned by stat(2) or printed by ls(1), due to the improved POSIX ACL handling. However, that's still far from perfect, so, as a temporary workaround, [...]
The implementation of chmod
in Msys is not working, as mentioned in the following bug report: https://sourceforge.net/p/mingw/bugs/1475/
This question is asking how to provide full access rights to a file in Msys.
How can I change the rights of a file to respectively "read-only" and "write-only" in Msys/Cygwin?
Thanks