Heya, it's 10-11-12 or 10/11/12. You and I, we going to be a part of history. When the date will comeback again we will be history ourselves! :P So enjoy it!

Today I am going to post a follow up on my previous post How to keep the fancy warning message of sudo forever. On that post I wrote about how to enable the warning message forever when using sudo. Now I'm going to write about how the change the warning message and personalize it on your own.

It's so simple. Just create a file called lecture inside /etc/sudoers.d/. You can use the command below.

sudo touch /etc/sudoers.d/lecture
Now edit the file with your favorite text editor in root mode and write your own warning message. Mine is nano.
sudo nano /etc/sudoers.d/lecture
Finally we will have to edit the file we have created on the previous post to enable the custom warning message option.
sudo nano /etc/sudoers.d/local.conf
Append the below line at the end of the file:
Defaults        lecture_file = /etc/sudoers.d/lecture
Voila, You are done. Close your Terminals and reopen it. Now try to do something with sudo and you will see the warning message of your own.

Enough for today. You guys enjoy the 10-11-12. Also don't forget to tell how the tips is and what do you think about this type of fancy things!




What's on your mind?


5 Comments

1ebce0d42ef917671bc5cf5db0bb8f6d?s=100

I was more than happy to uncover this great site. I want to to thank you for your time for this particularly fantastic read!! I definitely loved every bit of it and I have you bookmarked to check out new stuff in your website.

Fc0da675bbd62a7565c96fa0b9dab750?s=100
madden nfl mobile coins buy commented about 20 hours ago

Good day! I could have sworn I've been to this website before but after looking at a few of the posts I realized it's new to me. Anyways, I'm certainly happy I found it and I'll be book-marking it and checking back regularly!

A80cd344fb348a0d6715384478eadba6?s=100
centurionbedandbreakfast.co.za commented 4 days ago

Pretty! This was an incredibly wonderful post.

Thank you for supplying this information.

96bb38a0615fe0cd0faa324f93f9bdc3?s=100

Valuable information. Lucky me I discovered your website accidentally, and I am surprised why this twist of fate didn't happened in advance! I bookmarked it.

0977bb8308f05da38f79bceb339962be?s=100

What's up, all the time i used to check weblog posts here early in the daylight, for the reason that i like to gain knowledge of more and more.