vi /etc/login.defs
修改設定
#
# Password aging controls (used by useradd):
#
# 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 90 # 設定 90 天要改密碼
PASS_MIN_DAYS 0
PASS_WARN_AGE 7 # 7天前要提醒
0 comments:
張貼留言