In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
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 commands in turn
# 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 bit slow. You need to wait patiently for a while. After restarting, you can log in using the password you just reset.
6. 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 (username to change the password)
Summary
The above is the method that the editor introduced to you to modify and reset the root password under Linux. I hope it will be helpful to you. If you have any questions, please leave a message for me, and the editor will reply to you in time. Thank you very much for your support to the website!
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.