| 加固项 | 口令历史 |
|---|---|
| 适用平台 | Linux(pam_pwhistory.so) |
| 风险等级 | 低 |
| 基线 | remember≥5 |
配置(system-auth / common-password)
配置(system-auth / common-password)
password requisite pam_pwhistory.so use_authtok remember=5 enforce_for_root
# RHEL8+:authselect enable-feature with-pwhistory验证
验证
ls -l /etc/security/opasswd
# 改密两次相同口令应被拒绝opasswd 存旧口令哈希:权限应为 600 root:root,纳入文件权限核查。