Old boy Education daily one question-day59-linux root password forgot, how to retrieve it?

Source: Internet
Author: User

1, start the hand to quickly press any key, because the default time of 5s

650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M00/97/DB/wKiom1k0F8uRJXrTAAAM9GXq-08277.bmp "style=" float : none; "title=" 1.bmp "alt=" Wkiom1k0f8urjxrtaaam9gxq-08277.bmp "/>

Figure 1.1 Countdown Timer


2, Grub menu, only one kernel, nothing good up and down, press e key. However, if you upgrade the system or install Xen virtualization, there will be multiple displays.

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/97/DB/wKiom1k0F8uR6iesAAAwunaDEHQ506.bmp "title=" 2.bmp "Style=" Float:none; "alt=" Wkiom1k0f8ur6iesaaawunadehq506.bmp "/>

Figure 2.1 Selecting the system kernel and editing it

3, next show as follows, select the second item, press the E key

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/97/DD/wKioL1k0F8zwYWDzAAAg9CDbROQ671.bmp "title=" 3.1. BMP "style=" Float:none; "alt=" Wkiol1k0f8zwywdzaaag9cdbroq671.bmp "/>

Figure 3.1 Selecting an edited item

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/97/DD/wKioL1k0F8zC92iIAAAf4gu15zE906.bmp "title=" 3.2. BMP "style=" Float:none; "alt=" Wkiol1k0f8zc92iiaaaf4gu15ze906.bmp "/>

Figure 3.2 Modifying only the second item-kernel-related startup parameters

4, next shows the following, in RHGB quiet last Add "space", and then type "1" or "s" or "s" or "single" Can, press enter return to the previous layer

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/97/DB/wKiom1k0F83x5zHnAAArdINCwhk745.bmp "title=" 4.1. BMP "style=" Float:none; "alt=" Wkiom1k0f83x5zhnaaardincwhk745.bmp "/>

Figure 4.1 Adding content after kernel boot parameters to allow the system to enter a single user

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/97/DD/wKioL1k0F82hbOixAAAotCe2SKg861.bmp "title=" 4.2. BMP "style=" Float:none; "alt=" Wkiol1k0f82hboixaaaotce2skg861.bmp "/>

Figure 4.2 Adding content after kernel boot parameters to allow the system to enter a single user

5. Press the B key to start the system

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/97/DB/wKiom1k0F86jQICBAAAhDHZPUs0251.bmp "title=" 5.bmp "Style=" Float:none; "alt=" Wkiom1k0f86jqicbaaahdhzpus0251.bmp "/>

Figure 5.1 Press ENTER after modification

6. Final interface

After pressing B, the system continues to boot and enters into single-user mode.

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/97/DD/wKioL1k0F9DDaee5AABkJplTL5Q622.bmp "title=" 6.2. BMP "style=" Float:none; "alt=" Wkiol1k0f9ddaee5aabkjpltl5q622.bmp "/>

Figure 6.1 System continues to start

7, the direct input passwd can change the root password

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/97/DC/wKiom1k0F9Cg-e4EAAAPQO6DLL8077.bmp "title=" 7.bmp "Style=" Float:none; "alt=" Wkiom1k0f9cg-e4eaaapqo6dll8077.bmp "/>

Figure 7.1 Modifying the root user password directly

8. Statistical information

Today is the 59th Day of the day to accompany you and look forward to your progress .

For questions and answers, please leave a comment in the blog comments section .
Index of the topic of the previous period

http://lidao.blog.51cto.com/3388056/1914205


This article is from the "Lee blog" blog, make sure to keep this source http://lidao.blog.51cto.com/3388056/1932128

Old boy Education daily one question-day59-linux root password forgot, how to retrieve it?

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.