Need some help please

Arneau Starl as at ctes.com
Fri Jul 19 18:10:59 EDT 2002


I have a stripped down (minimal software on it) ftp server that does
have python 2.2 on it..  Here is what I need to do:

There is no gui on this redhat machine so I need to have a simple
commandline process to add ftp user accounts  I could do this by hand
but then I would have to make them all , I need be be able to make it
easy so  another less unix savvy person can create accounts

I need to be able to execute a python script (mkacnt) with 2
arguments username and email address. The script does 4 things
("mkacnt name email") 1: create ftp user account with "adduser" 2:
create random password 3: execute "passwd username " and then update
the password with the one just generated. 4: Email the username and
password to the email address supplied above.
I have 1 ,2 & 4 working I cannot figure out a way to do the password
without Expect (which I cannot install on that machine).  Is there a
way around this?


Arneau




More information about the Python-list mailing list