Monday, August 30, 2021

Boot OL8 in single user mode to reset root password.

2:46 PM Posted by Dilli Raj Maharjan No comments

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.



0 comments:

Post a Comment