This question already has an answer here:

If I'm asked for the sudo password, after typing it in correctly, the terminal moves on almost instantaneously. However, if I mistype my password, it takes a few seconds before working it out and asking me again. I timed it a few times, and mostly takes around 2.2 seconds.

Why does it take so much longer, and is there a way to speed it up?

(I have a few dodgy keys on my mechanical keyboard that often don't register, or register twice, so I often mistype my password.)

marked as duplicate by Anthon, Stephen Kitt, Sparhawk, chaos, PersianGulf May 22 '15 at 9:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


The built-in delay is to slow down the process of password guessing. Looks like someone could programmatically guess about 27 potential passwords per minute, which, as you've observed is a good deal less than if there was no delay.

Not the answer you're looking for? Browse other questions tagged or ask your own question.