Message7524
The following code printes PySID:S-1-0x008014000000 for
every file on any machine, independent of the real
ower of the file:
for f in glob.glob("d:/*.*"):
try:
o =
win32security.GetFileSecurity
(f,win32security.OWNER_SECURITY_INFORMATION)
s = win32security.SID(o)
print str(s),
except:
print "n/a",
print " ",f
----------
Interestingly,
def prsid(name):
import string
print string.rjust(name,20),
try:
sid,box,what=win32security.LookupAccountName
(None,name)
print str(sid),box,what
except:
print "oops"
Works well, so it doesn't seem to be a problem with
PySIDs.
Thanks for your help in resolving this.
P.S.: (Discussed in http://groups.google.com/groups?
hl=en&th=b808d773d7ba0fee) |
|
Date |
User |
Action |
Args |
2007-08-23 13:57:23 | admin | link | issue481284 messages |
2007-08-23 13:57:23 | admin | create | |
|