In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to customize sudo password error prompt in Ubuntu". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
Sudo password input error prompt can be customized to a variety of. In today's post, I'll show you how to get sudo to "taunt" you (or anyone else) when you type the wrong password XD
Doubt what I'm saying? Here, let's take a look at this gif to see how sudo "taunts" you when you type the wrong password.
So, why do this? After all, sarcasm doesn't make your day any better, does it?
To me, a little trick is fun, and more fun than the old "password error" error prompt. Plus, I can show it to my friends to tease them (in this case, via free and open source software). I'm sure you have your own reasons for using this technique.
Enable taunt in sudo
You can enable taunt by adding the following line to the sudo configuration:
The code is as follows:
Defaults insults
Let's see how we do it. Open the terminal and use the following command:
The code is as follows:
sudo visudo
This opens the profile in nano.
Yes, I know that traditional 'visudo' should open the/etc/sudoers file in vi, but Ubuntu and distributions based on it open it with nano. Since we're talking about vi, here's a quick vi lookup table to use if you decide to use vi.
Going back to the Edit sudeors screen, you need to find the line where the Defaults are located. It's simple, just add Default insulation at the beginning of the file, like this:
If you are using nano, use Ctrl+X to exit the editor. On exit, it asks if you want to save your changes. To save your changes, press Y.
Once you have saved the sudoers file, open the terminal and run various commands using sudo. Deliberately enter the wrong password and enjoy the taunt: )
Sudo might be angry. See, he even threatened me after I made another mistake. haha.
"How to customize sudo password error prompt in Ubuntu" is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.