Digital Marketing

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

1. Reboot 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.

Comments

Popular posts from this blog

Make online money from the Internet