📚 [Linux] 패스워드 정책 확인하기

Category: Linux | 📅 December 14, 2021

정책 확인 방법

redsable@SungGyu:~$ sudo cat /etc/login.defs | grep PASS

#       PASS_MAX_DAYS   Maximum number of days a password may be used.
#       PASS_MIN_DAYS   Minimum number of days allowed between password changes.
#       PASS_WARN_AGE   Number of days warning given before a password expires.
PASS_MAX_DAYS   99999
PASS_MIN_DAYS   0
PASS_WARN_AGE   7
#PASS_CHANGE_TRIES
#PASS_ALWAYS_WARN
#PASS_MIN_LEN
#PASS_MAX_LEN
# NO_PASSWORD_CONSOLE
  • 99999 : 날짜 표시로 99999 일 이면 거의 무한대로 보면 됨

계정 확인 방법

redsable@SungGyu:~$ chage -l redsable

Last password change                                    : Dec 07, 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

위 내용을 보면 ‘아~ 엊그제 만들었구나~’를 알 수 있음.

💭 Reviews
  • 궁금하면 찾아보자 ㅋㅋ
  • 📖 Please Note that...
  • [달소씨의 하루]
  • 🏷️ Tags
  • #chage  
  • #shadow  
  • #password  
  • #linux