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

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

 

환경 : VCSA 6.7 U3l

 

이슈 : 패스워드 만료후 expire 상태가 정상화되지 않음.

 

 

1. 패스워드 만료 상태

root@vcenter [ / ]# chage -l root
Your account has expired; please contact your system administrator
chage: PAM: User account has expired

 

2. 패스워드 최대 만료기간 설정후 패스워드 변경

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. 변경후에도 만료상태가 정상화되지 않음.

root@vcenter [ / ]# chage -l root
Your account has expired; please contact your system administrator
chage: PAM: User account has expired

 

 

4. /etc/shadow 파일 수정

root@vcenter [ / ]# vi /etc/shadow

root:$6$h68FuUmW$AMgE1khOaYUfK53QY9Ng/kr.CjkKYDucsEGl9priU/dhgrnVZOU/hr0ZuS.T:18792:0:99999:7::1:

 

8번째 필드값이 expire date 이므로 삭제처리

 

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
 

서버에 요청 중입니다. 잠시만 기다려 주십시오...