Say I execute a command with sudo
, then if I use sudo
within the next 15/5 minutes (not sure how long it remembers me for) it won't prompt me for a password. It will only prompt me again if I haven't used it for at least that long.
However, if I suspend my machine, wake it up, and login before that time period has ended, I can just execute a sudo
command again and it won't ask me for my password because I haven't let it be for the certain amount of time.
So how can I make it so that no matter how long I haven't used sudo
for, it will definitely prompt me for a password after the suspend once I've logged in again, even if I'm still within that time frame where the 15/5 minutes of not using sudo
haven't passed yet?
The most likely thing that will work is to get it to execute a command to remove all identity caches for sudo
upon the execution of a certain command which is executed on wakeup.
I am running Ubuntu GNOME 15.10 with GNOME 3.18.
sudo
sudo
ask you next time. An automatic solution would be preferred.sudo
. I know that sounds a bit strange for my own computer, but I could have been doing some maintenance work on another Ubuntu computer, and then when I log the user back in again, it might be inconvenient to close Terminal, but I don't want them to havesudo
rights.