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:

 

版权声明:
作者:WangGaoli
链接:https://wanggaoli.com/2836.html
来源:王高利的个人博客
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>