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


-- 
Thibault ketterer
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to