Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8499

Re: windows 7 create directory with read write execute permission for everybody

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'permissions': 0.04; 'modified': 0.05; 'wrapper': 0.07; 'python': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:create': 0.09; 'subject:windows': 0.09; 'tim,': 0.09; 'am,': 0.13; 'wrote:': 0.15; '"w")': 0.16; '9:39': 0.16; 'ace': 0.16; "microsoft's": 0.16; 'permissions.': 0.16; 'received:dip.t-dialin.net': 0.16; 'received:t-dialin.net': 0.16; 'subject: \n ': 0.16; 'subject:permission': 0.16; 'url:timgolden': 0.16; 'entries': 0.16; 'header:In-Reply-To:1': 0.22; '(though': 0.23; 'thus': 0.23; 'code': 0.24; 'windows': 0.27; "i'm": 0.27; 'fine.': 0.29; 'lot.': 0.30; 'thanks': 0.30; 'hi,': 0.30; 'header :User-Agent:1': 0.34; 'header:X-Complaints-To:1': 0.34; 'to:addr :python-list': 0.34; 'file': 0.36; 'url:python': 0.36; 'received:org': 0.38; 'takes': 0.38; 'created': 0.38; 'subject:: ': 0.38; 'subject:with': 0.38; 'should': 0.39; 'header:Mime- Version:1': 0.39; 'to:addr:python.org': 0.39; 'under': 0.39; 'would': 0.40; 'setup': 0.40; 'below': 0.62; 'link': 0.63; 'golden': 0.67; 'subject:write': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Gelonida <gelonida@gmail.com>
Subject Re: windows 7 create directory with read write execute permission for everybody
Date Mon, 27 Jun 2011 11:32:45 +0200
References <iu86h2$t2g$1@dough.gmane.org> <4E0833B6.7060008@timgolden.me.uk>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host p57aea286.dip.t-dialin.net
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
In-Reply-To <4E0833B6.7060008@timgolden.me.uk>
X-Antivirus avast! (VPS 110626-1, 06/26/2011), Outbound message
X-Antivirus-Status Clean
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.442.1309167182.1164.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 82.94.164.166
X-Trace 1309167182 news.xs4all.nl 4360 [::ffff:82.94.164.166]:59582
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8499

Show key headers only | View raw


Hi Tim,

On 6/27/2011 9:39 AM, Tim Golden wrote:
> On 26/06/2011 21:57, Gelonida wrote:
>> Hi,
>>
>> What do I have to do under python windows to create a directory with all
>> permissions, such, that new files / directories created below will
>> inherit the permissions.
. . .
>>
>> I never used / modified Windows file permissions except once or twice
>> via explorer. I'm thus a little shaky with Microsoft's file permissions.
>
> Have a look at this to see if takes you anywhere:
>
> http://timgolden.me.uk/python/win32_how_do_i/add-security-to-a-file.html

That's exactly the kind of link I was looking for.

Thanks a lot.

For the current existing code I can just replace all open(fname, "w") 
calls with a custom wrapper and I should be fine.

One thing, which I would still like to know (though I don't need it for 
my current task) is what to do to to setup an ACE on a directory, such, 
that all entries below will inherit the directory's access settings.

I will look into this lateron.



Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: windows 7 create directory with read write execute permission for everybody Gelonida <gelonida@gmail.com> - 2011-06-27 11:32 +0200
  Re: windows 7 create directory with read write execute permission   for everybody Thorsten Kampe <thorsten@thorstenkampe.de> - 2011-06-27 14:45 +0200

csiph-web