Forgot your root password?

Today I forgot the root password. I mean I forgot it weeks ago, but I haven’t needed it.

Steps to recover (mostly note for self):

  1. When booting from LILO, choose usual Linux and pass it this argument: “init=/bin/bash”
  2. You are auto-logged on as root, remount read-write the root folder with “mount -o rw, remount /”
  3. Change your password as usual, with “passwd”
  4. Try to memorize the darn password, reboot, breath

Leave a Reply