Mail Archives: cygwin/2005/10/26/18:36:52
---559023410-959030623-1130366194=:4016
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 26 Oct 2005, Brian Dessent wrote:
> David Rasmussen wrote:
>
> > Open cygwin. Write 'notepad test.txt'. Notepad opens, write something
> > and then save the file. Now do an ll. The file test.txt has been created
> > and has the executable flag set. I want it to not be set in such cases.
>
> This is really out of Cygwin's control. The permissions that other
> programs choose to create files with is completely up to them. It just
> happens that the Windows default (Full Control to the owner and
> Administrators, Read & Execute to Users) happens to contain the execute
> permission.
>
> However I believe that almost all Windows programs do not specify an ACL
> when creating files, so they end up inheriting the permissions from the
> directory (or from the parent directory or its parent directory, etc.)
>
> If you change this ACL that is the source of this inheritance so that it
> does not contain the 'execute' permission you should be able to get the
> situation you desire. However, you may break some functionality in
> Windows. For example, you will not be able to run any programs in such
> a modified directory tree until you explicitly give all the .dll, .exe,
> .ocx, etc files the Execute permission. (It would be the same as if you
> did "chmod -R 644 /bin" on a unix system.)
I've used the attached script successfully for quite a while...
Enjoy,
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
---559023410-959030623-1130366194=:4016
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=fixexec
Content-Transfer-Encoding: BASE64
Content-ID: <Pine DOT GSO DOT 4 DOT 63 DOT 0510261836340 DOT 4016 AT slinky DOT cs DOT nyu DOT edu>
Content-Description:
Content-Disposition: attachment; filename=fixexec
IyEvYmluL3NoDQojDQojIEEgc2NyaXB0IHRvIGZpeCB1cCBleGVjdXRhYmxl
IHBlcm1pc3Npb25zLg0KIw0KIyBDb3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0iJyIkUEFUUFJHICREQkdQUkciJyAtbyI7fTskXz1qb2luKCIgIixA
cCknKSINCg0KZXZhbCAic2V0IC0tICRFWFRGSUxURVIgJFBBVEZJTFRFUiIN
Cg0KZm9yIERJUiBpbiAkRElSUzsgZG8NCiAgaWYgWyAtZCAiJERJUiIgLW8g
LWggIiRESVIiIF07IHRoZW4NCiAgICBGSUxURVI9Ii10eXBlIGYiDQogIGVs
aWYgWyAtZiAiJERJUiIgXTsgdGhlbg0KICAgIEZJTFRFUj0iLW1heGRlcHRo
IDEiDQogIGZpDQogIGlmIFsgLXogIiRCQVRDSCIgXTsgdGhlbg0KICAgIGZp
bmQgIiRESVIiICRGSUxURVIgLXBlcm0gLTAxMDAgXCggIiRAIiBcKCAkREFT
SF9QUklOVCAtZXhlYyAkRUNITyBjaG1vZCBhLXgge30gXDsgXCkgXCkNCiAg
ZWxzZQ0KICAgIGZpbmQgIiRESVIiICRGSUxURVIgLXBlcm0gLTAxMDAgXCgg
IiRAIiAtcHJpbnQwIFwpIHwgJFRFRSB8IHhhcmdzIC1yIC0wIC1uIDEwMDAg
JEVDSE8gY2htb2QgYS14IC0tDQogIGZpDQpkb25lDQoNCg==
---559023410-959030623-1130366194=:4016
Content-Type: text/plain; charset=us-ascii
--
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/
---559023410-959030623-1130366194=:4016--
- Raw text -