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?


1 Comments