When I run sudo
and enter my password, a subsequent invocation of sudo
within a few minutes will not need the password to be re-entered.
How can I change the default timeout to require the password again?
sudo
When I run sudo
and enter my password, a subsequent invocation of sudo
within a few minutes will not need the password to be re-entered.
How can I change the default timeout to require the password again?
Best Answer
man sudoers
says:To change the timeout, run,
sudo visudo
and add the line:where
30
is the new timeout in minutes.To always require a password, set to
0
. To set an infinite timeout, set the value to be negative.To totally disable the prompt for a password for user
ravi
: