X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Steve Holden <steve@holdenweb.com>
Subject:  Re: Setting cygwin permissions from Windows programs
Date:  Tue, 20 Dec 2005 15:14:04 +0000
Lines: 47
Message-ID: <do973s$u4r$1@sea.gmane.org>
References:  <do8oog$bds$1@sea.gmane.org> <43A80BC9.2060908@cygwin.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
In-Reply-To: <43A80BC9.2060908@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Larry Hall (Cygwin) wrote:
[...]
> Have you checked what the permissions on a file you created by Windows 
> looks
> like under Cygwin and seen some problem?  If so, please post the details 
> and
> perhaps someone can help.  Otherwise, I'd suggest just doing the above and
> working with the result unless you see problems.  In general, unless you've
> done something to restrict access in Windows, Cygwin can see and interact
> with "natively created" files just fine.
> 
Sorry to bang on about this, but here's a little more detail. If I start 
in a Cygwin shell:

sholden@bigboy /c/Apache/htdocs/comsite
$ ls -l index.html
-rwx------  1 sholden None 13834 Dec 20 14:33 index.html

Then in a Windows shell I run the following Python:

C:\Apache\htdocs\comsite>python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> from stat import *
 >>> from os import chmod
 >>> chmod("index.html", S_IRWXU|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
 >>>

This does not have the desired effect:

sholden@bigboy /c/Apache/htdocs/comsite
$ ls -l index.html
-rwx------  1 sholden None 13834 Dec 20 14:33 index.html

I'm quite happy to take this up as a Python error if indeed it is. But 
if so I'd appreciate understanding how I could use cacls to assert 
-rwxr-xr-x on that file.

My hope is that I'm overlooking a stupid error here.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC                     www.holdenweb.com
PyCon TX 2006                  www.python.org/pycon/


--
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/

