Linux Server System password recovery combat

Source: Internet
Author: User
Keywords Password server can server system boot
Tags access aliyun customer gateway hosting html http linux

&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; Number 23rd received a customer call, the Linux server can not log on, because the server is placed in China Unicom's hosting room, so can not be processed on-site. After the network detection, the server could not ping, the server network segment gateway can ping. Beginning to think that the server managed room network problems, causing the server can not access, and later use scanning tool to discover that the server IP location Port 21,389,1002 and 1702 have a response, so that the network is not a problem, the server is also running. After understanding, the installation of simple too simple digital password customers do not make changes (this is really not the idea), the server has been estimated to have been visited by bad people. Through negotiation, the client takes the server back to its own company and waits for us to recover the password.

In order to solve this problem, many of the friends who work in Zhuhai, Liang Baoyu and colleagues of the company, expressed their thanks. Through this practice and a few working days of hard work, the use of Linux systems and settings also improved and rapid growth.

If you forget your Linux password, there are two scenarios, one that starts with the Lilo manager and the other one that is started by the Grub manager.

One, Lilo Manager

If your system is managed through LILO
Can be started in the Lilo boot prompt lilo boot: After the input Linux single, then enter the Linux system into Single-user mode, then, you can use the passwd command to modify your password, after the modification of the system, you will be able to use the new password.

Two, Grub Manager

In the case of grub, it would be troublesome to modify the password. There's no relationship. You can do the following to enter a single user mode:

1 in the Boot Management process test option, enter [e] into edit mode.

2 again you will see the boot record list. Find a line similar to the following:

kernel/vmlinuz-2.4.18-0.4 ro root=/dev/hda2

First press the ARROW key to move to the line has been reversed white selection, and then press [E].

3 first press the blank key to add a blank, and then add single to the end of the line to tell GRUB to boot into Linux in one user mode. Press [Enter] again to make the change take effect.

4 you will be brought back to the editing mode interface. From here, after pressing [b], GRUB will boot into the single user Linux mode. After it completes the system load, you will see a shell hint symbol similar to the following:

sh-2.05#

5 Now you can change the root password, please enter

bash# passwd Root

6 You must enter a password again to determine. After you have completed, the password has been changed successfully, you can enter reboot under the hint symbol to reboot, and then you can log in as normal as root.

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.