Skip to content

Instantly share code, notes, and snippets.

@sverweij
Created March 26, 2016 09:30
Show Gist options
  • Save sverweij/d5d0ab9a703dccfe064c to your computer and use it in GitHub Desktop.
Save sverweij/d5d0ab9a703dccfe064c to your computer and use it in GitHub Desktop.
Prevent sudo from escalating to other ttys
sudo visudo

and somewhere in that file add

Defaults tty_tickets
  • source
  • other useful stuff for sudo: man sudoers - scroll to the SUDOER OPTIONS section (the first half just explains the syntax of the sudoer file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment