Centos6.5 6.6 (both can) reset password or brute force root password simple operation

Source: Internet
Author: User

CentOS forgot root password How do i reset the root password?


The root password is a key security mechanism when using Linux systems.


But assuming that the root password was lost that day, the problem is serious.


Below to share the way to reset the root password, the need for friends can refer to the following


1, restart the system, you can see the boot directory when the boot, with the upper and lower arrow keys to select the system you forgot the password, and then

Press "E" E '.


2, select the second-kernel, and then continue to press "E"


3, enter a single or 1 after RHGB quiet, and then enter


4, then return to the interface, and then press B to reboot the system


5, after the start, we found that directly into the system, no need to enter the account and password


6, after entering, we can change the password according to passwd root


Precautions:

1, the machine restarts the boot system, to prevent skipping the boot suggestions continue to press the letter "E".


2. Select the kernel item with "kernel".


3. When booting the edit item, please note the "b,e,c" letter in the English message below.


How do i hack the root password of CentOS?


After the power-on, in the countdown to read the second press any key, jump screen, then press the E key, enter the following interface:


650) this.width=650; "border=" 1 "alt=" How to hack the root password of CentOS "src=" http://image.mamicode.com/info/201506/ 20180921185541535418.jpg "width=" 670 "height=" 504 "/>

At this point, position the cursor to the second line, and then press the E key (meaning: edit this command in the boot order), for example, enter "space" at this time

+single "

650) this.width=650; "border=" 1 "src=" http://image.mamicode.com/info/201506/20180921185541979771.jpg "width=" 670 " height= "498"/>

When the input is complete, enter. Now return to the previous page, the cursor will be positioned in the second row kernel, and then press B (Start),


Wait a moment to launch to the following interface, enter Vi/etc/shadow (edit shadow)

650) this.width=650; "border=" 0 "src=" http://image.mamicode.com/info/201506/20180921185542672181.jpg "width=" 724 " height= "398" hspace= "0" vspace= "0" title= "" style= "width:724px;height:398px;float:right;"/>


The following screen appears:


650) this.width=650; "border=" 1 "src=" http://image.mamicode.com/info/201506/20180921185542983716.jpg "width=" 670 " height= "374" hspace= "0" vspace= "0" title= "" style= "width:670px;height:374px;"/>


Delete the parameters in the yellow box. Finally save the exit. Enter exit to restart the system and find the root password is gone.


This article is from the "I am a Little bird" blog, please make sure to keep this source http://liyanchao.blog.51cto.com/9954601/1659889

Centos6.5 6.6 (both can) reset password or brute force root password simple operation

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.