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

The solution of CentOS7 forgetting root user password

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

1. Question:

Forget the root password, cannot log in to root, and cannot use the administrative operation of root permissions.

2. Solutions:

Step 1: enter first aid mode

Restart the system, as soon as the boot loading interface appears, quickly press the esc key (be sure to have bad eyes and quick hands), and enter the first aid mode.

Step 2: enter the first aid command mode

Step 3: load the mirror system, enter the bash environment, and use the passwd command to change the password

Step 4: enter exit to exit

Step 5: restart the system with reboot and enter a new password to log in to the system.

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