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 = 24 hours in minutes
timestamp_timeout=1440

To save it in nano. Press Ctrl+X and then Y for yes to save.