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

Methods and steps of setting Root password of CentOS7

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly explains the "methods and steps of setting the Root password of CentOS7". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the methods and steps of setting the Root password of CentOS7".

1-in the launch grub menu, select the edit option to launch

2-Press the e key of the keyboard to enter the editing interface

3-find the line in Linux 16 and change ro to rw init=/sysroot/bin/sh

4-now press Control+x to start in single-user mode

5-now, you can access the system using the following command

Chroot / sysroot

6-reset password

Passwd root

7-Update system information

Touch /. Autorelabel

8-quit chroot

Exit

9-restart your system

Reboot thank you for reading, the above is the content of "the methods and steps of setting the Root password of CentOS7". After the study of this article, I believe you have a deeper understanding of the methods and steps of setting the Root password of CentOS7, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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: 263

*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