This is an old revision of the document!
Set password for user user1
echo user1:passwd1 | chpasswd
And remove change password at first connection
echo user1:passwd1 | chpasswd -c
You can also remove the flag ADMCHG from /etc/security/passwd using
pwdadm -c user1