Hi... Thanks...

I try this but I have errors:

pywintypes.error: (1307,
or
pywintypes.error: (5,

I create "file1.txt" with user "user1" and I try change owner to "user2" but
don't work.
"user1" and "user2" are users in domain "domain1"...

Can you help me please??



2008/7/28 Tim Golden <[EMAIL PROTECTED]>

> _ _ wrote:
>
>> How can I modify owner file in windows??.
>>
>> I try with:
>>
>> win32security.SetFileSecurity (FILENAME,
>> win32security.OWNER_SECURITY_INFORMATION, sd)
>>
>
> To paraphrase someone or another "I didn't have time to
> write a short answer so I wrote a long one":
>
>
> http://timgolden.me.uk/python-on-windows/programming-areas/security/ownership.html
>
> TJG
> _______________________________________________
> python-win32 mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/python-win32
>
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to