Hi.
I would like to add users with full control access to a directory. I
can do it to a file in the following way:
info=win32secur ity.DACL_SECURI TY_INFORMATION
sd=win32securit y.GetFileSecuri ty(DIR, info)
acl=sd.GetSecur ityDescriptorDa cl()
sidUser=win32se curity.LookupAc countName(None, USER)[0]
acl.AddAccessAl lowedAce(win32f ile.FILE_ALL_AC CESS, sidUser)
sd.SetSecurityD escriptorDacl(1 , acl, 0)
win32security.S etFileSecurity( dir, info, sd)
and it work correctly, but if I try to do the same to a directory only
the "special permission" checkbox is checked and this is not useful to
me because I need a "full control" so that files under the directory
can inheritage the directory rigths.
Can anybody help me
Thank's
I would like to add users with full control access to a directory. I
can do it to a file in the following way:
info=win32secur ity.DACL_SECURI TY_INFORMATION
sd=win32securit y.GetFileSecuri ty(DIR, info)
acl=sd.GetSecur ityDescriptorDa cl()
sidUser=win32se curity.LookupAc countName(None, USER)[0]
acl.AddAccessAl lowedAce(win32f ile.FILE_ALL_AC CESS, sidUser)
sd.SetSecurityD escriptorDacl(1 , acl, 0)
win32security.S etFileSecurity( dir, info, sd)
and it work correctly, but if I try to do the same to a directory only
the "special permission" checkbox is checked and this is not useful to
me because I need a "full control" so that files under the directory
can inheritage the directory rigths.
Can anybody help me
Thank's
Comment