PAM 大​​師幫忙解釋系統驗證密碼驗證 RHEL 7

PAM 大​​師幫忙解釋系統驗證密碼驗證 RHEL 7

我有一個 RHEL 7.9 系統,目前具有相同的system-auth文件,password-auth位於/etc/pam.d/.該文件是

auth        required      pam_faillock.so preauth audit deny=3 even_deny_root fail_interval=900 unlock_time=900
auth        sufficient    pam_unix.so try_first_pass
auth [default=die]        pam_faillock.so authfail audit deny=3 even_deny_root fail_interval=900 unlock_time=900

auth        required      pam_env.so
auth        required      pam_faildelay.so delay=2000000
auth        sufficient    pam_unix.so try_first_pass
auth        requisite     pam_succeed_if.so uid >= 1000 quiet_success
auth        required      pam_deny.so

account     required      pam_faillock.so

account     required      pam_unix.so
account     sufficient    pam_localuser.so
account     sufficient    pam_succeed_if.so uid < 1000 quiet
account     required      pam_permit.so


#password    requisite     pam_pwquality.so local_users_only retry=3 minlen=12 gecoscheck maxrepeat=3

password    requisite     pam_pwquality.so local_users_only retry=3 gecoscheck maxrepeat=3

password    required      pam_pwhistory.so remember=5 use_authtok
password    sufficient    pam_unix.so sha512 shadow use_authtok
password    required      pam_deny.so

session     optional      pam_keyinit.so revoke
session     required      pam_limits.so
-session     optional      pam_systemd.so
session     [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session     required      pam_unix.so
  • 有人可以用可以理解的英語解釋到底發生了什麼事嗎?
  • 是否有任何不良或不正確的物品?
  • 當在{ and for minlen }定義minlen=12and時,它們有什麼用途嗎?maxrepeat=3/etc/security/pwquality.conf/etc/login.defs

相關內容