In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Turn on the centos8 virtual machine and press the up and down keys in the figure 1 interface to select the first line
As shown in figure 1
Press the'e' key to enter the interface in figure 2 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 the rw,\ added by the system itself), as shown in figure 3.
As shown in figure 2
As shown in figure 3
Press and hold the Ctrl and x keys at the same time, and the system enters the following interface, namely emergency (emergency) mode. As shown in figures 4 and 5.
As shown in figure 4, this interface has a long waiting time, so you need to wait patiently.
As shown in figure 5
4. Run the command "chroot / sysroot/" to switch back to the original system (that is, 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. As shown in figure 6.
/ # chroot / sysroot/ / # LANG=en (change the language to English) / # passwd / # touch /. Autorelabel
As shown in figure 6
5. At the same time, press and hold the "Ctrl+d" key, enter "reboot", press the enter key, and the system restarts. As shown in figure 7.
As shown in figure 7
6. Enter this interface and enter the newly set root password to log in successfully. As shown in figure 8.
As shown in figure 8
7. Log in successfully and enter the centos8 system. As shown in figure 9.
As shown in figure 9
At this point, the root password of the centos8 system has been modified!
Summary
This is the end of this article on the rapid modification of root passwords under CentOS8. For more information about centOS8 root password cracking, please search the previous articles or continue to browse the relevant articles below. I hope you will support me in the future!
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.