bash script execute permissions over NFS
Sun Apr 26 09:21:00 GMT 1998
On 24-Apr-1998, Erik Butterworth <email@example.com> wrote:
> I'm running GNU Win-32 Beta 19.1 and Hummingbird's NFS client to connect
> to a Sun Solaris NFS server. /bin/sh scripts on the server have execute
> permission according to Solaris and according to NT's file Properties
> popup. However, the ls command under bash shows the script (e.g. 'zork')
> with no execute permission and bash says it can't execute it (file not
I haven't looked at the source code in any great detail, and most of
what follows is educated guesswork, but I believe that the algorithm
gnu-win32 uses to determine whether a file is `executable' is something
- if the file name ends in .bat, .com, or .exe, it is
- if the file starts with #!..., it is considered
- on NT, gnu-win32 uses "extended attributes", so files can be
explicitly marked as executable. For FAT, these extended
attributes are stored by NT in a file called "EA DATA.SF".
For NTFS, I guess the file system has native support for them.
> I _really_ don't want to have to rename every script on the system with a .bat suffix.
An alternative is to insert "#!/bin/sh" as the first line of every script
which doesn't already have that.
Fergus Henderson <firstname.lastname@example.org> | "I have always known that the pursuit
WWW: < http://www.cs.mu.oz.au/~fjh > | of excellence is a lethal habit"
PGP: finger email@example.com | -- the last words of T. S. Garp.
For help on using this list (especially unsubscribing), send a message to
"firstname.lastname@example.org" with one line of text: "help".
More information about the Cygwin