[python-win32] Setting owner of window's file

yaronm _ ficfic@hotmail.com
Tue, 04 Jun 2002 12:37:24 +0300


I'm pacing a strange problem :
Using the ACL editor tool of a file 
(file->properties->security->advanced->owner), I can set the owner of the 
file to a any vaild user-account.(*)

But from programming using SetSecurityInfo I can only set the owner to 
logon-session's user or local-administrator, and if I try to set it to a any 
other vaild user-account I get the following error ERROR_INVALID_OWNER, 
("This security ID may not be assigned as the owner of this object.").

(*) Suppose I've a shared file a.txt with owner JOHN. I do logon with user 
DAN and change ownership of a.txt to DAN.
When I'll logon as JOHN I will truly see that the new owner of a.txt is DAN.
OWNER_SECURITY_INFORMATION


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com