RHEL Recover root Password
Jump to navigation
Jump to search
RHEL7
- Reboot OS
- During the GRUB2 countdown, Edit the first line by pressing "e".
- Locate the line that reads "linux16".
- Immediately following the "quiet" keyword append "rd.break"
- Locate the line that reads "linux16".
- Continue the boot process.
- Press Ctrl-x to boot.
- The system will boot and the switch_root prompt will appear.
- Remount the /sysroot filesystem as rw.
- # mount -o remount,rw /sysroot