Skip to content

Instantly share code, notes, and snippets.

@Aebian
Created May 30, 2017 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aebian/0134a2e64ed9f4b7eef589c57cf7ebdd to your computer and use it in GitHub Desktop.
Save Aebian/0134a2e64ed9f4b7eef589c57cf7ebdd to your computer and use it in GitHub Desktop.
#Disable passwords globally
Defaults !authenticate
# Require password for specific commands every second.
Cmnd_Alias WITHPW = /bin/rm, /sbin/shutdown,/usr/bin/apt
Defaults!WITHPW authenticate, timestamp_timeout=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment