Linux用户登录首次必须更改密码

[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:

 

-------------本文结束感谢您的阅读-------------