Hi
Originally Posted by
charleswb
I have read that after entering sudo followed by a command, and entering my password, the terminal should remember my password for 15 min so that I don't have to reenter my password for each command.
From .
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.
As you state, the default timeout is 15 mins.
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 will always have to enter sudo before a command if you want to run that command with elevated privileges.
You should not have to enter your password each time though.
How can I edit the sudoers file to set the time out to 15 minutes?
First thing i would check would be your sudoers file.
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
Code:
Defaults env_reset, timestamp_timeout=0
Change it to this.
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
Kind regards
Bookmarks