In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "centos8 forgot the password and how to solve it". In the course of the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Restart centos8
Restart centos8 and press the up and down keys to select the first line in this interface
Modify a file
Press the'e' key to enter the following interface and move the down arrow key to the line at the beginning of "linux16". Then press the right arrow key to move to find "ro" and change it to "rw init=/sysroot/bin/bash". (there is a space after rw,\ added by the system itself)
Enter emergency mode
Press and hold the Ctrl and x keys at the same time, and the system enters the following interface, namely emergency (emergency) mode.
4. Run the command "chroot / sysroot/" to switch back to the original system
Run the command "chroot / sysroot/" to switch back to the original system (that is, our centos7), and then you can change the password and run the command "touch / .autorelabel" after changing the password to make the SELinux effective and the password effective. As shown in the following picture. (if the following box is garbled (vmware does not support Chinese characters, so the square is displayed), you can temporarily set the current terminal language to English.
/ # chroot / sysroot//# (change the language to English) / # passwd/# touch / .autorelabel restart
Press and hold the Ctrl and d keys at the same time, enter reboot, enter, and the system restarts.
6. After restarting the system, enter the newly set password to log in to the system normally. "centos8 forgot the password how to solve" the content is introduced here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.