[olug] password change one liner shell script

Derek & Lisa lug at robotz.com
Fri Sep 5 16:40:25 UTC 2003


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


More information about the OLUG mailing list