This method works with AIX and GNU/Linux
dsh -g linux_amdocs "echo 'root:verysecurepassword'| sudo -S chpasswd"
Force user to change password next time on Linux:
chage --lastday 0 ravi
pwdadm -c <user>