-
Fixing the Sudo Timeout
So I can find it again, the way to change the
sudotimeout for a particular user (that would be me) involves adding a line to the/etc/sudoersfile usingsudo visudo, thusly:Defaults: ed timestamp_timeout=90 # blank line to make the underscore visibleNote the colon! Should you add the timeout to the global
Defaults env_resetline, then everybody gets a monster timeout, which may not be what you want.You can change the default editor (
nanoin Ubuntu) thusly:sudo update-alternatives --config editorOr, in Arch / Manjaro, add a stanza:
Defaults editor=/usr/bin/nanoBecause my
vihand is weak:- :wq to save & exit
- :q! to bail out
- i and a at cursor, I and A in line
- o and O at line
- ␛ back to command mode
That’s all I need to insert the proper stanza & move on.