Centos6.4 forget password change root password on a single machine

Source: Internet
Author: User
It is a headache to forget the root password of Centos, but if you are already in the system, it will be easy to solve, enter the command # passwdroot to change the new root password! However, if you cannot access the system, you need to change the root password in single-user mode! My testing system is Centos6.4x86 _ 64. the following shows some of my successful testing processes: 1. First, start Centos

It is a headache to forget the root password of Centos, but if you are already in the system, it will be easy to solve, enter the command # passwd root to change the new root password! However, if you cannot access the system, you need to change the root password in single-user mode!

My testing system is Centos6.4x86 _ 64

The following describes some of my successful testing processes:

1. press Esc on the Centos screen when you start the instance, and then enter the following interface:

2. press the "e" key on the keyboard to display the following interface:

 

3. move the cursor to the second item with the arrow key on the keyboard, and then press the "e" key. the following interface is displayed:

 

Enter a space key, enter the number 1, and press Enter. or enter the space key, enter single, and press enter. The following interface is displayed:

4. Yes. You did not see the error. it is indeed the interface. press the "B" key on the keyboard to restart the system and then enter the single-user mode, after entering the system, enter # passwd root, and you can change the root password again. then, restart the system and you will be OK:

Good luck !!!

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.