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?



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!

mink lash extensions dublin commented 3 days 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.

mink lashes extensions commented 3 days 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.

madden mobile coin shop commented 3 days 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!

csgo skins price list commented 3 days 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!

csgo skins for cash commented 4 days 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.


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

mink lash extensions atlanta commented about 19 hours 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.

7c451a40ba409e00f4b069486ff2a03d?s=100 commented 4 days 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 ;)