CentOS Forget root and common user password solutions

Source: Internet
Author: User
Tags centos

Description of the operating system: CentOS 6.0 encountered a problem: Forget the Administrator account root password, can not enter the system solution: Reset the root password is 123456 operation: Boot system, in the system before entering the ESC key on the keyboard, will enter the following interface

Press the E key on the keyboard and the following interface appears


Using the arrow keys on the keyboard to move the cursor to the second item, and then press E on the keyboard, the following interface appears


Enter a space bar, and then after entering the number 1, return, the following interface appears


This time the cursor is positioned in the second item, continue to press the B key above the keyboard, the system will automatically restart, into the following interface

Now reset the root password

Enter passwd root, carriage return


Require a new password, enter 123,456 back to the car

Again enter 123,456 back to the car

See Passwd:all Authentication tokens updated successfully. One line

Description Password Modification succeeded


Now reboot the system and enter Shutdown-r to return

After the system automatically restarts, enter root return, then enter password 123456, the system login successfully.



Common user Forget password

1. Use the root user login system to locate the/etc/shadow file.

2. Locate the line at the beginning of the username, for example, my user name is PDS, the colon is the delimiter, the red part is the cipher encryption part

Pds:$1$civoprgf$ajwq54w1xjbiffjm05jk/1:15353:0:99999:7:::

3.pds is my username, with the terminal to execute passwd PDS command, enter a new user password can be.


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.