Difficulties and Miscellaneous Diseases (6)--The solution to the forgotten login password of the Linux (Red Hat 6) operating system

  1. Problem description: Account passwords are now used in many places, such as QQ, NetEase Cloud Classroom, WeChat, etc., and the password is forgotten by accident. When the Linux operating system in the virtual machine is not used for a long time, it is easy to forget the login password. The following takes Red Hat 6 as an example to give a solution when the login password is forgotten.


  1. Solution
    ① Start the system and press the e key when it reaches 1 second;
    Restart
    ② Press the e key;
    Press e
    ③ Select the middle option, press the e key;
    3
    ④ Press the space bar at the input place, enter s,
    4
    and press Enter; ⑤ Select the middle option, press the b key;
    5
    ⑥ Enter passwd root (when root is omitted, modify the current user password, use whoami to view the current user), enter the new password, enter reboot to restart the system;
    6
    ⑦ restart the system;
    Restart
    ⑧ enter root, confirm;
    root
    ⑨ enter the password, log in;
    enter password
    ⑩ log in successfully ;
    Sign in


  1. The above is the solution when the login password of the Linux operating system is forgotten. I hope I can help you all!

Guess you like

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