Wrong password? This sudo will "taunt" you.

Source: Internet
Author: User

Guide You will have a lot of fun in the Linux terminal. What I'm going to talk about today is not running the train in the terminal. The skills I'm going to talk about today can relax your mood. You've learned how to increase the time-out of the sudo command on the command line, and in today's article I'll show you how to get sudo to "taunt" you (or someone else) with the wrong password.


Confused about what I said? Here, let's look at this GIF to see how sudo can "taunt" you after you've lost the wrong password.
So, why do you do this? After all, "taunt" doesn't make your day happy, does it? For me, a little bit of skill is interesting and more interesting than the previous "Password error" error message. In addition, I can show my friends to tease them (this example is through free open source software). I'm pretty sure you have your own reasons to use this technique.

enable "taunt" in sudo

You can add the following line to the sudo configuration to enable the taunt feature:

Defaults Insults

Let's see what we can do. Open the terminal and use the following command:

sudo visudo

This opens the configuration file in the nano. Yes, I know the traditional ' visudo ' should open the/etc/sudoers file in VI, but Ubuntu and the release based on it will open with the nano. Since we are discussing VI, there is a VI speed check table that you can use when you decide to use VI. Back to the Edit Sudeors file interface, you need to find the line where the Defaults is located. Simple enough, just add defaults insults at the beginning of the file, like this:
If you are using the Nano, use Ctrl+x to exit the editor. When you exit, it asks if you want to save the changes. To save your changes, press "Y". Once you have saved the sudoers file, open the terminal and use sudo to run the various commands. Deliberately enter the wrong password and enjoy the taunt: sudo may be angry. See, he even threatened me after I lost another mistake.

Free to provide the latest Linux technology tutorials Books, for open-source technology enthusiasts to do more and better: http://www.linuxprobe.com/

Wrong password? This sudo will "taunt" you.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.