[root@walle ~]# useradd usera
[root@walle ~]# echo “123456” | passwd –stdin usera
[root@walle ~]# chage -d0 usera
[root@walle ~]#

WARNING: Your password has expired.
You must change your password now and login again!
Changing password for user usera.
Changing password for usera.
(current) UNIX password:
New password: