{"id":1505,"date":"2016-12-28T12:51:00","date_gmt":"2016-12-28T18:51:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/mostrar-asteriscos-al-escribir-contrasena-en-la-terminal\/"},"modified":"2016-12-28T12:51:00","modified_gmt":"2016-12-28T18:51:00","slug":"mostrar-asteriscos-al-escribir-contrasena-en-la-terminal","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/mostrar-asteriscos-al-escribir-contrasena-en-la-terminal\/","title":{"rendered":"Mostrar asteriscos al escribir contrase\u00f1a en la Terminal"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-yVVRiisMtNw\/WGP5FD2l6PI\/AAAAAAAAEOM\/MSxoqq4g2VootcYstrZ9SZs9jhozlTiWACLcB\/s1600\/Peek%2B2016-12-28%2B11-39.gif\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/2.bp.blogspot.com\/-yVVRiisMtNw\/WGP5FD2l6PI\/AAAAAAAAEOM\/MSxoqq4g2VootcYstrZ9SZs9jhozlTiWACLcB\/s1600\/Peek%2B2016-12-28%2B11-39.gif\" \/><\/a><\/div>\n<p><\/p>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Los que usamos la terminal en cualquier distro linux, nos habremos dado cuenta, que al escribir la contrase\u00f1a, el cursor sigue en la misma posici\u00f3n, es decir, no muestra nada mientras la tecleamos.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Esto, es irrelevante, es m\u00e1s, es incluso mejor si no la muestra, as\u00ed si alguien ve lo que estamos tecleando, no sabr\u00eda de cu\u00e1ntos caracteres est\u00e1 formado la contrase\u00f1a, pero si queremos que muestre un * mientras tecleamos la contrase\u00f1a, entonces hacer la siguiente modificaci\u00f3n.<\/span><\/div>\n<p><span style=\"font-size: large;\"><br \/><\/span><span style=\"font-size: large;\">Abrir la terminal y ejecutar el siguiente comando:<\/span><br \/><span style=\"color: #783f04;\">Reemplazar nano por el editor de texto de su preferencia.<\/span><\/p>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: &quot;Carrois Gothic&quot;, sans-serif; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\">\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo nano \/etc\/sudoers<\/pre>\n<div style=\"font-size: 12.8px;\"><\/div>\n<\/div>\n<p><span style=\"font-size: large;\">Una vez que se abra el archivo, ir a al l\u00ednea que comienza por:<\/span><\/p>\n<pre style=\"background: url(&quot;assets\/shadow.png&quot;) 50% 100% repeat-x rgb(245, 245, 245); border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-shadow: rgb(204, 204, 204) 0px 0px 3px; box-sizing: border-box; color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 1.5rem; font-stretch: normal; font-style: inherit; font-weight: inherit; line-height: 1.6; margin-bottom: 10px; max-width: 100%; outline: 0px; overflow: auto; padding: 9.5px; tab-size: 4; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline; word-break: break-all; word-wrap: break-word;\"><span style=\"border: 0px; color: #333333; font-family: &quot;menlo&quot; , &quot;monaco&quot; , &quot;consolas&quot; , &quot;courier new&quot; , monospace; font-size: 15px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 18.5714px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: pre-wrap;\">Defaults    env_reset<\/span><\/span><\/pre>\n<p><span style=\"font-size: large;\"><br \/><\/span><span style=\"font-size: large;\">Y al final agregarle, lo siguiente:<\/span><\/p>\n<pre style=\"background: url(&quot;assets\/shadow.png&quot;) 50% 100% repeat-x rgb(245, 245, 245); border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-shadow: rgb(204, 204, 204) 0px 0px 3px; box-sizing: border-box; font-stretch: normal; line-height: 1.6; margin-bottom: 10px; max-width: 100%; outline: 0px; overflow: auto; padding: 9.5px; tab-size: 4; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline; word-break: break-all; word-wrap: break-word;\"><span style=\"border: 0px; font-family: &quot;menlo&quot; , &quot;monaco&quot; , &quot;consolas&quot; , &quot;courier new&quot; , monospace; font-size: 15px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 18.5714px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"color: #333333;\">Defaults    env_reset<\/span><span style=\"color: red;\">,<\/span><\/span><\/span><span style=\"color: red; font-family: &quot;menlo&quot; , &quot;monaco&quot; , &quot;consolas&quot; , &quot;courier new&quot; , monospace;\"><span style=\"font-size: 15px; white-space: pre-wrap;\">pwfeedback<\/span><\/span><\/pre>\n<div>\n<div><span style=\"border: 0px; color: #333333; font-family: &quot;menlo&quot; , &quot;monaco&quot; , &quot;consolas&quot; , &quot;courier new&quot; , monospace; font-size: 15px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 18.5714px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: pre-wrap;\"><br \/><\/span><\/span><\/div>\n<p><span style=\"font-size: large;\">Guardar el archivo con Ctrl+X y presionar Y.<\/span><br \/><span style=\"font-size: large;\"><br \/><\/span><span style=\"font-size: large;\">Ahora, al teclear la contrase\u00f1a, mostrar\u00e1 lo siguiente:<\/span><br \/><span style=\"font-size: large;\"><br \/><\/span><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-pcc2p-0OTk4\/WGP7WtH5xRI\/AAAAAAAAEOY\/9z17VB7hY1I-lGOTETQ-vx8Pty1zWWjvACLcB\/s1600\/Peek%2B2016-12-28%2B11-49.gif\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/1.bp.blogspot.com\/-pcc2p-0OTk4\/WGP7WtH5xRI\/AAAAAAAAEOY\/9z17VB7hY1I-lGOTETQ-vx8Pty1zWWjvACLcB\/s1600\/Peek%2B2016-12-28%2B11-49.gif\" \/><\/a><\/div>\n<p><span style=\"font-size: large;\"><br \/><\/span><\/p>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Vuelvo a mencionar, esto es por simple est\u00e9tica, personalizaci\u00f3n o curiosidad por probarlo. No es que se importante u obligatorio, es opcional.<\/span><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Los que usamos la terminal en cualquier distro linux, nos habremos dado cuenta, que al escribir la contrase\u00f1a, el cursor sigue en la misma posici\u00f3n, es decir, no muestra nada mientras la tecleamos. Esto, es irrelevante, es m\u00e1s, es incluso mejor si no la muestra, as\u00ed si alguien ve lo que estamos tecleando, no sabr\u00eda [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[255,4,256,254,253,220],"tags":[],"class_list":["post-1505","post","type-post","status-publish","format-standard","hentry","category-asteriscos","category-linux","category-mostrar-asteriscos-al-escribir-la-contrasena-en-la-terminal","category-pwfeedback","category-sudoers","category-terminal"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1505"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1505\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}