Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to crack root password in CentOS7.3

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about how to crack the root password in CentOS7.3. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

1. press the e key when the boot menu appears

2. Find the line linux16, and append the rd.break parameter to it

3. Then press ctrl+x to start to a specific mode. Since the data in the partition / sysroot is needed to change the password, and this partition is read-only by default, you need to mount it again and grant rw permission:

1) mount-o remount,rw / sysroot

2) chroot / sysroot

3) passwd (also echo redhat | passwd-- stdin root)

4) touch / .autorelabel (this step is not required if Selinux is disabled)

5) exit

4. After entering reboot, the system may wait for a moment, and then re-enter the system, enter the root password you just changed to log in.

Another way:

Edit the grub2 and change the ro of the linux16 line to rw init=/sysroot/bin, roughly as follows:

Navigate to the ro field of the Linux16 line

Replace ro with rw init=/sysroot/bin

Chroot / sysroot

Passwd

Touch / .autorelabel (this step is not required if Selinux is disabled)

Exit

Reboot

After reading the above, do you have any further understanding of how to crack the root password in CentOS7.3? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report