Sudo Insults

Published: [2020-08-20 Thu]

Here is a quick how-to for today.

Dave, Stop! I can feel my mind slipping.

Do you feel stupid when you flub your password? Do you wish your computer would give you the negative feedback you deserve? I have the solution for you!

  1. Get a root shell. sudo -i or su - usually work.
  2. visudo
  3. Either uncomment or add this line.

    Defaults insults
    
  4. :wq (or ^O^X if you use nano).

Congratulations! You have just configured sudo to give you the praise you deserve when you enter the wrong password.

To test it out, open a second unprivileged shell:

kyle@perkins ~ $ sudo whoami
Password: 
Do you think like you type?
Password: 
This mission is too important for me to allow you to jeopardize it.
Password: 
sudo: 3 incorrect password attempts

Gentoo/Funtoo users

On Gentoo and Funtoo, you must enable the offensive USE flag of the app-admin/sudo catpkg.

In package.use:

app-admin/sudo offensive

Feedback