[python-win32] Help with PySECURITY_DESCRIPTOR
momchil at bojinov.info
momchil at bojinov.info
Tue Oct 27 07:30:31 EDT 2020
Hello,
Newbie here
I m trying to store file's acl along with the backup of the file and then
restore it on the same system
Got this from Mr Tim Golden:
# http://timgolden.me.uk/python/win32_how_do_i/add-security-to-a-file.html
sd = win32security.GetFileSecurity (FILENAME,
win32security.DACL_SECURITY_INFORMATION)
but don't see a way to serialize it out of the box.
If I call all the Get* methods and store those, will it be enough to restore
it ?
Regards,
Mochil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/python-win32/attachments/20201027/5c85ee2a/attachment.html>
More information about the python-win32
mailing list