Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question