Fun with sudo

Wanna have some fun with sudo?

A couple of neat tricks:

1. Insults when you type wrong password:
echo "Defaults insults" >> /etc/sudoers
When your users type incorrect password they are insulted:
$ sudo su -
Password:
Are you on drugs?

2. Make custom password-prompt when your users sudo
Add line to /etc/sudoers: Defaults passprompt="YOU BREAK IT, YOU FIX IT!:"
When ppl log in and try to use sudo they get a modified passwordprompt:
user@server:~$ sudo su -
YOU BREAK IT, YOU FIX IT!:

Any more tricks? Use comments :>

Be Sociable, Share!

Tags: , ,

One Response to “Fun with sudo”

  1. Kaycie Says:

    Wonderful explanation of facts avalialbe here.

Leave a Reply