Home  >  Article  >  Operation and Maintenance  >  How to activate root user in centos

How to activate root user in centos

王林
王林Original
2020-03-18 11:21:073482browse

How to activate root user in centos

By default, root has not been activated. You need to set a password for root and activate root.

The command is as follows: (Recommended tutorial: centos usage tutorial)

sudo passwd
Password:你当前用户的密码
Enter new UNIX password:这个是root的密码
Retype new UNIX password:重复root的密码

After completing the above steps, you can log in directly as root.

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to activate root user in centos. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn