Execute bit getting set on created files when it shouldn't

Brian Dessent brian@dessent.net
Wed Dec 21 20:03:00 GMT 2005


Don Peterson wrote:

> Problem statement:  running a non-cygwin program in a console generate
> files with the execute bit set, even if your umask doesn't allow it.

Why would a non-cygwin process have any concept of 'umask', let alone
respect its setting?  This is entirely a Cygwin mechanism.

This is purely due to NTFS permissions, as most applications do not
specify an ACL when creating a file, they just inherit the ACL of the
directory or its parent, and so on.  If you don't want the execute bit
set, then change the ACL of the filesystem object from which everything
is inheriting.  However, expect this to break most windows programs (or
at least their installers), since the notion of having to explicitly set
the execute permission on binaries does not exist on windows.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list