X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Steve Holden Subject: Re: Setting cygwin permissions from Windows programs Date: Tue, 20 Dec 2005 15:14:04 +0000 Lines: 47 Message-ID: References: <43A80BC9 DOT 2060908 AT cygwin DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 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 AT 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 AT 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/