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 the centos system password is forgotten?

2025-01-16 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 the centos system password forgot how to do, many people may not understand, in order to let you better understand, the editor summed up the following, I hope you can get something according to this article.

1. Press any key when booting to this interface

2. Press E to edit the linux startup level

3. Select the second one and press E to enter

4. Enter 1 or single in the space

5. Then press enter to return to the GRUB interface, and press B to enter single-user mode

6. Enter the B interface in the single user interface, enter the passwd user name and then enter the password to be modified, indicating that all authentication passwords have been updated successfully, so that the password has been modified successfully. When the password change is complete, enter init 3 to enter multi-user mode.

Note: if you are prompted to enter a new password after entering the passwd user name, you need to temporarily shut down selinux. Enter the setenforce 0 command to turn off selinux so that you can change the password in single-user mode.

After reading the above, do you have any further understanding of how to forget the password of the centos system? 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