neues Rootpasswort

1. Möglichkeit

  • System von einer Linux-Live-CD booten
  • mkdir /mnt/linux
  • mount /dev/sda1 /mnt/linux
  • chroot /mnt/linux/ /bin/bash
  • passwd
  • exit
  • reboot 

2. Möglichkeit

  • System von einer Linux-Boot-CD starten
  • Root-Partition mounten
  • /etc/passwd auf der Zielfestplatte mit vim öffnen
  • Zeile root:x:0:0:root:/root:/bin/bash ersetzen durch root::0:0:root:/root:/bin/bash
  • Rechner neu starten
  • Root ohne Passwort einloggen
  • neues Passwort mit passwd setzen

3. Möglichkeit

  • In grub als Bootoption init=/bin/bash eingeben
  • mount -no remount,rw /
  • passwd root
  • sync
  • mount -no remount,ro /
  • reboot