Recuperar contraseña de root

De gacq wiki
Revisión del 19:42 3 dic 2009 de Gacq (discusión | contribuciones) (Página nueva: # When the Grub menu comes up, press “e” to edit the menu selections. # Select the kernel you would usually boot and press “e” to edit the settings. # Add single init=/bin/bas...)
(dif) ← Revisión anterior | Revisión actual (dif) | Revisión siguiente → (dif)
Saltar a: navegación, buscar
  1. When the Grub menu comes up, press “e” to edit the menu selections.
  2. Select the kernel you would usually boot and press “e” to edit the settings.
  3. Add single init=/bin/bash” to the end of the existing line. This will set the system to boot in to single user mode and immediately load a bash shell.
  4. Finally, press “b” to boot.

The system will boot up into single-user mode with the root file system mounted read-only. To set a new password you will first need to re-mount it read/write:

mount -o remount,rw /

Now you can proceed to set a new root password:

passwd