Booting OL8 in single user mode to reset root password.
Press e to edit the boot menu.
Once boot options is displayed, add rd.break at the end of the linux.. . Below is the screenshot of the rd.break at the end. Once rd.break is added Press CTRL + x to boot system in single user mode.
Once booted into single user mode, it looks something like below.
Remount /sysroot with rw and chroot to /sysroot.
Now change password with passwd command.
Once password is changed. Type exit get out of chroot. Type reboot to restart normal.
No comments:
Post a Comment