Need some help please

Chris Liechti cliechti at gmx.net
Sat Jul 20 19:11:27 EDT 2002


Arneau Starl <as at ctes.com> wrote in 
news:2j2hju8c1btu76tu896cuc9qg6oeep9uoi at 4ax.com:
...
> 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?

you could modify /etc/passwd and /etc/shadow with your script. there is the 
"crypt" module in the stdlib to encode passwords and return a string which 
you can use.
i'm sure thats not the recomended way to do it. maybe someone else comes up 
with a better solution.

chris


-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list