HOWTO change user on UNIX for os.system

William Park opengeometry at yahoo.ca
Thu Nov 8 16:17:56 EST 2001


Tom Higgins <vigtest at hotmail.com> 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 yahoo.ca>.
8 CPU cluster, NAS, (Slackware) Linux, Python, LaTeX, Vim, Mutt, Tin



More information about the Python-list mailing list