How to reset root password on debian (linux) – Come resettare la password di root su linux debian

Solution:

  1. Reboot machine.
  2. On Grub screen press “e” to edit boot.
  3. On “Loading linux kernel” add in the end init=/bin/bash or init=/bin/sh (see the screenshot)

    reset linux debian root password
    reset linux debian root password
  4. mount -n -o remount,rw /
    if it didn’t work, you can try: mount -n -o remount-rw /
  5. passwd
    (insert new password twice)
  6. reboot

Best Regards,

ITquadro – specialized Blog

ITquadro consulenti informatici specializzati in ambienti windows e linux debian sia client che server. Ci trovate su Bologna ed Emilia-Romagna ma anche su Milano e Roma.