Hi all, On Thu, 8 Aug 2019 15:41:55 +0000 "Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: > Hi, > > Here's the situation, I have a netmount "Z:" but I cannot make any files on > it executable from Cygwin: > > $ mount > ... > Z: on /cygdrive/z type smbfs (binary,posix=0,user,noumount,auto) > > $ cd /cygdrive/z > > $ pwd > /cygdrive/z > > $ cat a.c > #include <stdio.h> > > int main() > { > printf("Hello world!\n"); > return 0; > } > > $ gcc -Wall a.c > > $ echo $? > 0 > > $ ./a.exe > -bash: ./a.exe: Permission denied > > $ ls -l a.exe > -rw-rw-r--+ 1 lavr cppcore 157753 Aug 8 11:29 a.exe > > $ getfacl.exe a.exe > # file: a.exe > # owner: lavr > # group: cppcore > user::rw- > user:lavr:rw- > group::r-- > group:cppcore:r-- > mask::rw- > other::r-- > > $ chmod a+x a.exe > > $ echo $? > 0 > > $ ls -l a.exe > -rw-rw-r--+ 1 lavr cppcore 157753 Aug 8 11:29 a.exe > > $ getfacl.exe a.exe > # file: a.exe > # owner: lavr > # group: cppcore > user::rw- > user:lavr:rw- > group::r-- > group:cppcore:r-- > mask::rw- > other::r-- > > $ ./a.exe > -bash: ./a.exe: Permission denied > > What's missing? How to make the file executable, and why chmod() lies about > all-good when it does nothing? > Any ideas please? > > Thanks! > > P.S. I have another netmount "drive" (U:) which Cygwin identifies as > "netapp", and everything works on that drive, > regarding the execution permission. > > U: on /cygdrive/u type netapp (binary,posix=0,user,noumount,auto) > > Also, any file that I give the "x" permission from outside Cygwin (e.g. from > Linux) on the SMBFS drive "Z:", > becomes executable: > > Cygwin> $ gcc -Wall a.c > > Linux> $ chmod a+x a.exe > > Cygwin> $ ./a.exe > Hello world!
Does anyone know what was the conclusion of this issue? I have encountered the same issue and cannot find the solution so far. -- Takashi Yano <takashi.y...@nifty.ne.jp> -- 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