No easy way.
passwd < input.file
input file includes the password twice.
This is completely insecure.
At least make sure you erase the input file when you are done.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com