2
In Windows 10, with MSYS2 I set my fstab to:
none / cygdrive binary,posix=0,acl,user 0 0
I am unable to set execute permissions with chmod, despite having acl set in the fstab:
# echo > foo
# ls -l foo
-rw-r--r-- 1 ant None 1 Jun 1 19:18 foo
# chmod +x foo
# ls -l foo
-rw-r--r-- 1 ant None 1 Jun 1 19:18 foo
In Cygwin, setting the same fstab, for the same file I get:
# ls -l foo
-rwxrwx---+ 1 ant None 1 Jun 1 19:18 foo
which is the expected behaviour.
cygwinhas it's ownfstab. What makes you think the output should be the same? – DavidPostill – 2016-06-01T17:50:11.823@DavidPostill: I clarified that it is the same. Anyway, contrary to Cygwin, MSYS2 uses
noaclby default, that is why I originally stressed only the firstfstab. – antonio – 2016-06-02T09:32:44.447Cygwin knows how to map SIDs correctly (see POSIX accounts, permission, and security). Does MSYS2 have the same functionality?
– DavidPostill – 2016-06-02T09:38:26.853See this open ticket #60 chmod being ignored: "Status: open"
– DavidPostill – 2016-06-02T09:46:43.570And this one #158 issues with chmod and fstab: "Status: wont-fix"
– DavidPostill – 2016-06-02T09:50:36.583As an aside, shouldn't your command be
chmod +x foo? – DavidPostill – 2016-06-02T09:51:06.177@DavidPostill: sorry just a typo: fixed
+x– antonio – 2016-06-02T10:00:54.403@DavidPostill: I actually read the wont-fix thread on SF before posting here. It seems that the actual problem there is not with permissions, but with wrong libraries. In the same thread a MSYS2 developer says "
– antonio – 2016-06-02T10:19:17.623chmodworks for me when I re-mount without noacl.". He restates the same here. As an extra test, I tried also totally removing theacloption, without success.