I want to make sudo re-ask me for my password. It caches it for 5 mins I think, but I realise I don't know how to force it to re-ask.
Does anybody know how to do this?
Printable View
I want to make sudo re-ask me for my password. It caches it for 5 mins I think, but I realise I don't know how to force it to re-ask.
Does anybody know how to do this?
Hi humbletech99 !
in /etc/sudoers file, change
toCode:Defaults !lecture,tty_tickets
Be aware that 'sudo' is very picky about correct syntax in its configuration file and will refuse to work if you make the slightest mistake. you should use the 'visudo' tool to edit the file, rather than opening it directly.Code:Defaults !lecture,tty_tickets,timestamp_timeout=0
casper
thanks, that was exactly it.