Reset root password on Linux with GRUB boot loader

article #834, updated 824 days ago

If you need to reset the root password on a Linux box running the GRUB boot loader:

  1. During boot, hit Tab, and GRUB should permit you to see the boot option lines.
  2. Edit one of them. Replace ro quiet splash with rw init=/bin/bash.
  3. Boot without saving the line permanently. The system will send you directly into single-user mode as root, from where you can run ‘passwd’ to change it.

Categories:   Linux OS-level Issues