📜 ⬆️ ⬇️

Mode “slander” in sudo!

Recently, I discovered a funny thing in the sudo program: the program can smack and tease if you enter the password incorrectly. I'll tell you how to activate this feature and give a few examples of what sudo can say.

To enable this mode use the command:

sudo visudo
')
(always use visudo to edit the sudoers file).

Find the line starting with Default and add insults at the end (all additions in this line are separated by commas). It turns out something like this:

Defaults! Lecture, tty_tickets,! Fqdn, insults

Save the file. The next time you enter the password for sudo incorrectly, the program will not miss the opportunity to pin you up.

Note: to clear a sudo session so that it will again require a password, use:

sudo -K

A few examples:

Maybe if you used more than just two fingers ...

I have been called worse.

Listen, burrito brains, I don’t have time to listen to this trash.

Have fun :)

Translation made for Linux in digg in Russian

Source: https://habr.com/ru/post/31242/


All Articles