CentOS 6 Forgot password resolution, root and normal user can

Source: Internet
Author: User

Articles transferred from nui111: http://blog.csdn.net/nui111/article/details/28007357

Description Operating System: CentOS 6.0

A problem: Forget the Administrator account root password, can not enter the system

Workaround: Reset the root password to 123456

Operation: Start the system, press the ESC key above the keyboard before entering the system, will enter the following interface

Press the E key on the keyboard to display the following interface

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

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

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

Reset Root Password now

Input passwd root, enter

Required to enter a new password, enter 123,456 return

Re-enter 123,456 return car

See Passwd:all Authentication tokens updated successfully. Line

Description Password Modified successfully

Now reboot the system and enter Shutdown-r.

After the system restarts automatically, enter the root return and enter the password 123456, the system login is successful.

Normal user forgot Password

1. Log in to the system using the root user and locate the/etc/shadow file.

2. Locate the line that begins with the user name, for example, my user name is PDS, with a colon delimiter, and the red part is the password encryption section

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

3.pds is my user name, execute passwd PDS command with terminal, enter new user password.

CentOS 6 Forgot password resolution, root and normal user can

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.