[python-win32] Re: File permissions...
Roger Upole
rwupole at msn.com
Sat Feb 18 15:52:57 CET 2006
There's an example of changing a file's
security in \win32\demos\security\set_file_audit.py.
However, you'll need to use AddAccessAllowedAceEx
instead of AddAccessAllowedAce to set the inheritance
flags.
hth
Roger
James Carroll wrote:
> How do I grant permissions on directories with pythonwin?
>
> At the moment we use a command line utility:
> cacls "existing path" /E /T /P Everyone:F
>
> To give Everyone full access (:F) by modifying an existing ACL (/E)
> and affecting all contents of the directory (/T)
>
> I'd like to do it all with shell or com stuff if possible.
Thanks,
-Jim
More information about the Python-win32
mailing list