In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-08 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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.