By default, sudo
prompts me to input my user password a maximum of three times if I input wrong password. How can I change it to unlimited times(?)? How can I make it so that it asks me for my password until I enter the right one?
By default, sudo
prompts me to input my user password a maximum of three times if I input wrong password. How can I change it to unlimited times(?)? How can I make it so that it asks me for my password until I enter the right one?
This is documented in
man sudoers
. The setting you are looking for is:So, to change that to, for example, 5, run
sudo visudo
and add these lines:As far as I know, there is no way to set it to unlimited times but you can simply use a huge number:
That is unlimited for all intents and purposes, unless you have a user with a very severe case of OCD, they won't attempt to enter a password more than 100 million times.