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

What if centos7.5 forgets the root password?

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

Share

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

What if centos7.5 forgets my root password? I believe many novice rookies are at a loss about this. Through the summary of this article, I hope you can use this method to solve the problem. Here are the steps to solve the problem.

1. Enter the centos menu # quickly press the up and down arrows

2. E enter the edit menu and add: init=/bin/sh

3. Ctrl + x to start

4. Mount the root directory:

Mount-o remount, rw /; single user / directory is read-only; rw permission is required

5. Echo centos | passwd-- stdin root

Passwd root

6. Touch / .autorelabel updates system information

7. Exec / sbin/init startup

After reading the above, have you mastered the solution for centos7.5 to forget the root password? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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