Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8499
| From | Gelonida <gelonida@gmail.com> |
|---|---|
| Subject | Re: windows 7 create directory with read write execute permission for everybody |
| Date | 2011-06-27 11:32 +0200 |
| References | <iu86h2$t2g$1@dough.gmane.org> <4E0833B6.7060008@timgolden.me.uk> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.442.1309167182.1164.python-list@python.org> (permalink) |
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 | Next — Next in thread | Find similar | Unroll 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