How to set folder permissions in Windows?
You want the win32security module, which is a part of pywin32. Here’s an example of doing the sort of thing you want to do. That example creates a new DACL for the file and replaces the old one, but it’s easy to modify the existing one; all you need to do is get the existing … Read more