Change directory permission under windows

__schronos__ schronos at
Wed Nov 8 16:44:55 CET 2006


  I would like to add people with full control access to a directory. I
can do it to a file in the following way:

		sd=win32security.GetFileSecurity(DIR, info)
		acl.AddAccessAllowedAce(win32file.FILE_ALL_ACCESS, sidUser)
		sd.SetSecurityDescriptorDacl(1, acl, 0)
		win32security.SetFileSecurity(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


More information about the Python-list mailing list