Linux command
pam_faildelay 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Set authentication delay
auth optional pam_faildelay.so delay=3000000
Short delay
auth optional pam_faildelay.so delay=1000000
说明
pam_faildelay is a PAM module that sets the delay applied after a failed authentication attempt. It overrides the FAIL_DELAY setting in `/etc/login.defs`. The delay is specified in microseconds (1,000,000 = 1 second). The module is configured in PAM service files (e.g., `/etc/pam.d/login`) and helps mitigate brute-force attacks by slowing down repeated authentication attempts.
参数
- delay=_MICROSECONDS_
- Delay in microseconds (1000000 = 1 second).
FAQ
What is the pam_faildelay command used for?
pam_faildelay is a PAM module that sets the delay applied after a failed authentication attempt. It overrides the FAIL_DELAY setting in `/etc/login.defs`. The delay is specified in microseconds (1,000,000 = 1 second). The module is configured in PAM service files (e.g., `/etc/pam.d/login`) and helps mitigate brute-force attacks by slowing down repeated authentication attempts.
How do I run a basic pam_faildelay example?
Run `auth optional pam_faildelay.so delay=3000000` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does delay=_MICROSECONDS_ do in pam_faildelay?
Delay in microseconds (1000000 = 1 second).