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!
/etc/sudoers.d/
directory. I have the line#includedir /etc/sudoers.d
in/etc/sudoers
and though that the line is disabled by a comment but it looks like the#
beforeincludedir
is not read as a comment!