After entering an incorrect password at a login prompt, there s an approximately 3-second delay. How can I change that on a Linux system with PAM?
How does one change the delay that occurs after entering an incorrect password?
login;pam;hardening
I assume you are using Linux and pam. The delay is probably caused by pam_faildelay.so. Check your pam configuration in /etc/pam.d using pam_faildelay, e.g:# 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=3000000To change the time adjust the delay parameter. If you want to get rid of the delay you can delete/comment the complete line.Another source for the delay may be pam_unix.so. To disable the delay caused by pam_unix.so add the nodelay parameter.