I intend to play with the linux insults and add a few. However, i only could figure how to add a single insult but not a list or the location of the file that contains the insults.
For me on the Debian side, I ended up writing a sudoers.d directive to achieve the result, because adding a list of custom insults requires recompilation of
In my custom config I use two directives
One for boring systems where
sudois compiled without
insults, here I use
badpass_messageto hardcode a single custom insult which appears in every bad password message
A directive for the fun systems where
insultsis supported on
You must enable either
badpass_message, enabling both falls back to
insults (at least on Debian).
I'm not sure as I have not used this funny(?) feature before but I have find this sudoers insults help and Insult me, sudo!!! and other references that suggest that this "feature" have to be enabled compiling
sudo from sources.
I guest that (since it's fun but useless) that many *nix do not include it at all and if they do that list is hardcoded into the
To obtain this you have to edit
visudo ) and add this directive:
On OSX 10.8.4 (sudo version 1.7.4p6) you can check the active
Defaults using :
$ sudo -l | grep insult XAUTHORIZATION XAUTHORITY", env_keep+="EDITOR VISUAL", env_keep+="HOME MAIL", insults
Then you can try it using:
$ sudo -K $ sudo ls
and if you write a wrong password you'll see the "insult"
But I have tested all this on OSX 10.8.4 and it do not work, you get the standard
Sorry, try again. message.
I have searched the output of
$ sudo strings `which sudo`
but ther are no such strings.
NOTE: I'll test it on other *nix (as soon as I can) and report.