Aug 25, 2018

[HDGEM] Access Single User Mode (Reset Root Password) on CentOS 7

1. Click [View Console] to access the console and click the send CTRL+ALT+DEL button on the top right. Alternatively, you can also click [RESTART] to restart the server.
2. As soon as the boot process starts, press ESC to bring up the GRUB boot prompt. You may need to turn the system off from the control panel and then back on to reach the GRUB boot prompt.
3. You will see a GRUB boot prompt - press "e" to edit the first boot option. (If you do not see the GRUB prompt, you may need to press any key to bring it up before the machine boots)
4. Find the kernel line (starts with "linux16"), change ro to rw init=/sysroot/bin/sh.
5. Press CTRL-X or F10 to boot single user mode.
6. Access the system with the command: chroot /sysroot.
7. Run passwd to change the root password.
8. Reboot the system: reboot -f.


--
Posted By Blogger to HDGEM at 11/15/2016 12:42:00 PM