cariboo
April 4th, 2015, 04:38 PM
I ran into an article about Linux Easter Eggs last night, that had one I hadn't seen before.
Insult Users with sudo.
You can configure sudo, used to elevate the privileges of a command, to insult users when they type in an incorrect password.
To do so, edit the sudoers file with a tool called visudo, which edits and validates modifications to the sudo configuration file.
sudo visudo
Near the top add a line:
Defaults insults
Save and close the file.
Next, empty the cache that stores your password for a certain amount of time and then mistype your password for a sudo command:
sudo -k
sudo ls
cariboo@skynet:~$ sudo ls
[sudo] password for cariboo:
Pauses for audience applause, not a sausage
[sudo] password for cariboo:
You type like I drive.
Has any one else run into any Easter eggs aside form the usual?
Insult Users with sudo.
You can configure sudo, used to elevate the privileges of a command, to insult users when they type in an incorrect password.
To do so, edit the sudoers file with a tool called visudo, which edits and validates modifications to the sudo configuration file.
sudo visudo
Near the top add a line:
Defaults insults
Save and close the file.
Next, empty the cache that stores your password for a certain amount of time and then mistype your password for a sudo command:
sudo -k
sudo ls
cariboo@skynet:~$ sudo ls
[sudo] password for cariboo:
Pauses for audience applause, not a sausage
[sudo] password for cariboo:
You type like I drive.
Has any one else run into any Easter eggs aside form the usual?