Ubuntu Edit Sudo Password Prompt Duration

Kevin FOO
Dec 21, 2021

--

If you feel that you are getting prompted for password too often when you are using the sudo command. You can lengthen the timeout duration.

sudo visudo

Add timestamp_timeout=1440 next to env_reset. 1440 is equivalent to 1 day in minutes.

Defaults        env_reset, timestamp_timeout=1440

Exit nano by pressing Ctrl+x
then y for yes
then enter

< 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.

No responses yet