Hi, At the moment I don't need it at all, but when I use the smbcacls utility from Samba on a Linux system and have it print the security descriptor as an SDDL it gives me something like:
O:S-1-5-21-3327876616-1579407131-3503203118-500G:S-1-5-21-3327876616-1579407131-3503203118-513D:P(A;;0x001e01ff;;;S-1-5-21-3327876616-1579407131-3503203118-500)(A;;0x00120089;;;S-1-5-21-3327876616-1579407131-3503203118-513)(A;;0x00120089;;;WD That's what I was hoping to get so that I could print it out. Currently it doesn't matter because I can use smbcacls to get what I want. Rob On Wed, Jun 27, 2018 at 4:42 PM eryk sun <eryk...@gmail.com> wrote: > > On Wed, Jun 27, 2018 at 3:14 PM, Rob Marshall <rob.marshal...@gmail.com> > wrote: > > > > I saw that, my problem is that I'm trying to use > > win32security.ConvertSecurityDescriptorToStringSecurityDescriptor() > > which is returning a self-relative SDDL and I need one that is > > absolute. Is there a flag that I can set and get an absolute SDDL from > > that function? In the Microsoft documentation for > > ConvertSecurityDescriptorToStringSecurityDescriptor() it says, as to > > what it "returns": > > Again, it doesn't matter what form the WinAPI function returns. > Whatever it is, the PySECURITY_DESCRIPTOR object internally converts > it to self-relative format. Why do you need an absolute format SD? > Whatever the reason you'll need to use ctypes for part of the problem. _______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32