How to retrieve the root password of centos 7.0

Source: Internet
Author: User

During this time, mobile websites and mobile clients (phoegap + html5) were developed, while the company's local server (centos7) has been managing since the system was installed. Today, I specially used an SSH tool to connect to the local server. I am prompted to enter the root password. Many times, I am prompted that the password is incorrect. No way. You can only use Baidu data to solve this problem.



Solution: (from the network)




When the screen is started, select the second item and press the e-Keys key. See the following figure.



 


2. Move the cursor key and find linux16. See the following figure.




3. Change ro to rw init = sysroot/bin/sh, as shown in the figure.




4. Press ctrl + X to enter the prompt.




5. Change the command to the root password. At last, the first startup will be slow, and the system will re-open it again. Then, the system can be used normally.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.