| www.delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| From: | Steve Holden <steve AT holdenweb DOT 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 AT sea DOT gmane DOT org> <43A80BC9 DOT 2060908 AT cygwin DOT com> |
| Mime-Version: | 1.0 |
| 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 |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |