{"id":392,"date":"2010-04-19T12:45:08","date_gmt":"2010-04-19T17:45:08","guid":{"rendered":"http:\/\/angelsalvadorweb.com\/blogs\/?p=392"},"modified":"2010-04-19T12:45:08","modified_gmt":"2010-04-19T17:45:08","slug":"terminal-de-linux-cuando-no-colocamos-el-password","status":"publish","type":"post","link":"https:\/\/angelsalvadorweb.com\/mx\/?p=392","title":{"rendered":"TERMINAL DE LINUX.(Cuando no colocamos el password)"},"content":{"rendered":"<h3 style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-393\" title=\"terminal-en-gnomeubuntu0\" src=\"http:\/\/angelsalvadorweb.com\/blogs2\/wp-content\/uploads\/2010\/04\/terminal-en-gnomeubuntu0-300x225.png\" alt=\"terminal-en-gnomeubuntu0\" width=\"300\" height=\"225\" \/><\/h3>\n<h3 style=\"text-align: justify;\"><span style=\"color: #0000ff;\">A todos nos cabrea cuando estando en la <span id=\"IL_AD1\">consola<\/span> insertamos el password de root malamente.  Ahora vamos a aprender a darle un toque humoristico a\u00f1adiendole una  opci\u00f3n para que te \u201cvacile\u201d cada vez que la clave sea incorrecta. Es una  curiosidad bastante antigua pero que poca gente conoce (yo mismo hasta  hace unos d\u00edas xD).<\/span><\/h3>\n<h3 style=\"text-align: justify;\"><span style=\"color: #0000ff;\">Para ello debemos de\u00a0 modificar como usuario root el archivo <strong><em>\/etc\/sudoers<\/em><\/strong> y a\u00f1adir el par\u00e1metro \u201cinsults\u201d a la siguiente l\u00ednea:<\/span><\/h3>\n<blockquote><p><em><strong>defaults \u00a0 \u00a0 !lecture,tty_tickets,!fqdn<\/strong><\/em><\/p><\/blockquote>\n<h3><span style=\"color: #0000ff;\">de modo que quedar\u00eda de este modo:<\/span><\/h3>\n<blockquote><p><em><strong>defaults \u00a0 \u00a0  !lecture,tty_tickets,!fqdn,insults<\/strong><\/em><\/p><\/blockquote>\n<h3><span style=\"color: #0000ff;\">Guardamos los cambios hechos y cerramos la sesi\u00f3n de root con el  siguiente comando:<\/span><\/h3>\n<blockquote><p><em><strong> sudo -k<\/strong><\/em><\/p><\/blockquote>\n<h3 style=\"text-align: justify;\"><span style=\"color: #0000ff;\">Ahora, cada vez que introduzcamos mal la clave de superusuario, nos  aparecer\u00e1n mensajes en la consola de este tipo:<\/span><\/h3>\n<blockquote><p><span style=\"color: #008000;\">\u201c<em>[sudo] password for ekhtor:<br \/>\nSorry about this, I know it\u2019s a bit silly.<br \/>\n[sudo] password for ekhtor:<br \/>\nAre you on drugs?<br \/>\n[sudo] password for ekhtor:<br \/>\nMaybe if you used more than just two fingers\u2026<\/em>\u201d<\/span><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>A todos nos cabrea cuando estando en la consola insertamos el password de root malamente. Ahora vamos a aprender a darle un toque humoristico a\u00f1adiendole una opci\u00f3n para que te \u201cvacile\u201d cada vez que la clave sea incorrecta. Es una&#8230;..<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[303],"class_list":["post-392","post","type-post","status-publish","format-standard","hentry","category-linux","tag-terminal-de-linux"],"_links":{"self":[{"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=\/wp\/v2\/posts\/392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=392"}],"version-history":[{"count":0,"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions"}],"wp:attachment":[{"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}