I just downloaded an executable via cygwin's wget and found I cannot execute it.
In cygwin I get
$ ./clink_0.4.4_setup.exe
-bash: ./clink_0.4.4_setup.exe: Permission denied
and when I try to execute it from explorer, I get
Windows cannot access the specified device, path, or file. You may not have appropriate permissions to access the item.
This seems clear – in Linux/Unix, I would chmod +x
, and indeed that works here, too. But I thought Windows doesn't have the "executable" bit. I can imagine that cygwin stores its permissions in Alternate Data Streams, and can prevent me from executing it, but how does it enforce this outside of cygwin? I can't find anything obvious in the file's properties (in explorer).
Best Answer
How does
chmod +x
work in cygwin?You need to read all of Chapter 3. Using Cygwin- POSIX accounts, permission, and security to completely understand this.
Some extracts follow.
POSIX accounts, permission, and security
Brief overview of Windows security
...
File permissions
Source POSIX accounts, permission, and security
Further reading