How to get sudo to prompt you for a password each time in linux

10:44:00 AM Mahesh Kumar Yadav 1 Comments


Open Terminal and type:
sudo visudo
Then scroll down to the line that reads:
Defaults        env_reset
And change it to:
Defaults        env_reset,timestamp_timeout=0
You can change 0 to any values (time in minutes). Setting it to 0 will ask for your password every time and -1 will make it never ask. The default is 15 according to man sudo 8, but some manuals say the default is 5. Have a look at the RootSudoTimeout wiki for more information.
Press CTRL + X to finish editing, Y to save changes, and ENTER to exit.

You Might Also Like

1 comment :

  1. The King Casino | Review of Casino | RTP - Joker
    The king casino review https://jancasino.com/review/merit-casino/ - worrione everything you need to know about 출장안마 this popular casino. 도레미시디 출장샵 It's casinosites.one all about quality and quantity.

    ReplyDelete