원문 : 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
 

Requesting to the server, please wait.