SetNamedSecurityInfo(ObjectName, ObjectType, SecurityInfo, Owner, Group, Dacl, Sacl)
Sets security info for an object by name
Parameters
ObjectName : str/unicode
Name of objectObjectType : int
Value from SE_OBJECT_TYPE enumSecurityInfo : int
Combination of SECURITY_INFORMATION constantsOwner : PySID
Sid to set as owner of object, can be NoneGroup : PySID
Group Sid, can be NoneDacl : PyACL
Discretionary ACL to set for object, can be NoneSacl : PyACL
System Audit ACL to set for object, can be None