Sitemap
Kevin FOO

Kevin FOO

A software engineer, a rock climbing, inline skating enthusiast, a husband, a father.

Sudo Password Expiry

Jan 2, 2025

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.

< Back to all the stories I had written

--

--

Kevin FOO
Kevin FOO

Written by Kevin FOO

A software engineer, a rock climbing, inline skating enthusiast, a husband, a father.