Hello,
An extract from man passwd

       --stdin
              This option is used to indicate that passwd  should
              read  the  new  password from standard input, which
              can be a pipe.

This works for me

echo "desired_password" | passwd --stdin <username>

HTH

VaibhaV
----------------------------------------------------------
 VaibhaV Sharma             |      [EMAIL PROTECTED]
 Exocore Consulting         |   http://www.exocore.com
 Bangalore, India           |         +91 (80) 3440397
----------------------------------------------------------

On Sun, 1 Jul 2001, mukund wrote:

> Hi,
> Is there any single line command to change user password which does not
> generate any prompt. I want to use it in a script. chpasswd doe not work.
>


_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to