Linux System Rescue mode application: Single user mode retrieve password

Source: Internet
Author: User

Tag: computer TE enters modify copy res mode boot mount

Recover password using Linux system rescue mode

Method One:

    1. When the power on the hand to press any key, because the default time of 5s

    1. Grub menu, only one kernel, nothing good to select, press the E key. When the system is upgraded or Xen virtualization is installed, there are multiple displays.

    1. Next, select the second item, press the E key

    1. The following is shown below, at the end of the rhgb quiet with "space", and then type "1" or "s" or "s" or "single" can be, press ENTER return to the previous layer

    1. Press the B key to start the system

    1. The last interface directly input passwd can change the root password

Method Two:

    1. Set the system CD or USB flash drive to the first boot entry in the BIOS

    1. After rebooting the system, go to the Installation boot menu, move up and down to rescue install system Rescue installation

    1. Select a language to keep the default 中文版

    1. Select the keyboard type and leave the default US

    1. Whether to start the network, you need to choose according to your actual situation, if you need to copy data through the network, select Yes, here we choose No

    1. Go to the rescue interface and select Continue

    1. System mounted under/mnt/sysimage if you want to run the Chroot/mnt/sysimage command in the root environment

    1. Three options: Shell enters command line mode; FAKD is diagnostic mode; reboot restart the computer; we choose the shell here.

9. Change your password

Chroot/mnt/sysimage executes the original system file, you can use passwd to change the password, or VI to open the passwd file to modify the password flag bit

Article content is referenced from:

Http://www.jb51.net/os/RedHat/514798.html

http://blog.51cto.com/bella41981/1982796

Linux System Rescue mode application: Single user mode retrieve 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.