You may have noticed the warning message while using sudo for the first time on Linux. The warning message is something like this:

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.</pre>

I think it's fancy to keep the waring message not only for the first time but for all the time, and surely I like it. You may also want to keep it if you have multiple users on your computer or server. Or even being a single fancy user like mine. ;)

Okay, I will show you how to keep the message forever on your Terminal while executing any sudo command.

Let's start. Create a file named local.conf inside /etc/sudoers.d/ of your Linux machine. You can use the command bellow to do that:

sudo touch /etc/sudoers.d/local.conf
Now open this file (/etc/sudoers.d/local.conf) with your preferred text editor in root mode. I use nano.
sudo nano /etc/sudoers.d/local.conf
Append this line into the file.
Defaults        lecture = always
Save the file. Close your Terminals and reopen it. Now try to do something with sudo.

I will post how to edit the warning message next. Till then let us know via comment what do you think about this type of fancy things!

Update 10-12-12: Wrote the follow up post: How to personalize the fancy warning message of sudo.




What's on your mind?


27 Comments

0f754ad25144de77af17f599bd055ab1?s=100
fifa 17 coins cheap xbox one commented 8 months ago

Heya i am for the first time here. I came across this board and I find It really useful & it helped me out a lot. I hope to give something back and help others like you helped me.

F7dbd128daa482e32bfa87a934803bd3?s=100
fifa 17 coins free ps4 commented 8 months ago

It's very straightforward to find out any matter on net as compared to books, as I found this article at this web site.

116d25319e5e04fcc91084dd251e5c3e?s=100
silk lash extensions vs mink commented 8 months ago

Greetings! Quick question that's entirely off topic. Do you know how to make your site mobile friendly? My web site looks weird when browsing from my apple iphone.

I'm trying to find a theme or plugin that might be able to correct this problem. If you have any recommendations, please share. Cheers!

B41fbfe2695952ee04f202a9a41a8e14?s=100
fifa 17 coins xbox one commented 8 months ago

What a material of un-ambiguity and preserveness of precious know-how about unpredicted feelings.

E783074f8e5a7344e97b1d94f173d119?s=100
www.consulenzaleonardo.com commented 8 months ago

First of all I want to say awesome blog! I had a quick question that I'd like to ask if you do not mind. I was interested to know how you center yourself and clear your mind before writing. I've had trouble clearing my mind in getting my ideas out. I do enjoy writing but it just seems like the first 10 to 15 minutes are generally wasted simply just trying to figure out how to begin. Any ideas or tips? Appreciate it!

2e499b3b0fbf35df82d3f4a3aeedf633?s=100
http://dienlanhthanhhanh.com commented 8 months ago

I really like it when people come together and share opinions. Great website, continue the good work!

46a68dbd12ff3e9b34b228dc17991cec?s=100
fifa coins ps4 ebay commented 8 months ago

Wow, wonderful weblog format! How long have you ever been blogging for? you make blogging look easy.

The overall look of your web site is wonderful, as smartly as the content!

Ab8fd64f4d02455aac78263971ce74a9?s=100
fifa coins zone ps4 commented 8 months ago

Hi there, just became alert to your blog through Google, and found that it's truly informative. I am gonna watch out for brussels. I'll be grateful if you continue this in future.

Many people will be benefited from your writing. Cheers!

3a0462fc327b2f6bbc8889b104d223c3?s=100
fifa 17 coins generator tool commented 8 months ago

Please let me know if you're looking for a article writer for your site. You have some really good articles and I think I would be a good asset.

If you ever want to take some of the load off, I'd absolutely love to write some content for your blog in exchange for a link back to mine.

Please shoot me an e-mail if interested. Many thanks!

D3c4ad3dd07578a695755d3a9f8374a9?s=100
cs go skins for money commented 8 months ago

I was wondering if you ever thought of changing the layout of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two images. Maybe you could space it out better?

Bf7d95d92cdf0e8f0c413ae694086102?s=100
silk lash extensions sydney commented 8 months ago

It's great that you are getting ideas from this paragraph as well as from our discussion made at this place.

C75dfc22cf77be4784006887260acf6d?s=100
nba live coins free commented 8 months ago

