An interesting sudo feature is the ability to insult you when you type a wrong password. It has really funny phrases, see some of them:
- I’ve seen penguins that can type better than that.
- Maybe if you used more than just two fingers…
On Ubuntu, this feature comes disabled by default. To enable it, edit /etc/sudoers file and put “insults” word in the end of line “Defaults…”. That line will look like this:
Defaults !lecture,tty_tickets,!fqdn,insults
That’s it! Just run the sudo command and type a wrong password.
Thanks so much, bani.
Now our security logs are going through the roof while the department laughs purposedly mistyping our passwords.
I hope you’re proud 🙂
Very funny, thanks for the tip!
I would suggest to use visudo, that checks /etc/sudoers syntax before actually overwriting a working one.
visudo or sudoedit 🙂
Definitely a fun time with sudo, seeing that I constantly type my password incorrectly 🙂
Don’t edit the file! Use the commands that nixternal mentioned instead.
haha this is cool!
if you want this to work on a mac you need to have sudo compiled with insults.
on macports that means installing the insults variant of sudo, as in:
$ sudo port install sudo +insults
I’m having a wee bit of trouble…after sudo visudo, I don’t know how to find the Defaults line, or what keys to push
Amy – it’s usually the first line in a default file. If you don’t see it, add to the top:
Defaults insults