If you are using sudo often and password expires too quickly and keeps prompting you for the password can be quite annoying. To lengthen the password expiry time, run
sudo visudo
Then add the following value after env_reset just like in the screenshot. 1440 minutes = 24 hours
timestamp_timeout=1440
Press enter or click to view image in full size
To save it in nano. Press Ctrl+X and then Y for yes to save.
Get Kevin FOO’s stories in your inbox
Join Medium for free to get updates from this writer.