If I do the following:
sudo su -
//enter password
exit
exit
//login again straight away
sudo su -
The second invocation of sudo does not request a password because even though I have logged out again, I am still within some time limit meaning that I do not need to be prompted for my password again.
Because I am trying out some new privs to make sure they work, this is really slowing me down while I wait for the timeout to happen.
Is there a command I can run to reset the timeout?
I don't want to change the timeout or affect other users, by the way!
Best Answer
sudo -k
Will kill the timeout timestamp. You can even put the command afterwards, likesudo -k test_my_privileges.sh
From
man sudo
:You can also change it permanently. From
man sudoers
: