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”

  1. matt lee on February 18th, 2007 2:35 pm

    this was fun, thanks for that…oh for the little things that please us ;-)

  2. Elez J. Shenhar on February 18th, 2007 2:46 pm

    FINALLY! Something for us masochists. :)
    JK

  3. links for 2007-02-18 at jensen on February 18th, 2007 4:35 pm

    [...] Let Sudo Insult You When You Screw Up (tags: sudo insult linux) [...]

  4. Kernel Source » Haz que sudo se vuelva respondón on February 19th, 2007 7:05 am

    [...] Let Sudo Insult You When You Screw Up (Ubuntu Tutorials) PDF [...]

  5. biestado » Blog Archive » Sudo se ríe de tí cuando te equivocas escribiendo tu prasswrod on February 19th, 2007 9:09 am

    [...] Christer Edwards en Planet [...]

  6. KDEforMe on February 19th, 2007 12:22 pm

    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.

  7. Deja que ’sudo’ te insulte - Bio XD on February 20th, 2007 2:28 pm

    [...] Ubuntu tutorials) Enviar por [...]

  8. steven on February 20th, 2007 4:12 pm

    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

  9. Silveira Neto on February 20th, 2007 5:59 pm

    Very fun! I’ll blog that!

  10. Sudo xingando quando você erra a senha » Eu Podia Ta Matando on February 21st, 2007 12:35 pm

    [...] experimente errar uma senha. Retirado do ubuntu-turials. [...]

  11. Hilltop Yodeler » Some Disheartening News on April 13th, 2007 11:16 pm

    [...] 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. [...]

  12. stefan.waidele.info » Blog Archive » Sudo beschimpft Benutzer… on May 5th, 2007 2:21 am

    [...] 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 [...]

  13. [ elzoona.com.ar ] » Blog Archive » Insultado por sudo on August 3rd, 2007 6:15 am

    [...] 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 [...]

  14. Ferdinando on August 29th, 2007 2:53 am

    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.

  15. tor on September 2nd, 2007 4:36 pm

    Amusing (in a geeky way) :-)

  16. clvrmnky on June 18th, 2008 2:24 pm

    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.

  17. John thomas on June 21st, 2008 6:11 am

    No thanks, I get enough insults from my Spouse, thank you very much.

    JT
    http://www.FIreMe.to/udi

  18. Binny V A on June 22nd, 2008 9:46 am

    Hmm, not working for me. Is there any change in Fedora systems?

Leave a Reply




    OSCON


    OSCON 2008

    Subscribe to the RSS feed!


    subscribe to the ubuntu tutorials RSS feed

    Polls


  • Regarding the Ads on Ubuntu Tutorials...

    View Results

    Loading ... Loading ...

  • Blogroll

  • Ads by Google