T
T
triggerfinger2018-01-29 14:17:48
linux
triggerfinger, 2018-01-29 14:17:48

How to change the time for which the terminal remembers the sudo password?

After entering the password, due to the execution of the command with sudo, the system/terminal remembers the password for some time and does not ask for it again. According to my observations, maybe 30 minutes. After that, I believe for protection purposes that the user may forget that the commands are from sudo (or is there another reason?), the password is asked again.
How to set this time?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex McArrow, 2018-01-29
@triggerfinger

in the file, /etc/sudoers
replace
with (or greater)
Defaults env_reset,timestamp_timeout=30

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question