Linux登录安全策略配置
nano /etc/login.defs
PASS_MAX_DAYS: 90
PASS_MIN_DAYS: 2
PASS_MIN_LENS: 8
PASS_WARN_AGE: 7
nano /etc/pam.d/system-auth
account required /lib/security/pam tally.so deny=5 no_magic_root reset
password requisite pam_cracklib.so minlen=8 ucredit=-1 lcrdit=-1 dcredit=-1 ocredit=-1
nano /etc/profile
export TMOUT=600
回复
要发表评论,您必须先登录。