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


Groups > comp.lang.python > #8500

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

From Gelonida <gelonida@gmail.com>
Subject Re: windows 7 create directory with read write execute permission for everybody
Date 2011-06-27 11:46 +0200
References <mailman.432.1309121909.1164.python-list@python.org> <MPG.287231d03e7c6be8989825@news.individual.de>
Newsgroups comp.lang.python
Message-ID <mailman.443.1309168035.1164.python-list@python.org> (permalink)

Show all headers | View raw


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


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


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