Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to recover root password in Linux system

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how to recover the root password in the Linux system. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.

The first recovery model: password recovery in single-user mode

1. Restart the Linux system and press the "e" key when you see the following interface

2. After pressing the "e" key, we will see the following interface, press the "e" key again

3. After pressing the "e" key last time, we came to the following interface. If what appears is different from this picture, find the line with the word kerner, and then press the "e" key again.

4. We will go to the following page, leave a space after quiet, and then type single

5. When you are finished, hit enter (i.e. enter) and return to the interface shown below, where you press "b"

6. Then we will go to this page

7. Enter the following class volume to indicate that the root password has been changed. We can see that a update successfully indicates that the modification is successful, and then enter reboot to restart. You will enter the user login interface and enter the password you just modified to log in.

The second recovery mode: optical disc recovery (mainly through the optical disc entering rescue mode for recovery)

1. Suppose we cannot use the first method for password repair, put the Linux installation shutdown into the CD-ROM drive, and then start the computer. We will see the page shown below.

2. Then enter the contents of the picture, then enter, and the system will enter the rescue mode.

3. After entering the rescue mode, we are asked to choose the language. Generally speaking, we just enter by default and confirm it.

4. Select keyboard mode

5. Prompt whether to set the network card information, generally not, we can use the tab key to switch to no

6. Then we will reach this interface. We enter directly, and it will automatically check the system.

7. After completion, we will see the following interface, which will display the mount information of the system. We can simply enter and select OK.

8. then type the following, and then restart the computer. Note that before restarting, we need to disconnect the CD-ROM drive, then enter the user login interface and enter the password you changed before.

The above is the editor for you to share how to recover the root password in the Linux system, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report