Skrevet av Emne: Linux: Booting with 'single' argument requires password  (Lest 4488 ganger)

ATC

  • Gjest
Linux: Booting with 'single' argument requires password
« på: 03. ſeptember 2009, 15:28 pm »
  • [applaud]0
  • [smite]0
  • When trying to recover a lost password, I tried adding the kernel argument 'single' to boot into single user mode. Unfortunately, the init script asks for the root password so I can't reset the password.



    ATC

    • Gjest
    [Solved] Linux: Booting with 'single' argument requires password
    « Svar #1 på: 03. ſeptember 2009, 15:28 pm »
  • [applaud]0
  • [smite]0
  • Instead of 'single', use the kernel argument 'init=/bin/sh' to prevent the braindead init script from running. Instead, you get a nice little shell prompt.

    Notice that only your root partition will be mounted, and it will be read-only. You can make it read-write using this command: "mount -o rw,remount /".