Simply desire to say your article is as amazing. The clearness on your post is simply cool and that i can suppose you're an expert on this subject. Well together with your permission allow me to take hold of your feed to keep updated with approaching post. Thanks one million and please keep up the enjoyable work.

07667c03f59cd7ec68a8b5f45770cd88?s=100
buy cheap nba live coins commented 8 months ago

Link exchange is nothing else except it is only placing the other person's webpage link on your page at proper place and other person will also do same for you.

00538cbb93d7c4d6c221d74648c30a27?s=100

I just like the helpful info you supply on your articles. I'll bookmark your blog and check once more here frequently. I am rather sure I'll be told plenty of new stuff proper here! Best of luck for the next!

3f6299f89ed68ec5bb70866b2c153b6c?s=100
siberian mink lashes cruelty commented 8 months ago

I visited many sites except the audio quality for audio songs existing at this site is genuinely excellent.

D35785a37a9484a8311557ef1a3239ef?s=100
faux mink lashes for sale commented 8 months ago

Hey there! This is my first visit to your blog! We are a collection of volunteers and starting a new initiative in a community in the same niche. Your blog provided us valuable information to work on. You have done a extraordinary job!

20000754f4d40d969ad88563ba0de69d?s=100
nba live coins cheap commented 8 months ago

Hi! I just wish to offer you a huge thumbs up for the excellent info you've got here on this post. I will be coming back to your web site for more soon.

927f0abd81d3e0184009cb4c2579a1f2?s=100
autopost.turntupontheyard.com commented 8 months ago

It's amazing to visit this web site and reading the views of all colleagues regarding this post, while I am also eager of getting experience.

Ba5e5b5d8cd7d458c8a9b9e604efd32c?s=100

Highly descriptive post, I enjoyed that bit. Will there be a part 2?

49fad527a3ad58ed9eacad27080642c9?s=100

First of all I would like to say excellent blog! I had a quick question in which I'd like to ask if you don't mind. I was curious to know how you center yourself and clear your thoughts prior to writing. I've had a hard time clearing my thoughts in getting my ideas out there. I do enjoy writing but it just seems like the first 10 to 15 minutes tend to be lost simply just trying to figure out how to begin. Any recommendations or hints? Thank you!

Abce83a1596839540c50772b0bdf950c?s=100
mink lash extensions atlanta commented 8 months ago

Hmm is anyone else experiencing problems with the pictures on this blog loading? I'm trying to find out if its a problem on my end or if it's the blog. Any feed-back would be greatly appreciated.

23fef6ed4833a2d197f100effd00551e?s=100
mink lash extensions dublin commented 8 months ago

Hello! I simply would like to give you a huge thumbs up for your great information you have right here on this post. I will be coming back to your site for more soon.

31b93829691ee3a2791acb9ad99dbfa2?s=100
mink lashes extensions commented 8 months ago

What's up everybody, here every one is sharing these kinds of know-how, therefore it's nice to read this website, and I used to visit this web site daily.

98ae6aad810a9bac4af4c5f3069791c9?s=100
madden mobile coin shop commented 8 months ago

I was suggested this web site by my cousin. I'm not sure whether this post is written by him as no one else know such detailed about my trouble. You are incredible! Thanks!

F1864b2dfcd0b884e92ddbf96a7a0f27?s=100
csgo skins price list commented 8 months ago

This is the right site for anybody who hopes to understand this topic. You understand a whole lot its almost hard to argue with you (not that I really would want to…HaHa). You definitely put a new spin on a topic that has been written about for years. Great stuff, just excellent!

Acd761da82d2033b20d1b31ea0c9b144?s=100
csgo skins for cash commented 8 months ago

My spouse and I stumbled over here from a different page and thought I might as well check things out. I like what I see so now i am following you.

Look forward to looking at your web page repeatedly.

7c451a40ba409e00f4b069486ff2a03d?s=100
nanoshells.bsu.by commented 8 months ago

I'd like to thank you for the efforts you've put in writing this blog. I'm hoping to check out the same high-grade blog posts from you later on as well. In fact, your creative writing abilities has inspired me to get my own, personal website now ;)