Difficulties and Miscellaneous Diseases (8)--Solution for Forgotten Redhat7 Login Password

  1. In the sixth article, the blogger has introduced the solution to the forgotten login password of Redhat6. In this article, I will introduce the solution to the forgotten login password of Redhat7. The solutions to the forgotten login password of Redhat6 and Redhat7 are completely different and need to be distinguished.


  1. solution.
    ① Restart the system and press the e key to enter the editing mode;
    1
    ② Add "rd.break" at the end of the Linux16 parameter, and press the "Ctrl+x" combination key;
    2
    ③ Enter the following command in the command line (with the command at the end), and enter the new Password, reboot;
    3
    ④ Restart, enter the new password to log in;
    4
    5
    6
    ⑤ Log in successfully;
    7


  1. The above is the solution to the forgotten Redhat7 login password . Refer to "Linux should be learned like this", how to install the Redhat6 system password forgotten by your friends, please refer to: Redhat6 login password forgotten solution .
    Appendix code:
mount -o remount,rw /sysroot
chroot /sysroot
passwd
touch / .autorelabel
exit
reboot

Guess you like

Origin blog.csdn.net/qq_39032096/article/details/113483641