[olug] password change one liner shell script

Brian Roberson roberson at olug.org
Tue Sep 9 03:57:03 UTC 2003


echo user:passwd | chpasswd


man 5 chpasswd





----- Original Message ----- 
From: "Derek & Lisa" <lug at robotz.com>
To: <olug at olug.org>
Sent: Friday, September 05, 2003 11:40 AM
Subject: [olug] password change one liner shell script


> I want to set a user password all in one line, not by interactive prompt.
> (bash shell script)
>
> passwd username | sleep 1s && echo $passwordvariable |  echo
$passwordvariable
>
> Something like that, but that actually works and enters the password
twice.
>
> any ideas?
>
> ty
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>



More information about the OLUG mailing list