[tempadm@localhost ~]$ su - tempadm
Password:
Your account has expired; please contact your system administrator
su: User account has expired
[tempadm@localhost ~]$ sudo su -
Last login: Wed Feb 3 17:48:27 CST 2021 on pts/1
ABRT has detected 1 problem(s). For more info run: abrt-cli list --since 1612345707
[root@localhost ~]# chage -l tempadm
Last password change : Feb 03, 2021
Password expires : Aug 02, 2021
Password inactive : never
Account expires : Mar 24, 2020
Minimum number of days between password change : 1
Maximum number of days between password change : 180
Number of days of warning before password expires : 28
[root@localhost ~]# chage -E -1 tempadm
[root@localhost ~]# chage -l tempadm
Last password change : Feb 03, 2021
Password expires : Aug 02, 2021
Password inactive : never
Account expires : never
Minimum number of days between password change : 1
Maximum number of days between password change : 180
Number of days of warning before password expires : 28
Your account has expired; please contact your system administrator
最新推荐文章于 2023-09-15 15:58:37 发布