Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <435FFEBA.17A7B503@dessent.net> Date: Wed, 26 Oct 2005 15:10:02 -0700 From: Brian Dessent MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Executable flag References: <102620052059 DOT 5236 DOT 435FEE1400022CF60000147422007348300A050E040D0C079D0A AT comcast DOT net> <435FEED2 DOT 3040309 AT gmx DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com 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.) 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/