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: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'permissions': 0.04; 'instance': 0.05; 'used.': 0.07; 'python': 0.08; ':-(': 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; '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; "can't": 0.34; "isn't": 0.35; 'machine': 0.35; 'question': 0.35; 'file': 0.36; 'received:google.com': 0.37; 'but': 0.37; 'some': 0.37; 'received:209.85': 0.38; 'received:192': 0.38; 'received:209.85.161': 0.38; 'user': 0.38; 'created': 0.38; 'subject:: ': 0.38; 'problems': 0.38; 'subject:with': 0.38; 'platform': 0.38; 'should': 0.39; 'help': 0.39; 'under': 0.39; 'received:209': 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; 'afraid': 0.68; 'tiny': 0.68; '11:24': 0.84; 'subject:write': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version :newsgroups:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=3Uz8AUMR1fU9pFWb9utjRSYDjSgpwxdHUm8TDUjI9cU=; b=siOh3mi/N6oqvoyN1iZK2+Zap0M9FVU7D1PdxKXcp1yOCapJT9TzwU8S2Onu5UdsC7 0j5xlo8HYsTSLPyfshj29KICAA7YlOGMbKaZ6VQCytVEBhK/JEnnf/Boabjd7rkW/6AZ tS22MIBLBveAjBZBtMk3u2W/b3xBjGzlGpEmI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:newsgroups:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; b=Yt5nP9fUEvDEoUDh/FAmOY9mITpFlBKNO9YEC6RFApI5GS2rCc4OhlkJw809pLAnSR 8kfv3TsSXXGi7pDH2oLnTU52Wax5W80Wj2pvGNJHkYsx7IhJaEDOxVSnL+aL3cCnl7gq 9XRwXJSz4H6q/Aocc9IBFwTk9GncxgtgafvpE= Date: Sun, 26 Jun 2011 23:53:15 +0200 From: Gelonida 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 MIME-Version: 1.0 To: Irmen de Jong Subject: Re: windows 7 create directory with read write execute permission for everybody References: <4e07a374$0$4362$e4fe514c@news.xs4all.nl> In-Reply-To: <4e07a374$0$4362$e4fe514c@news.xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: gmane.comp.python.general, comp.lang.python Message-ID: Lines: 39 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1309125214 news.xs4all.nl 4353 [::ffff:82.94.164.166]:33077 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8485 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.