Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'permissions': 0.04; '(except': 0.05; 'modified': 0.05; ':-)': 0.06; '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; 'win32': 0.12; 'am,': 0.13; 'wrote:': 0.15; '(sun,': 0.16; 'eleven': 0.16; 'everybody.': 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; "tim's": 0.16; 'url:timgolden': 0.16; "hasn't": 0.16; 'permission': 0.16; 'seems': 0.20; 'header:In-Reply-To:1': 0.22; 'settings': 0.22; 'structure': 0.23; 'thus': 0.23; 'creating': 0.24; 'specify': 0.25; 'changed': 0.25; 'windows': 0.27; "i'm": 0.27; 'mine': 0.28; 'correct': 0.29; 'far.': 0.29; 'fine.': 0.29; 'unknown': 0.29; 'parent': 0.30; 'tree.': 0.30; 'explorer': 0.32; 'sufficient': 0.32; 'handling': 0.33; 'it.': 0.33; 'asking': 0.33; '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; 'but': 0.37; 'some': 0.37; 'received:org': 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; "i'd": 0.40; 'where': 0.40; 'would': 0.40; 'setup': 0.40; 'give': 0.60; 'below': 0.62; 'link': 0.63; 'reply': 0.64; 'jun': 0.67; 'click': 0.79; 'asume': 0.84; 'subject:write': 0.84; '"learn': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Gelonida Subject: Re: windows 7 create directory with read write execute permission for everybody Date: Mon, 27 Jun 2011 11:46:58 +0200 References: 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 48 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1309168035 news.xs4all.nl 4355 [::ffff:82.94.164.166]:60881 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8500 On 6/27/2011 7:21 AM, Thorsten Kampe wrote: > * Gelonida (Sun, 26 Jun 2011 22:57:57 +0200) >> 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. > > Exactly nothing (except creating the directory, of course). :-) I thought so as well. I asume the security settings of the directory below which I created mine were setup to give no write permission to Everybody. If I changed the parent directories security settings with the explorer everything behaved fine. So if the parent directories security settings are unknown it seems mkdir() is not sufficient and I have to use some win32 calls as mentioned in the url of Tim's reply to have the correct settings. http://timgolden.me.uk/python/win32_how_do_i/add-security-to-a-file.html > >> 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. >> >> Alternatively it would be even better to specify exactly which users >> should be allowed to access the directory tree. >> >> I never used / modified Windows file permissions except once or twice >> via explorer. I'm thus a little shaky with Microsoft's file >> permissions. > > Microsoft's permission handling hasn't changed in the last eleven years. > So you had a lot of time to learn about it. but never the need so far. > Do you see this "Learn about > access control and permissions" link when you're in the security tab? > Just click on it. Will click > > Thorsten