[python-win32] How can I modify owner file in windows??
_ _
egregio at gmail.com
Tue Jul 29 11:59:53 CEST 2008
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 <mail at timgolden.me.uk>
> _ _ 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
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080729/cf4c2177/attachment.htm>
More information about the python-win32
mailing list