Xer*_*xes 15
正如 Dentrasi 所解释的那样 - 这是为了让攻击者更难对密码存储进行暴力攻击。在几乎所有情况下,您都不会改变这种行为。
如果您有充分的理由(我想不出),您可以通过/etc/login.defs - 请参阅login.defs(5)手册页对其进行修改。
FAIL_DELAY (number)
Delay in seconds before being allowed another attempt after a login failure.
Run Code Online (Sandbox Code Playgroud)
嗯...在联机帮助页的末尾...
Much of the functionality that used to be provided by the shadow password suite
is now handled by PAM. Thus, /etc/login.defs is no longer used by passwd(1), or
less used by login(1), and su(1). Please refer to the corresponding PAM
configuration files instead.
Run Code Online (Sandbox Code Playgroud)
相应的 PAM 条目代替...
# Enforce a minimal delay in case of failure (in microseconds).
# (Replaces the `FAIL_DELAY' setting from login.defs)
# Note that other modules may require another minimal delay. (for example,
# to disable any delay, you should add the nodelay option to pam_unix)
auth optional pam_faildelay.so delay=3000000
Run Code Online (Sandbox Code Playgroud)