WARNING: Your password has expired. You must change your password now and login again!

用户到期,密码失效。

查看普通用户状态

chage -l cat
Last password change				: Mar 16, 2021
Password expires					: Jun 14, 2021   #已过期
Password inactive					: never
Account expires						: never
Minimum number of days between password change		: 0
Maximum number of days between password change		: 90
Number of days of warning before password expires	: 7

解决

chage -M 36000 cat
[root@cat_qq_game1 ~]# chage -l cat
Last password change					: Mar 16, 2021
Password expires					: never      #永不过期
Password inactive					: never
Account expires						: never
Minimum number of days between password change		: 0
Maximum number of days between password change		: 36000
Number of days of warning before password expires	: 7
posted @ 2021-12-09 14:14  名字长的像一只老山羊  阅读(1279)  评论(0编辑  收藏  举报