In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you the "CentOS7 version of the system crack example analysis", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn the "CentOS7 version of system cracking example analysis" this article.
First, environmental preparation:
First of all, it is necessary to have a CentOS7 system to ensure that it can be rebooted normally and modify the configuration at boot time.
Second, restart the interface
1. Just entering the system
2, press the up and down keys to select, will not directly skip this interface, have time to do the operation, if the hand speed can be omitted.
3. then select the first one and press e to edit the selection.
III. Operation process
1. Go to the following interface
I installed this in the virtual machine, so the display content is a little less, you can use the arrow keys to turn the page.
2. Find the following information:
Find the or and replace or with rw init=/sysroot/bin/sh, leaving the rest unchanged.
3. After replacement, it is as follows:
Delete the or and replace it with the following content, which is the final result. The lower right corner of the red square is not the lower right corner of the line but the cursor, which requires attention.
4. After the above steps, you can directly press ctrl+x to start using single-user mode.
5. Then you will enter the following aspects
6. Enter the following, and then restart.
1), switch to a temporary system:
Chroot: you can switch directly to a temporary system, which is just one of the functions of chroot. Specific parameters, https://www.yisu.com/LINUXjishu/541725.html
2) directly use passwd root to set the root user password:
The root password is not echoed and is required to be entered twice.
3), now that SELinux is not started, changes to all files may result in incorrect context (security context) of the document. To ensure that SELinux context is reset when booting, add hidden files .autorelabel in the root directory (if your system does not have SELinux enabled, you do not have to do this step).
Ps: there is a wrong command in the middle. Just ignore it.
4), and then directly restart, I tried, reboot,init 6, can not be restarted directly, exit exit can not restart, I am directly similar to power-off restart.
Finally, even if the root password is reset successfully.
The above is all the contents of the article "sample Analysis of CentOS7 version system cracking". 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.
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.