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



--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to