Tech, Gadgets, Photography, Social Media and Poor Spelling

Make Sudo errors insulting..

The sudo command by default prompts for the password of the user and on entering the wrong password it throws the error 

To make this a little more fun, we can change the error to some thing else. The sudo command has an option using which sudo can be made to throw mildly rude comments as errors. 
To this open the file /etc/sudoers (You will need root privileges). 


Add the following line at the beginning of the file (after the intial set of comments). 


and save the file. 
Now try using the command sudo and enter a wrong password. 
For e.g. 



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


This entry was posted on May 8, 2012 by in regular and tagged , , , .
%d bloggers like this: