Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I login after boot, or maybe after a idle time, I am presented with a login box. If I enter the incorrect password, it takes a longer time to verify, and give the error message, than entering the correct password, and getting logged in. Why is that?

share|improve this question
up vote 7 down vote accepted

Probably because this makes brute-force guessing passwords more time-consuming and therefore less likely. See also 1

share|improve this answer
This is correct. The login screen (GDM) communicates with Linux-PAM to check user credentials. If the user fails to authenticate, Linux-PAM waits a random amount of time before sending its response back to GDM. – ændrük Mar 1 '11 at 19:59
@ændrük The link is not working. I have the following revised link from… – hexafraction Oct 7 '12 at 15:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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