Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8486
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.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; 'instance': 0.05; 'used.': 0.07; 'python': 0.08; ':-(': 0.09; '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; 'win32': 0.12; 'wrote:': 0.15; 'files).': 0.16; 'independent,': 0.16; 'permissions.': 0.16; 'pointers': 0.16; 'received:dip.t-dialin.net': 0.16; 'received:t-dialin.net': 0.16; 'subject: \n ': 0.16; 'subject:permission': 0.16; 'windows?': 0.16; 'extensions': 0.16; 'permission': 0.16; 'cc:addr:python- list': 0.16; 'pm,': 0.16; 'question.': 0.16; 'linux': 0.18; 'cc:2**0': 0.21; 'cc:no real name:2**0': 0.22; 'header:In-Reply- To:1': 0.22; 'structure': 0.23; 'worked': 0.24; 'creating': 0.24; 'libraries': 0.25; 'specify': 0.25; 'function': 0.26; 'windows': 0.27; "i'm": 0.27; 'somebody': 0.28; 'guess': 0.28; 'sorry,': 0.29; 'code,': 0.29; 'cc:addr:python.org': 0.30; 'example': 0.30; '(unless': 0.30; 'tree.': 0.30; 'hi,': 0.30; 'this.': 0.31; 'lines': 0.31; 'message-id:@gmail.com': 0.32; 'handling': 0.33; 'asking': 0.33; 'does': 0.33; 'header:User-Agent:1': 0.34; 'header:X-Complaints-To:1': 0.34; 'to:addr:python-list': 0.34; "can't": 0.34; "isn't": 0.35; 'machine': 0.35; 'question': 0.35; 'file': 0.36; 'but': 0.37; 'some': 0.37; 'received:org': 0.38; 'user': 0.38; 'created': 0.38; 'subject:: ': 0.38; 'problems': 0.38; 'subject:with': 0.38; 'platform': 0.38; 'should': 0.39; 'header:Mime-Version:1': 0.39; 'help': 0.39; 'to:addr:python.org': 0.39; 'under': 0.39; 'might': 0.40; 'case': 0.40; "i'd": 0.40; 'where': 0.40; 'would': 0.40; 'below': 0.62; 'accounts': 0.63; 'back': 0.63; 'here': 0.66; 'sfxlen:4': 0.67; 'afraid': 0.68; 'tiny': 0.68; 'pfxlen:big': 0.77; '11:24': 0.84; '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 | Sun, 26 Jun 2011 23:53:15 +0200 |
| References | <mailman.432.1309121909.1164.python-list@python.org> <4e07a374$0$4362$e4fe514c@news.xs4all.nl> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Cc | python-list@python.org |
| X-Gmane-NNTP-Posting-Host | p4fd0ff03.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 | <4e07a374$0$4362$e4fe514c@news.xs4all.nl> |
| 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.434.1309125223.1164.python-list@python.org> (permalink) |
| Lines | 40 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1309125223 news.xs4all.nl 4352 [::ffff:82.94.164.166]:33175 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:8486 |
Show key headers only | View raw
On 6/26/2011 11:24 PM, Irmen de Jong wrote: > On 26-6-2011 22: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. >> >> The reason I am asking is, that I'd like to create a directory structure where multiple >> users should be allowed to read / write / create files and directories. > > Isn't this the default when you create a new directoy in Windows? (unless you're > creating it in some location where access is restricted, for instance C:\ or c:\program > files). I'd try os.mkdir first in any case and check if it does the job. > Have to check when I'm back to the machine in question. On this machine I used os.mkdir() / os.makedirs() and I had permission problems , but only on Windows7. This is why I was asking the question. I expect, that the win32 libraries might have function calls allowing to control the permissions of a directory, but I am really bad with win32 as I worked mostly with Linux or code, that was platform independent, which Windows file permission handling is not :-( . > >> Alternatively it would be even better to specify exactly which users should be allowed >> to access the directory tree. > > Sorry, can't help you with this. I guess you'll need to use the windows extensions for > Python here and deal with user accounts and ACL's. Yep I'm afraid that's the way to go and where I hoped somebody would have a few tiny example lines or pointers to the functions in question to be used.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
windows 7 create directory with read write execute permission for everybody Gelonida <gelonida@gmail.com> - 2011-06-26 22:57 +0200
Re: windows 7 create directory with read write execute permission for everybody Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2011-06-26 23:24 +0200
Re: windows 7 create directory with read write execute permission for everybody Gelonida <gelonida@gmail.com> - 2011-06-26 23:53 +0200
Re: windows 7 create directory with read write execute permission for everybody Gelonida <gelonida@gmail.com> - 2011-06-26 23:53 +0200
Re: windows 7 create directory with read write execute permission for everybody Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2011-06-27 00:34 +0200
Re: windows 7 create directory with read write execute permission for everybody Thorsten Kampe <thorsten@thorstenkampe.de> - 2011-06-27 07:58 +0200
Re: windows 7 create directory with read write execute permission for everybody Thorsten Kampe <thorsten@thorstenkampe.de> - 2011-06-27 07:21 +0200
Re: windows 7 create directory with read write execute permission for everybody "Michel Claveau - MVP"<enleverLesX_XXmcX@XmclavXeauX.com.invalid> - 2011-06-27 07:36 +0200
Re: windows 7 create directory with read write execute permission for everybody Gelonida <gelonida@gmail.com> - 2011-06-27 11:46 +0200
csiph-web