About password reset after forgetting your Linux password

Source: Internet
Author: User


1. Press any key in the boot system for 3 seconds to enter the Grub menu option

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/82/77/wKiom1dWOyXCDS2-AAAhzY5uIpE236.png "title=" 1.png " Width= "height=" 281 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:500px;height:281px; "alt=" Wkiom1dwoyxcds2-aaahzy5uipe236.png "/>


2, press the E key to enter, select the kernel

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/82/76/wKioL1dWPUvx3_hzAAAsbIIp_Fs317.png "title=" 2.png " Width= "height=" 296 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:500px;height:296px; "alt=" wkiol1dwpuvx3_ Hzaaasbiip_fs317.png "/>


3. Press the E key again to enter the command mode, enter init 1 or single return

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/82/76/wKioL1dWPhXyBfuuAAAXTTg9lh0359.png "title=" 3.png " Width= "height=" 103 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:500px;height:103px; "alt=" Wkiol1dwphxybfuuaaaxttg9lh0359.png "/>


4, return to the Kernel interface press the B key to start the system to single user mode

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/82/77/wKiom1dWPdTiO_tOAAAJx1SmO6Q236.png "title=" 4.png " Width= "height=" border= "0" hspace= "0" vspace= "0" style= "width:500px;height:65px;" alt= "Wkiom1dwpdtio_ Toaaajx1smo6q236.png "/>


5. Reset the root password by using the passwd command to restart both

About password reset after forgetting your Linux password

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.