Re: Impersonate another user temporarily (Unix and Windows)

2007-08-23 Thread billiejoex
On 23 Ago, 23:20, Steve Holden <[EMAIL PROTECTED]> wrote: > billiejoex wrote: > > On 23 Ago, 13:13, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > [...] > >> Note that running your process as a user with enough priviledges to > >> impersonate another user pretty much eliminates all the benefits of > >

Re: Impersonate another user temporarily (Unix and Windows)

2007-08-23 Thread Steve Holden
billiejoex wrote: > On 23 Ago, 13:13, "Chris Mellon" <[EMAIL PROTECTED]> wrote: [...] >> Note that running your process as a user with enough priviledges to >> impersonate another user pretty much eliminates all the benefits of >> running as a low-priviledged user in the first place. Consider >> re

Re: Impersonate another user temporarily (Unix and Windows)

2007-08-23 Thread billiejoex
On 23 Ago, 13:13, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > On 8/23/07, billiejoex <[EMAIL PROTECTED]> wrote: > > > > > > > On 23 Ago, 10:38, Tim Golden <[EMAIL PROTECTED]> wrote: > > > billiejoex wrote: > > > > Hi there. I'm writing a modification for a FTP server library I'm > > > > maintaining

Re: Impersonate another user temporarily (Unix and Windows)

2007-08-23 Thread Chris Mellon
On 8/23/07, billiejoex <[EMAIL PROTECTED]> wrote: > On 23 Ago, 10:38, Tim Golden <[EMAIL PROTECTED]> wrote: > > billiejoex wrote: > > > Hi there. I'm writing a modification for a FTP server library I'm > > > maintaining. > > > Depending on the system I'd want to temporarily impersonate the logged >

Re: Impersonate another user temporarily (Unix and Windows)

2007-08-23 Thread billiejoex
On 23 Ago, 10:38, Tim Golden <[EMAIL PROTECTED]> wrote: > billiejoex wrote: > > Hi there. I'm writing a modification for a FTP server library I'm > > maintaining. > > Depending on the system I'd want to temporarily impersonate the logged > > user to perform actions on filesystem. > > Something like

Re: Impersonate another user temporarily (Unix and Windows)

2007-08-23 Thread Tim Golden
billiejoex wrote: > Hi there. I'm writing a modification for a FTP server library I'm > maintaining. > Depending on the system I'd want to temporarily impersonate the logged > user to perform actions on filesystem. > Something like: > > try: > change_user('user', 'password') > os.rmdir('di

Impersonate another user temporarily (Unix and Windows)

2007-08-22 Thread billiejoex
Hi there. I'm writing a modification for a FTP server library I'm maintaining. Depending on the system I'd want to temporarily impersonate the logged user to perform actions on filesystem. Something like: try: change_user('user', 'password') os.rmdir('dir') except: print "some error" f