Skip to content

Instantly share code, notes, and snippets.

@jkogara
Created December 26, 2024 10:14
Show Gist options
  • Save jkogara/bbfa0999f099676625cc5029fb6916e6 to your computer and use it in GitHub Desktop.
Save jkogara/bbfa0999f099676625cc5029fb6916e6 to your computer and use it in GitHub Desktop.
sudoers.d file to enable once per session sudo password requirement.
# /etc/sudoers.d/prompt_once
# Makes the session be cross terminal, e.g. tmux
Defaults !tty_tickets
# sets the sudo timeout to be infinite
Defaults timestamp_timeout = -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment