I usually use Linux as my standard working system and I learned a lot from actually using it. For this particular question I found no answer yet.
The sudo
command usually remembers me typing in my password for a given time (usually 15 minutes I guess). Is it possible to extend this time to an undefined length but instead ask for the password again after locking my screen?
I always lock my screen when I leave my computer alone (even for seconds) and would like to not always retype my password when doing something.
I dont want to disable the password check in general. If I let anyone doing anything on my computer they still shouldnt be able to use the sudo
command without me typing it once first.