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 the linux password forgot to reset the password

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

Share

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

Editor to share with you what to do if you forget to reset your linux password. I believe most people don't know much about it, so share this article for your reference. I hope you can learn a lot after reading this article. Let's learn about it together.

The linux password forgets how to reset the password: first type "e" on the kernel; then change the content to "rw rd.break" in the linux16 line; then enter the system's emergency rescue mode and type commands such as passwd in turn; finally restart the service.

People who are new to Linux may be at a loss when they forget their root password. I want to find my root password, but I don't know how. In fact, it only takes a few simple steps to reset your root password (I can't get my password back either)

1. Click e on the kernel after power on, and then edit the options

two。 In the linux16 line, change the content in the red box to rw rd.break

According to the prompt, use the key combination CTRL+X to change the password

3. Enter the emergency rescue mode of the system

4. Enter the following command # chroot / sysroot / / enter the root directory of the system # passwd / / reset password # touch / .autorelabel / / create a file, so that the system can recognize and modify # exit to exit chroot mode # reboot / / restart the system when rebooting.

5. Restart is a little slow, you need to be patient for a while, after reboot, you can log in 6. 5 using the password you just reset. Modify the password

Don't forget your password, change it:

After # passwd / /, you will be prompted for a new password and then modified successfully!

Change the password of a general user as root:

# passwd username (user name to change password) above is all about how linux password forgets to reset password. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, 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