run command as other user

Oleg Broytmann phd at phd.pp.ru
Tue Jan 23 07:50:34 EST 2001


On Tue, 23 Jan 2001, Peter Posselt Vestergaard wrote:
> Is there some way to run a shell-command from python (on Unix) as another
> user (than the one running the script)?

   There are lots of programs: su, sudo, etc...

Oleg.
----
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list