{"id":1608,"date":"2016-05-29T20:59:00","date_gmt":"2016-05-30T01:59:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/cambiar-contrasena-usuario-olvidado-en-algunas-distros-gnu-linux\/"},"modified":"2016-05-29T20:59:00","modified_gmt":"2016-05-30T01:59:00","slug":"cambiar-contrasena-usuario-olvidado-en-algunas-distros-gnu-linux","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/cambiar-contrasena-usuario-olvidado-en-algunas-distros-gnu-linux\/","title":{"rendered":"Cambiar contrase\u00f1a usuario olvidado en algunas distros GNU\/Linux"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left: auto; margin-right: auto; text-align: center;\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-MffQboVeXWY\/V0t_9YUGkZI\/AAAAAAAACOE\/VspL9CjCxEwV0IA7QEmrl5l4viMqdtM6ACLcB\/s1600\/descarga.jpg\" style=\"margin-left: auto; margin-right: auto;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"400\" src=\"https:\/\/1.bp.blogspot.com\/-MffQboVeXWY\/V0t_9YUGkZI\/AAAAAAAACOE\/VspL9CjCxEwV0IA7QEmrl5l4viMqdtM6ACLcB\/s640\/descarga.jpg\" width=\"640\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">Imagen obtenida de : <a href=\"https:\/\/images.duckduckgo.com\/iu\/?u=http%3A%2F%2Fwww.ostechnix.com%2Fwp-content%2Fuploads%2F2016%2F02%2Fpassword.jpg&amp;f=1\" target=\"_blank\">url<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Que se te olvide la contrase\u00f1a de tu usuario en linux, quiz\u00e1s no sea una de las peores cosas que te pueden pasar, ya que podr\u00edas haber perdido el grub, que una partici\u00f3n se borre de fstab, que el disco duro se haya da\u00f1ado, que le escritorio puf se pierda, &nbsp;entre muchas otras cosas.<\/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;\">En fin, pero si s\u00f3lo olvidaste la contrase\u00f1a, tranquilo, hay maneras de acceder como root, y cambiarla de manera r\u00e1pida, incluso no es necesario un live-cd:<\/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;\">El siguiente paso, me ha funcionado para Ubuntu en versiones de 15.04 y anteriores, Fedora 20, 21, 22, 23, 24 (Beta) y Manjaro 2016 adem\u00e1s de Centos y LinuxMint, desconozco si funcione para otras distros.<\/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;\">Primero es necesario iniciar en boot, seleccionar la primera opci\u00f3n del boot y luego presionar la letra e:<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-upLgDZ5gSwI\/V0udh5qekiI\/AAAAAAAACOU\/mN1aq2dDmwMSykar3n7dO2sj4f_7RoR5gCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-29%2B20-49-11.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"354\" src=\"https:\/\/2.bp.blogspot.com\/-upLgDZ5gSwI\/V0udh5qekiI\/AAAAAAAACOU\/mN1aq2dDmwMSykar3n7dO2sj4f_7RoR5gCLcB\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-29%2B20-49-11.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Ahora agregar&nbsp;<\/span><span style=\"background-color: #eff0f1; color: #242729; font-family: &quot;consolas&quot; , &quot;menlo&quot; , &quot;monaco&quot; , &quot;lucida console&quot; , &quot;liberation mono&quot; , &quot;dejavu sans mono&quot; , &quot;bitstream vera sans mono&quot; , &quot;courier new&quot; , monospace , sans-serif; line-height: 16.9px; text-align: left; white-space: pre-wrap;\"><span style=\"font-size: x-large;\">init=\/bin\/bash<\/span><\/span><span style=\"font-size: large;\">&nbsp;al final de la l\u00ednea del boot que comienze con cualquiera de las siguiente opciones:<\/span><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<ol>\n<li><span style=\"font-size: large;\">linux<\/span><\/li>\n<li><span style=\"font-size: large;\">linux16<\/span><\/li>\n<li><span style=\"font-size: large;\">linuxefi<\/span><\/li>\n<\/ol>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-09sHbp0IS4c\/V0udiPk4h8I\/AAAAAAAACOY\/z8JWviH8cYkKl_5_nhF4p97Ax0on9u7hACLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-29%2B20-49-19.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"348\" src=\"https:\/\/2.bp.blogspot.com\/-09sHbp0IS4c\/V0udiPk4h8I\/AAAAAAAACOY\/z8JWviH8cYkKl_5_nhF4p97Ax0on9u7hACLcB\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-29%2B20-49-19.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-5N4TpiHgAgc\/V0udiUU0EpI\/AAAAAAAACOc\/wLMY1MjTlQoAGyTNeVxmb5YbXa-g__hvQCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-29%2B20-49-37.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"352\" src=\"https:\/\/4.bp.blogspot.com\/-5N4TpiHgAgc\/V0udiUU0EpI\/AAAAAAAACOc\/wLMY1MjTlQoAGyTNeVxmb5YbXa-g__hvQCLcB\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-29%2B20-49-37.png\" width=\"640\" \/><\/a><\/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;\">Una vez hecho eso, presionar <\/span><span style=\"color: #242729; font-family: &quot;consolas&quot; , &quot;menlo&quot; , &quot;monaco&quot; , &quot;lucida console&quot; , &quot;liberation mono&quot; , &quot;dejavu sans mono&quot; , &quot;bitstream vera sans mono&quot; , &quot;courier new&quot; , monospace , sans-serif; font-size: x-large;\"><span style=\"background-color: #eff0f1; line-height: 16.9px; white-space: pre-wrap;\">Ctrl+x<\/span><\/span><span style=\"font-size: large;\">&nbsp; para reiniciar el boot, autom\u00e1ticamente iniciar\u00e1 y les mostrar\u00e1 solamente la consola, en modo root.<\/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;\">Montar la partici\u00f3n de <\/span><span style=\"font-size: x-large;\">\/<\/span><span style=\"font-size: large;\">, es necesario:<\/span><\/div>\n<pre style=\"background: none 0% 0% no-repeat scroll rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; word-break: break-all; word-wrap: break-word;\"><span style=\"color: yellow; font-family: &quot;droid sans mono&quot; , &quot;consolas&quot; , monospace; font-size: large;\"><span style=\"line-height: 20px; white-space: pre-wrap;\">mount -o remount,rw \/<\/span><\/span><\/pre>\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;\">Estando ah\u00ed nos podr\u00edan servir los siguientes comandos:<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Listar los usuarios del sistema:<\/span><\/div>\n<pre style=\"background: none 0% 0% no-repeat scroll rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent; line-height: 20px; white-space: pre-wrap;\"><span style=\"color: white; font-family: &quot;droid sans mono&quot; , &quot;consolas&quot; , monospace; font-size: large;\">less \/etc\/passwd<\/span><\/span><\/pre>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Obtendr\u00e1n algo parecido:<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/--DWla2oyWGE\/V0udi1a6c0I\/AAAAAAAACOk\/XO3jtlFJbyEbuztVXzfleQA51FtOVFq3QCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-29%2B20-52-27.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"356\" src=\"https:\/\/1.bp.blogspot.com\/--DWla2oyWGE\/V0udi1a6c0I\/AAAAAAAACOk\/XO3jtlFJbyEbuztVXzfleQA51FtOVFq3QCLcB\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-29%2B20-52-27.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Cambiar la contrase\u00f1a del usuario root:<\/span><\/div>\n<pre style=\"background: none 0% 0% no-repeat scroll rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent; line-height: 20px; white-space: pre-wrap;\"><span style=\"color: white; font-family: &quot;droid sans mono&quot; , &quot;consolas&quot; , monospace; font-size: large;\">passwd root<\/span><\/span><\/pre>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-OC6pBRebvsQ\/V0udiskLXhI\/AAAAAAAACOg\/3-hLFTpZaroShy27JHC50BhqFOrjqyoLwCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-29%2B20-51-22.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"89\" src=\"https:\/\/4.bp.blogspot.com\/-OC6pBRebvsQ\/V0udiskLXhI\/AAAAAAAACOg\/3-hLFTpZaroShy27JHC50BhqFOrjqyoLwCLcB\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-29%2B20-51-22.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">A continuaci\u00f3n les pedir\u00e1 las contrase\u00f1as.<\/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;\">Cambiar la contrase\u00f1a de un usuario espec\u00edfico:<\/span><\/div>\n<pre style=\"background: none 0% 0% no-repeat scroll rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent; line-height: 20px; white-space: pre-wrap;\"><span style=\"color: white; font-family: &quot;droid sans mono&quot; , &quot;consolas&quot; , monospace; font-size: large;\">passwd usuario<\/span><\/span><\/pre>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Y les pedir\u00e1 la contrase\u00f1a para el usuario, a continuaci\u00f3n, s\u00f3lo presionar enter.<\/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;\">Para asegurarse de que selinux aplique los nuevos cambios ejecutar el siguiente comando, es opcional, ya que este proceso suele tardar un poco, en caso de que no haya aplicado cambios, reiniciar el equipo y de nuevo ejecutar todos los pasos, pero ahora s\u00ed aplicar este comando<\/span><\/div>\n<pre style=\"background: none 0% 0% no-repeat scroll rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white; font-family: &quot;droid sans mono&quot; , &quot;consolas&quot; , monospace; font-size: large;\"><span style=\"line-height: 20px; white-space: pre-wrap;\">touch \/.autorelabel<\/span><\/span><\/pre>\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;\">Finalmente reiniciamos el equipo y listo:<\/span><\/div>\n<pre style=\"background: none 0% 0% no-repeat scroll rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white; font-family: &quot;droid sans mono&quot; , &quot;consolas&quot; , monospace; font-size: large;\"><span style=\"line-height: 20px; white-space: pre-wrap;\">\/sbin\/reboot -f<\/span><\/span><\/pre>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: right;\"><span style=\"font-size: x-small;\">Fuentes:<\/span><\/div>\n<div style=\"text-align: right;\"><a href=\"http:\/\/www.cyberciti.biz\/faq\/linux-list-users-command\/\"><span style=\"font-size: x-small;\">http:\/\/www.cyberciti.biz\/faq\/linux-list-users-command\/<\/span><\/a><\/div>\n<div style=\"text-align: right;\"><a href=\"https:\/\/fedoraproject.org\/wiki\/How_to_reset_a_root_password\"><span style=\"font-size: x-small;\">https:\/\/fedoraproject.org\/wiki\/How_to_reset_a_root_password<\/span><\/a><\/div>\n<div style=\"text-align: right;\"><a href=\"https:\/\/fedoraproject.org\/wiki\/How_to_reset_a_root_password#using-installation-cd-dvd\"><span style=\"font-size: x-small;\">https:\/\/fedoraproject.org\/wiki\/How_to_reset_a_root_password#using-installation-cd-dvd<\/span><\/a><\/div>\n<div style=\"text-align: right;\"><a href=\"https:\/\/ask.fedoraproject.org\/en\/question\/40141\/how-to-change-the-root-password\/\"><span style=\"font-size: x-small;\">https:\/\/ask.fedoraproject.org\/en\/question\/40141\/how-to-change-the-root-password\/<\/span><\/a><\/div>\n<div style=\"text-align: right;\"><a href=\"http:\/\/unix.stackexchange.com\/questions\/85558\/how-to-reset-forgotten-root-password-in-fedora-19-from-grub\"><span style=\"font-size: x-small;\">http:\/\/unix.stackexchange.com\/questions\/85558\/how-to-reset-forgotten-root-password-in-fedora-19-from-grub<\/span><\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Imagen obtenida de : url Que se te olvide la contrase\u00f1a de tu usuario en linux, quiz\u00e1s no sea una de las peores cosas que te pueden pasar, ya que podr\u00edas haber perdido el grub, que una partici\u00f3n se borre de fstab, que el disco duro se haya da\u00f1ado, que le escritorio puf se pierda, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,4,377,407,628,629,627],"tags":[],"class_list":["post-1608","post","type-post","status-publish","format-standard","hentry","category-fedora","category-linux","category-manjaro","category-reset","category-reset-password-linux","category-reset-password-root-fedora","category-tumbar-contrasena-fedora"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1608","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=1608"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1608\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}