Feb
18
Let Sudo Insult You When You Screw Up
Filed Under Linux
I recently found a fun feature available within the sudo program that will insult you when you do the wrong thing such as enter your password incorrectly. I’ll tell you how you can activate the feature for a few laughs and also give a few examples of what insults you might get.
To turn the feature on you’ll need to use the following command:
sudo visudo
(always use visudo when you need to edit your sudoers file as it has a self-check system that won’t let you screw it up.)
Find the line that begins with Default and append insults to the end. (Any addition to that line is comma separated.) Your entry will then look like this:
Defaults !lecture,tty_tickets,!fqdn,insults
Save the file and you’ll notice the next time you screw up your sudo password you’ll get an insult.
Note: to clear your sudo session and be required to enter the password again try:
sudo -K
A few examples below:
Maybe if you used more than just two fingers…I have been called worse.
Listen, burrito brains, I don’t have time to listen to this trash.
Good luck!
I post tutorials very regularly on this site. You may want to consider subscribing to the RSS feed. Or if you'd prefer these tips sent to your inbox you can use Email Subscriptions.
Related Posts
Random Posts
-->Comments
18 Responses to “Let Sudo Insult You When You Screw Up”
Leave a Reply
this was fun, thanks for that…oh for the little things that please us
FINALLY! Something for us masochists.
JK
[...] Let Sudo Insult You When You Screw Up (tags: sudo insult linux) [...]
[...] Let Sudo Insult You When You Screw Up (Ubuntu Tutorials) PDF [...]
[...] Christer Edwards en Planet [...]
I just discovered your site using Stumbleupon.com and must say it is excellent. As you can see, I use KDE and that is because it offers me many choices as to how to set it up. I like to be able to run multiple desktops with the wall paper changing every minute or so because I use my collection of digital photos I have taken. I group them and each desktop has a theme such as family, landscapes, and photos form the Net.
Personally, KDE, affords me more control over what I want my desktop to look like and I find it much more intuitive than Gnome. Most of my friends are KDE users also and we have been using Linux for many years now.
We have tried Gnome but just don’t like how it looks and works. But, we will admit that somethings in Gnome are nice however, KDE affords us the choices and control we desire.
[...] Ubuntu tutorials) Enviar por [...]
The insults are included at compile-time. If you want to include your own insults you need to get the sourcecode from http://www.gratisoft.us/sudo/ and edit the ins*.h files. The existing ones are quite funny already, though:
Just what do you think you’re doing Dave?
It can only be attributed to human error.
That’s something I cannot allow to happen.
My mind is going. I can feel it.
Sorry about this, I know it’s a bit silly.
Take a stress pill and think things over.
This mission is too important for me to allow you to jeopardize it.
We’ll all be murdered in our beds!
You can’t come in. Our tiger has got flu
What, what, what, what, what, what, what, what, what, what?
You can’t get the wood, you know.
… and it used to be so popular…
Pauses for audience applause, not a sausage
Hold it up to the light — not a brain in sight!
There’s a lot of it about, you know.
You do that again and see what happens…
Harm can come to a young lad like that!
And with that remarks folks, the case of the Crown vs yourself was proven.
Speak English you fool — there are no subtitles in this scene.
It’s only your word against mine.
I think … err … I think … I think I’ll go home
My pet ferret can type better than you!
Your mind just hasn’t been the same since the electro-shock, has it?
Maybe if you used more than just two fingers…
BOB says: You seem to have forgotten your passwd, enter another!
I can’t hear you — I’m using the scrambler.
The more you drive — the dumber you get.
Listen, burrito brains, I don’t have time to listen to this trash.
I’ve seen penguins that can type better than that.
Have you considered trying to match wits with a rutabaga?
You speak an infinite deal of nothing
Very fun! I’ll blog that!
[...] experimente errar uma senha. Retirado do ubuntu-turials. [...]
[...] I get a kick out of the insults that a Debian distribution can give you when you type in an incorrect sudo password. It’s a kick to mistype my password and for my box to come back with remarks like, “I’ve seen penguins that can type better than that,” or “You type like I drive,” or “Maybe if you used more than just two fingers…” If you don’t know how to set this up, check here. [...]
[...] Glück aber nur erstens nur auf ausdrücklichen Wunsch des Administrators und zweitens nur, wenn das Passwort falsch eingegeben wird. (Dann sind die Dumpfbacken ja auch selbst schuld…oops, ich habe mich wohl anstecken [...]
[...] venia usando su, recien me entero…. Si alguien quiere probar con recibir insultos de sudo, aca tiene la explicación de como configurarlo para que eso [...]
When I enabled this, it seemed funny, until I took one insult at the wrong time, and I pushed my desk too hard…
Let’s say that the damage caused is enough to worry about, including a full reinstall on a new machine.
Amusing (in a geeky way)
Most of the time these insults are just kept in a header file which are sucked in at compile time. The sudo source (usually) come with more than one of these headers that you can use to tweak what you get. Or you can add your own.
For example, I get single-line koans when I mess up the login.
No thanks, I get enough insults from my Spouse, thank you very much.
JT
http://www.FIreMe.to/udi
Hmm, not working for me. Is there any change in Fedora systems?