Need some help please

Lowel Stern ls2311 at netcom.com
Mon Jul 22 11:37:01 EDT 2002


On 21 Jul 2002 01:11:27 +0200, Chris Liechti <cliechti at gmx.net> wrote:

>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
  I needed to do this (run passwd command) from python also.  This
cannot work as you specified.  You need to use expect or it won't
work.


LS




More information about the Python-list mailing list