2015-04-13 20:20:11 +01:00
|
|
|
---
|
|
|
|
created: 2008-09-01 09:50:13 +0200
|
2022-01-23 17:14:59 +00:00
|
|
|
layout: redirect
|
|
|
|
layout_old: default
|
|
|
|
redirect_to: https://blog.mbirth.de/archives/2008/09/01/sudo-insults-on-wrong-password.html
|
2015-04-13 20:20:11 +01:00
|
|
|
tags:
|
2022-01-23 17:14:59 +00:00
|
|
|
- know-how
|
|
|
|
- software
|
|
|
|
- linux
|
|
|
|
- fun
|
|
|
|
title: sudo insults on wrong password
|
|
|
|
toc: false
|
|
|
|
updated: 2008-09-01 09:50:13 +0200
|
2015-04-13 20:20:11 +01:00
|
|
|
---
|
2022-01-23 17:14:59 +00:00
|
|
|
|
2015-04-13 20:20:11 +01:00
|
|
|
Edit the file `/etc/sudoers` and find the line:
|
|
|
|
|
|
|
|
Defaults env_reset
|
|
|
|
|
|
|
|
Now add `,insults` to the end of the line so that it reads like that:
|
|
|
|
|
|
|
|
Defaults env_reset,insults
|
|
|
|
|
|
|
|
|
|
|
|
From now on, *sudo* will insult anyone who mistypes his password. See for yourself:
|
|
|
|
|
|
|
|
> [sudo] password for foo:
|
|
|
|
> *Hold it up to the light --- not a brain in sight!*
|
|
|
|
> [sudo] password for foo:
|
|
|
|
> *Speak English you fool --- there are no subtitles in this scene.*
|
|
|
|
> [sudo] password for foo:
|
|
|
|
> *I think … err … I think … I think I'll go home*
|
2022-01-23 17:14:59 +00:00
|
|
|
> sudo: 3 incorrect password attempts
|