You are not logged in.
A week ago I changed the sudo timeout to be 60 minutes. It worked for a few days, but then somehow just stopped working. It doesn't even last the original 5 minutes. I have to enter the password for every sudo command now, which is very annoying. I don't know how to diagnose this and I can't find any other accounts of the same problem. Any help would be really appreciated.
This is what I added to the /etc/sudoers file:
## Read drop-in files from /etc/sudoers.d
@includedir /etc/sudoers.d
## sudo timeout
Defaults:user timestamp_timeout=60I also tried this just to see but it's the same:
## sudo timeout
Defaults timestamp_timeout=60Thanks.
---
edit -Solved it myself, I was just tricked into thinking there was a problem but I actually just didn't understand what was happening. I'm posting the solution because I can't delete the thread.
From the arch wiki "If you are annoyed by sudo's defaults that require you to enter your password every time you open a new terminal, set timestamp_type to global"
[SOLUTION]
## Read drop-in files from /etc/sudoers.d
@includedir /etc/sudoers.d
## sudo timeout
Defaults:user timestamp_timeout=60
## don't require password for each new terminal
Defaults:user timestamp_type=globalLast edited by mathbike (2023-03-03 17:00:04)