Comando sudo com comentários malcriados

Publicado por Perfil removido em 28/06/2016

[ Hits: 3.995 ]

 


Comando sudo com comentários malcriados



A dica é sobre uma particularidade do comando sudo. Quase um Easter Egg.

A configuração do arquivo /etc/sudoers possui um parâmetro inutilitário, no qual ao se errar a senha o comando retorna comentários debochativos em inglês ao usuário.

Acrescente a linha abaixo dentro do /etc/sudoers e experimente as frases que aparecem na tela ao se errar a senha:

Defaults        insults

Para exemplificar, quando errei a senha do sudo da última vez, veio-me a mensagem:

Where did you learn to type?

Lembrando que por ser software livre podem ser criadas mais destas gracinhas. E por que não traduzi-las para português ao estilo motd?

Bem, é isto.

Outras dicas deste autor

Como cortar um vídeo no Kdenlive

Instalando Zoom no Linux Mint 22

Configurar o background no gnome-terminal

Reindex PostgreSQL - Script para acompanhamento de execução

Opendesktop Cloud: substitua serviços proprietários de nuvem

Leitura recomendada

Dica para quem usa servidor Novell e Linux (backup)

Abiword, a alternativa GTK ao OpenOffice

Menu Principal, Painel inferior, Opção de Desligamento e Botões de Janelas no Gnome3

Zabbix Server no CentOS 8

Frases de Blavatsky no Fortune

  

Comentários
[1] Comentário enviado por fabio em 28/06/2016 - 17:31h

Muito boa dica! kkkk

[2] Comentário enviado por nelson777 em 29/06/2016 - 13:11h

Só por diversão, a lista completa de insultos está no código fonte do comando sudo, nos links abaixo:

https://www.sudo.ws/repos/sudo/file/52949a024acb/plugins/sudoers/ins_goons.h
https://www.sudo.ws/repos/sudo/file/52949a024acb/plugins/sudoers/ins_2001.h
https://www.sudo.ws/repos/sudo/file/52949a024acb/plugins/sudoers/ins_classic.h
https://www.sudo.ws/repos/sudo/file/52949a024acb/plugins/sudoers/ins_csops.h

segue a lista completa:
/*
* Insults from the "Goon Show."
*/
"You silly, twisted boy you.",
"He has fallen in the water!",
"We'll all be murdered in our beds!",
"You can't come in. Our tiger has got flu",
"I don't wish to know that.",
"What, what, what, what, what, what, what, what, what, what?",
"You can't get the wood, you know.",
"You'll starve!",
"... and it used to be so popular...",
"Pauses for audience applause, not a sausage",
"Hold it up to the light --- not a brain in sight!",
"Have a gorilla...",
"There must be cure for it!",
"There's a lot of it about, you know.",
"You do that again and see what happens...",
"Ying Tong Iddle I Po",
"Harm can come to a young lad like that!",
"And with that remarks folks, the case of the Crown vs yourself was proven.",
"Speak English you fool --- there are no subtitles in this scene.",
"You gotta go owwwww!",
"I have been called worse.",
"It's only your word against mine.",
"I think ... err ... I think ... I think I'll go home",

/*
* HAL insults (paraphrased) from 2001.
*/
"Just what do you think you're doing Dave?",
"It can only be attributed to human error.",
"That's something I cannot allow to happen.",
"My mind is going. I can feel it.",
"Sorry about this, I know it's a bit silly.",
"Take a stress pill and think things over.",
"This mission is too important for me to allow you to jeopardize it.",
"I feel much better now.",

/*
* Insults from the original sudo(8).
*/
"Wrong! You cheating scum!",
"And you call yourself a Rocket Scientist!",
"No soap, honkie-lips.",
"Where did you learn to type?",
"Are you on drugs?",
"My pet ferret can type better than you!",
"You type like i drive.",
"Do you think like you type?",
"Your mind just hasn't been the same since the electro-shock, has it?",

/*
* CSOps insults (may be site dependent).
*/
"Maybe if you used more than just two fingers...",
"BOB says: You seem to have forgotten your passwd, enter another!",
"stty: unknown mode: doofus",
"I can't hear you -- I'm using the scrambler.",
"The more you drive -- the dumber you get.",
"Listen, broccoli brains, I don't have time to listen to this trash.",
"Listen, burrito brains, I don't have time to listen to this trash.",
"I've seen penguins that can type better than that.",
"Have you considered trying to match wits with a rutabaga?",
"You speak an infinite deal of nothing",



Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts