Is there a way to increase the timeout period for the sudo password. I find I am trying to do some things in Ubuntu and I enter the sudo password and several minutes later I have to answer it again.
Is there a way to increase the timeout period for the sudo password. I find I am trying to do some things in Ubuntu and I enter the sudo password and several minutes later I have to answer it again.
CyberPower Gamer Ultra 7209 | AMD Athlon II X2 240 | 6 GB RAM | 1000GB & 500GB SATA-II HDATI Radeon HD4550 | HP 2430 Printer | Ubuntu 11.04 | Windows 7 | ViewSonic VA703b Monitor
On your terminal:
then look for the "Defaults" text inside the configuration file, if you can't find one, insert the line of texts below to you end part of your sudoers file.Code:sudo visudo
Giving it a 10 minutes delay.Defaults passwd_timeout=10
Save file.
PS: If "Defaults" exist, just add passwd_timeout=10 separated by a comma from the latter.
i.e:
Defaults syslog=auth,passwd_timeout=10
Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.
Either you get a root shell which is not officially recommended or you tweak the sudoers file and change the passwd_timeout variable.
More.Code:passwd_timeout Number of minutes before the sudo password prompt times out. The default is 5, set this to 0 for no password timeout.
| My old and mostly abandoned blog |
Linux user #413984 ; Ubuntu user #178
J'aime les fraises.
Nighty night me lovelies!
| Reinstalling Ubuntu ? Please check this bug first ! |
| Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
| No support requests / username changes by PM, thanks. |[SIGPIC][/SIGPIC]
I think this is the right place to post this problem. I set up a few tasks the other night - something as follows:
I wanted them to all complete through the night while I was resting my weary eyes but the only problem is the "sudo apt-get upgrade" or possibly the "sudo apt-get install XXXXX" we're going to take longer than the 10 minutes allowed for sudo privileges that by the time the job got to "autoclean" or "poweroff" I would need to enter the password again, that could very well have been 3AM, and for that reason the machine may not have shutdown (I'd prefer if it would as it's a hot running laptop). How can I get around this without doing a:Code:sudo apt-get update && sudo apt-get upgrade && sudo apt-get install "several packages" && sudo apt-get autoclean && sudo poweroff
Or is that the only way around this.Code:sudo su
in terminaluse the arrow keys to navigate to the line that says:sudo nano /etc/sudoersand remove the hash-mark/pound(number sign) at the beginning of the line.#%sudo ALL=NOPASSWD: ALL
type Cntrl+x (that's the control button and x at the same time), answer y then enter. Now you'll only need to enter sudo at the start of your session.
Kipling - "if"
Bookmarks