Originally Posted by charleswb
As you state, the default timeout is 15 mins.
Once a user has been authenticated, a time stamp is updated and the user may then use sudo without a
password for a short period of time (15 minutes unless overridden by the timeout option.
You will always have to enter sudo before a command if you want to run that command with elevated privileges.
However, my sudo timeout seems to be zero. It makes me reenter the word sudo in front of every command line and reenter my password each time too.
You should not have to enter your password each time though.
First thing i would check would be your sudoers file.
How can I edit the sudoers file to set the time out to 15 minutes?
Open a terminal and type
Look for a line containing the word and see if it has the text
. If it does then remove it.
IE. If you see a line that looks something like this
Change it to this.
Defaults env_reset, timestamp_timeout=0
i.e remove the reference to timestamp_timeout=X from the file.
Be very careful when editing the file (although using visudo should perform checks for you). If in doubt post the contents of the file here so we can look before modify it.
After that i would check the timestamps directories below the directory
EDIT: Beaten to it. That will teach me for writing a novel