Help with PySECURITY_DESCRIPTOR

<[email protected]>
Newsgroups gmane.comp.python.windows
Message-ID <[email protected]>
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

_______________________________________________
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.