HOWTO change user on UNIX for os.system

William Park opengeometry at
Thu Nov 8 22:17:56 CET 2001

Tom Higgins <vigtest at> wrote:
> 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.

Lookup 'telnetlib', 'getpass', 'pwd', 'crypt' for examples.

William Park, Open Geometry Consulting, <opengeometry at>.
8 CPU cluster, NAS, (Slackware) Linux, Python, LaTeX, Vim, Mutt, Tin

More information about the Python-list mailing list