How can I forget the centos root login password?

Source: Internet
Author: User

Centos system login root forgot password solution:

(1) Start the systemBefore entering the Linux SystemButtonsESCEnter the following page: (Note: centos is installed onVirtual MachineIn this exampleClick inPress ESC or you will still enter the Linux system ).


(2) SelectPress the e key, The following interface is displayed:


(3) Select the second item,Press the e key again., The following interface is displayed:


(4) On this basis,Enter a space and a number 1:


(5) Press enter to display the following interface:


(6) position the cursor in the second item. Press the keyboard key B and the system needs to start automatically. Wait until the following page appears:


(7) Now you can reset the root password: 123456 and enter the command:Passwd RootEnter


(8)Enter 123456As the initial password:


(9) Prompt password simple ignore: Enter 123456 again to displaySuccessfulInterface:


(10) Update successful. Test (restart): shutdown-R now


Enter the root login password you just set to enter the centos system.

At this point, the root password has been reset.


How can I forget the centos root login password?

Related Article

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.