How-to-simply...

Increase sudo password timeout for specific user on Linux

  • 1 sudo visudo
  • 2 Defaults:USER_NAME timestamp_timeout=30
  • N Find # Defaults specification section and add a new Defaults value to set sudo password timeout for specific user (in minutes). Set the value to 0 to require password every time or -1 to never ask for the password once entered.

References