This feature modifies the sudo command's behavior to present lighthearted remarks when an incorrect password is entered, offering an alternative to the standard error message. It serves as a minor customization that can introduce amusement or serve as a conversational piece.
Enabling the Insults Feature
Activate this functionality by adding a specific directive to the sudo configuration file. Use the following terminal command to edit the sudoers file securely:
sudo visudo
This command typically opens the /etc/sudoers file in a text editor. Navigate to the section containing Defaults directives and append the following line:
Defaults insults
After making the change, save and exit the editor. The exact method depends on your configured editor (e.g., press Ctrl+X, then Y in nano).
Once configured, subsequent failed sudo password attempts will trigger humorous responses instead of the typical "Sorry, try again" message.
Example terimnal interaction after enalbing the feature:
$ sudo ls
[sudo] password for user: # User enters wrong password
Hold it up to the light --- not a brain in sight! # Example humorous response
[sudo] password for user: # User enters wrong password again
My pet ferret can type better than you! # Another example response