Sudo Password Expiry

Kevin FOO
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 = 24 hours in minutes

timestamp_timeout=1440

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

< Back to all the stories I had written

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Kevin FOO
Kevin FOO

Written by Kevin FOO

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

No responses yet

Write a response