Reset root passwd

  • reboot
  • Grub -[e]dit
    find the line “vmlinuz”, insert at the end: rd.break enforcing=0
  • Ctrl-X (boot this kernel)
    now you’re root at the prompt.
  • mount -o remount,rw   /sysroot
    rootfs is default mounted as “readonly” by kernel.
  • chroot   /sysroot
  • passwd root
    also in /etc/shadow.
  • exit
  • exit

certdepot