r/linuxquestions • u/luminousridge • Oct 24 '16
Why does 'sudo' take longer when I enter the wrong password?
I'm curious as to why the 'sudo' command can instantly recognize if I've typed in the right password and then proceed to execute whatever command I asked it to as a super user but when I enter the password incorrectly, it takes a few seconds before it realizes it was wrong.
EDIT : Found this explanation on stackoverflow
73
Upvotes
85
u/reverendj1 Oct 24 '16
It's to prevent a brute force attack.
-11
u/lexicon_social Oct 24 '16
Is your wrong password very similar to the correct password?