[python-win32] Backup up Windows ACLs
Tim Golden
mail at timgolden.me.uk
Fri Mar 18 22:34:49 CET 2011
On 18/03/2011 9:28 PM, Randy Syring wrote:
> The issue I am running into is that I am not sure how to copy files from
> windows to the Linux and preserve ACLs.
I assume that you only want to preserve them as metadata, not
to map them somehow to whatever security model obtains on the
Linux disk?
The only kind of thing I can come up with (hand-wavingly) is to
convert the SD of each file to its equivalent SDDL and then to
track that along with the file. I was going to suggest stuffing
it in an ADS but presumably that wouldn't survive the journey
to Linux either. No doubt you could contrive some kind of
parallel metadata/database which could hold the info...
The additional complication with ACLs (especially when it comes
to restoring them) is coping with the levels of inheritance and
override.
TJG
More information about the python-win32
mailing list