T
Thibault Ketterer
Don't know if it's still usefull but
it seems that you have to get the sid from a "give sid function"
import win32security,pywintypes
try:
filo = win32security.GetFileSecurity(path,
win32security.OWNER_SECURITY_INFORMATION)
sid = filo.GetSecurityDescriptorOwner()
account, domain, typecode =
win32security.LookupAccountSid(None, sid)
except pywintypes.error,details:
account = domain = ""
errcode = details[0]
print "error acces:", path
print domain + u'\\' + account
it seems that you have to get the sid from a "give sid function"
import win32security,pywintypes
try:
filo = win32security.GetFileSecurity(path,
win32security.OWNER_SECURITY_INFORMATION)
sid = filo.GetSecurityDescriptorOwner()
account, domain, typecode =
win32security.LookupAccountSid(None, sid)
except pywintypes.error,details:
account = domain = ""
errcode = details[0]
print "error acces:", path
print domain + u'\\' + account