Quantcast
Channel: dingleberry.me » dingleberry.me – technical blog shit
Viewing all articles
Browse latest Browse all 14

Fun with sudo

$
0
0

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 :>


Viewing all articles
Browse latest Browse all 14

Trending Articles