Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-15 Thread Aahz
On Thu, Oct 14, 2010, Tim Roberts wrote: > Tim Roberts wrote: >> >> However, I admit that NT security is a twisty maze of little passages, >> all different, so it's quite possible this is just a wrong turn. > > And I wonder how many of you are old enough to get the reference in that > sentence...

Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-15 Thread Mike Driscoll
On 1:59 PM, Tim Roberts wrote: Tim Roberts wrote: However, I admit that NT security is a twisty maze of little passages, all different, so it's quite possible this is just a wrong turn. And I wonder how many of you are old enough to get the reference in that sentence... I'm pretty sure I

Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Bill Janssen
Tim Roberts wrote: > Bill Janssen wrote: > > I've got an MSI installer for installing my UpLib server. I use the > > following bit of code in a custom action to grant the user the right to > > "log on as a service", so that the service can run under their user-id: > > > > import win32api, w

Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Dave Angel
On 2:59 PM, Tim Roberts wrote: Tim Roberts wrote: However, I admit that NT security is a twisty maze of little passages, all different, so it's quite possible this is just a wrong turn. And I wonder how many of you are old enough to get the reference in that sentence... But the adventure is

Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Tim Roberts
Tim Roberts wrote: > > However, I admit that NT security is a twisty maze of little passages, > all different, so it's quite possible this is just a wrong turn. And I wonder how many of you are old enough to get the reference in that sentence... -- Tim Roberts, t...@probo.com Providenza & Boeke

Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Bill Janssen
Tim Roberts wrote: > Bill Janssen wrote: > > I've got an MSI installer for installing my UpLib server. I use the > > following bit of code in a custom action to grant the user the right to > > "log on as a service", so that the service can run under their user-id: > > > > import win32api, w

[python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Bill Janssen
I've got an MSI installer for installing my UpLib server. I use the following bit of code in a custom action to grant the user the right to "log on as a service", so that the service can run under their user-id: import win32api, win32security username = win32api.GetUserNameEx(win32api.Na

Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Tim Roberts
Bill Janssen wrote: > I've got an MSI installer for installing my UpLib server. I use the > following bit of code in a custom action to grant the user the right to > "log on as a service", so that the service can run under their user-id: > > import win32api, win32security > > username = w