On Fri, 8 Nov 2024 16:07:11 +0000 "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" wrote: > I had the issue at work and I asked my Systems team to configure the share > correctly on the Linux side of the things. > > Y: on /cygdrive/y type smbfs (binary,posix=0,user,noumount,auto) > Z: on /cygdrive/z type smbfs (binary,posix=0,user,noumount,auto) > > The Z: drive is the "default share", and on which the .exe files are not > executable. > > $ pwd > /cygdrive/z > $ cat hello.c > #include <stdio.h> > > int main() > { > printf("Hello world!\n"); > return 0; > } > $ gcc -o helloZ hello.c > $ ./helloZ > -bash: ./helloZ: Permission denied > > The Y: drive is the same directory on Linux, exported a bit differently: > > $ cd /cygdrive/y > $ gcc -o helloY hello.c > $ ./helloY > Hello world! > $ strip hello{Y,Z} > $ diff hello{Y,Z} > $ > > This is how the Y: drive had been exported from Linux (ours it an AD > environment too, BTW): > > $ tail -n 6 /etc/samba/smb.conf > [lavr] > path = /export/home/lavr > comment = Anton's Local Home Directory > read only = No > hosts allow = [:snipped:] > acl allow execute always = True
Thanks for the information. Unfortunately, this did not help in my environment. Perhaps, for non-AD environment, I guess. -- 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