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

What if I forgot my root password for Linux?

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

The main content of this article is to explain how to forget the root password of Linux. Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "the root password of Linux forgot what to do"!

In the past, the author forgot the administrator password of windows, because he could not clear the password with CD-ROM and finally had to reinstall the system. Now think about what a stupid thing that was. In the same linux system, you will also encounter the situation of forgetting your root password. What if you encounter such a situation? Reinstall the system? Of course not! Enter single-user mode and change the root password. How to get in.

Restart the linux system

Press enter within 3 seconds, and the following interface appears

Then enter e

Type single at the end of the second line with a space. The specific method is to press the downward tip to move to the second line, and press "e" to enter edit mode

Add single to the back and enter.

Finally, press "b" to start, and after startup, you enter single-user mode.

Now that you have entered single-user mode, you can change your root password. The command to change the password is passwd

At this point, I believe that everyone on the "Linux root password forgot how to do" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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