#%PAM-1.0
auth required pam_sepermit.so
auth optional pam_faildelay.so delay=[N time in microseconds]
auth include password-auth
account required pam_nologin.so
account include password-auth
password include password-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session required pam_loginuid.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session required pam_selinux.so open env_params
session optional pam_keyinit.so force revoke
session include password-auth
这可以通过
pam_faildelay.so
PAM 模块 ( man ) 进行控制。在 RHEL 6 下,以下文件适用于
sshd
:/etc/pam.d/sshd:
如果您不想
delay
在pam
模块配置中设置,可以将其设置为:/etc/login.defs:
请注意,奇怪的是,FAIL_DELAY 接受以秒为单位的时间。
要将其应用于控制台登录,请修改
/etc/pam.d/password-auth
和/或/etc/pam.d/system-auth
. 另请注意,您必须pam_faildelay.so
在任何其他行之前包含该行auth
(尤其是pam_unix.so
)。