Comando sudo com comentários malcriados

Publicado por Perfil removido em 28/06/2016

[ Hits: 3.825 ]

 


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

Gnash - flash player open source

Instalando o aMule no SuSE 10.1

Driver Modem Lucent no K/Ubuntu 7/8

Descobrindo daemons (servidores) rodando em background

Vídeo aula: Mudando o tema do Superkaramba

Leitura recomendada

Famelix - outra distribuição nacional

dstat - Obtendo estatísticas do seu sistema

Debian Install Script

Decoração GTK no KDE4

Whiskermenu-plugin no Xubuntu 12.04 ou superior

  

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