Re: [python-win32] win32security.LogonUser

2008-07-28 Thread _ _
Woks!!!... Thanks a lot!! 2008/7/24 Tim Golden <[EMAIL PROTECTED]> > _ _ wrote: > >> + I use os.path.isfile ("D:/test/local/file.txt") and return False. And >> "D:/test/local/file.txt" exists! >> + If I try to read a file return a error... >> + The user can't read or write files when I impersona

[python-win32] How can I modify owner file in windows??

2008-07-28 Thread _ _
How can I modify owner file in windows??. I try with: win32security.SetFileSecurity (FILENAME, win32security.OWNER_SECURITY_INFORMATION, sd) Thanks a lot... ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/p

Re: [python-win32] How can I modify owner file in windows??

2008-07-28 Thread Tim Golden
_ _ 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-windo