How To Let Sudo Insult You When You Type the Wrong Password

This is a completely useless post, but it’s possible to configure sudo to return insults instead of the default error message when you type the wrong password.

To enable this feature, edit /etc/sudoers (with visudo for example) and change the line:


to :


Open a terminal windows as a normal user, type a command with sudo and input the wrong password. Here are a few examples:

$ sudo bash
[sudo] password for testman: xxx
Are you on drugs?

[sudo] password for testman: xxx
Maybe if you used more than just two fingers…

[sudo] password for testman: xxx
Listen, burrito brains, I don’t have time to listen to this trash.

[sudo] password for testman: xxx
You silly, twisted boy you.

[sudo] password for testman: xxx
What, what, what, what, what, what, what, what, what, what?

[sudo] password for testman: xxx
You do that again and see what happens…

[sudo] password for testman: xxx
Where did you learn to type?

[sudo] password for testman: xxx
Your mind just hasn’t been the same since the electro-shock, has it?

[sudo] password for testman: xxx
It can only be attributed to human error.

[sudo] password for testman: xxx
That’s something I cannot allow to happen.

[sudo] password for testman: xxx
We’ll all be murdered in our beds!

This trick works with Ubuntu 12.04 and sudo 1.8.3, but does not  work with Fedora 16. The insults are apparently only available in English even if your system is set to another language.

Source: Tuxplanet.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
6 Comments
oldest
newest
Sander
Sander
12 years ago

Funny. I activated it on my VPS running Ubuntu Server 11.04.

Sander
Sander
12 years ago

@ Sander
Correction: Ubuntu Server 11.10.

Sander
Sander
8 years ago

@Sander
Correction: Ubuntu Server 12.04

sudo
sudo
7 years ago

@Sander
Are you on drugs?

Sander
Sander
7 years ago

Correction: Ubuntu Server 16.01

amit
amit
7 years ago

I added insults, but its not working!

Boardcon Rockchip and Allwinner SoM and SBC products