You cannot call passwd with the password as a parameter.
(btw. this is a feature, not a bug :-)
Look at the Expect Module (available on CPAN). It lets you automate
interactive programs (like passwd).

hope that helps,

cr

On Mon, 14 May 2001 09:10:54 +0100, n6tadam said:

> Dear List,
>  
>  I am trying to write a cgi-script that adds a new user to my linux box via a
>  web based form.
>  
>  The trouble is, is how do I pass variables to the program "passwd"?? This is
>  so that when the password is sent via the form, it erncrypts the password,
>  and adds the user??? Has anyone got any ideas? Or has a similar cgi-script I
>  could use??
>  
>  I am using the shadow password suite, if that helps.
>  
>  Thanks in Anticipation,
>  Regards,
>  
>  Thomas Adam
>  
>  
>  
>  Please note that the content of this message is confidential between the original 
>sender and the intended recipient(s) of the message. If you are not an intended 
>recipient and/or have received this message in error, kindly disregard the content of 
>the message and return it to the original sender.
>  
>  If you have any complaints about this message please reply to:
>         [EMAIL PROTECTED]
>  
>  The Purbeck School E-Mail server running:
>         users.purbeck.dorset.sch.uk
>  
>  

Reply via email to