Sudo Insults
Published:
Here is a quick how-to for today.
Dave, Stop! I can feel my mind slipping.
Do you feel stupid when you flub your password? Do you wish your computer would give you the negative feedback you deserve? I have the solution for you!
- Get a root shell.
sudo -iorsu -usually work. visudoEither uncomment or add this line.
Defaults insults
:wq(or^O^Xif you use nano).
Congratulations! You have just configured sudo to give you the
praise you deserve when you enter the wrong password.
To test it out, open a second unprivileged shell:
kyle@perkins ~ $ sudo whoami Password: Do you think like you type? Password: This mission is too important for me to allow you to jeopardize it. Password: sudo: 3 incorrect password attempts
Gentoo/Funtoo users
On Gentoo and Funtoo, you must enable the offensive USE flag of
the app-admin/sudo catpkg.
In package.use:
app-admin/sudo offensive