Skip to content

Instantly share code, notes, and snippets.

@tonejito
Last active June 29, 2018 13:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonejito/235feb4f1d299fd82ad513289b4704ee to your computer and use it in GitHub Desktop.
Save tonejito/235feb4f1d299fd82ad513289b4704ee to your computer and use it in GitHub Desktop.
sudoers.d insults configuration file
# = ^ . ^ =
#
# /etc/sudoers.d/sudoers-insults
# sudoers.d insults configuration file
# Andres Hernandez - tonejito
#
# This file must be mode 0440 and owner root:root
# install --mode 0440 --owner root --group root sudoers-insults /etc/sudoers.d/
#
# Edit with visudo
# visudo -f /etc/sudoers.d/sudoers-insults
#
# Either enable badpass_message or insults :P
# http://jurassicsystems.com/
#Defaults badpass_message="Ah ah ah. You didn't say the magic word"
Defaults insults
@tonejito
Copy link
Author

tonejito commented Nov 16, 2016

Using both in any order leads to (A), at least on @Debian 8 #Jessie

A. Using Defaults insults:

$ sudo -i
[sudo] password for tonejito: 
Are you on drugs?
[sudo] password for tonejito: 
Your mind just hasn't been the same since the electro-shock, has it?
[sudo] password for tonejito: 
Fíjate que lo que paaaza...
sudo: 3 incorrect password attempts

B. Using Defaults badpass_message="..."

$ sudo -i
[sudo] password for tonejito: 
Ah ah ah. You didn't say the magic word
[sudo] password for tonejito: 
Ah ah ah. You didn't say the magic word
[sudo] password for tonejito: 
Ah ah ah. You didn't say the magic word
sudo: 3 incorrect password attempts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment