VCSA 6.7 chage: PAM: User account has expired
2021.06.14 18:41
원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어
Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어
Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Environment : VCSA 6.7 U3l
Issue : Can not reset expired state of root user after expired
1. root user is now expired
root@vcenter [ / ]# chage -l root
Your account has expired; please contact your system administrator
chage: PAM: User account has expired
2. use chage command to change MAX EXPIRE DATE and change password
root@vcenter [ / ]# chage -I -1 -m 0 -M 99999 -E -1 root
Your account has expired; please contact your system administrator
chage: PAM: User account has expired
root@vcenter [ / ]# passwd
New password:
Retype new password:
3. Can not change root user state
root@vcenter [ / ]# chage -l root
Your account has expired; please contact your system administrator
chage: PAM: User account has expired
4. Edit expire date field of /etc/shadow file
root@vcenter [ / ]# vi /etc/shadow
root:$6$h68FuUmW$AMgE1khOaYUfK53QY9Ng/kr.CjkKYDucsEGl9priU/dhgrnVZOU/hr0ZuS.T:18792:0:99999:7::1:
root@vcenter [ / ]# chage -l root
Last password change : Jun 14, 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 : 99999
Number of days of warning before password expires : 7
Comment 0
No. | Subject | Author | Date | Views |
---|---|---|---|---|
4 |
How to upgrade vmware-tools to12.1.0
![]() | ischo | 2022.09.01 | 507 |
» | VCSA 6.7 chage: PAM: User account has expired | ischo | 2021.06.14 | 1460 |
2 | [VMWARE] How to patch Vsphere ESXi 6.7 | ischo | 2021.03.22 | 587 |
1 | [VMWARE] How to patch VCSA 6.7 to 6.7U3l | ischo | 2021.03.11 | 2170 |