Executable bit check
Larry Hall (Cygwin)
Fri Nov 5 01:21:00 GMT 2010
On 11/4/2010 8:36 PM, Illia Bobyr wrote:
> It seems that Cygwin does not check for executable bit before it allows
> a script to run, does it?
> $ rm abc
> $ cat<<EOF>abc
> > #!/bin/sh
> > echo Hm...
> > EOF
> $ ll abc
> -rw-r--r--+ 1 ibobyr Domain Users Nov 21 4 16:44 abc
> $ test -x abc&& echo Executable
>>> What does 'getfacl abc' say?
>> $ getfacl abc
>> # file: abc
>> # owner: ibobyr
>> # group: Domain Users
>>> There's more to permissions than just the 9 unix mode bits. You really
>>> CAN execute the file if test -x says you can; the question should rather
>>> be why 'chmod -x' didn't remove all execute permissions, and that
>>> usually boils down to ACL settings.
So, are you part of the 'Users' or 'Administrators' group? If so, you
have executable permission from the ACL. Try removing those.
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin