Advertisements

Fixing the Sudo Timeout

So I can find it again, the way to change the sudo timeout for a particular user (that would be me) involves adding a line to the /etc/sudoers file using sudo visudo, thusly:

Defaults:       ed timestamp_timeout=90
# blank line to make the underscore visible

If you add that timeout to the global Defaults env_reset line, then everybody gets a monster timeout, which may not be what you want.

You can change the default editor (nano in Ubuntu) thusly:

sudo update-alternatives --config editor
Advertisements
  1. #1 by celem on 2015-12-14 - 09:11

    Thanks. I am the only user on my system so I’ll switch to a long timeout.