HOWTO change user on UNIX for os.system

Phil Austin paustin at eos.ubc.ca
Fri Nov 9 12:26:43 EST 2001


"Tom Higgins" <vigtest at hotmail.com> writes:

> Is there any way to su or login as a different user
> within a python script?  I mainly need to discover a
> method which accepts a password from with the script.
> 
> Regards,
> Tom
> 
> 

http://www.multimania.com/fredp/python/pyscp.html

might be good for an example of this.

Regards, Phil



More information about the Python-list mailing list