新安装centos 7开启root登陆

Posted 不经一番寒彻骨

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了新安装centos 7开启root登陆相关的知识,希望对你有一定的参考价值。

开启root登陆 

sudo  vi /etc/gdm/custom.conf

在daemon加

AutomaticLoginEnable=true
AutomaticLogin=root 

修改密码

sudo passwd root

CentOS7如何关闭防火墙

查看防火墙是开启状态:systemctl status firewalld.service 

关闭运行的防火墙(重启系统后失效):systemctl stop firewalld.service   

禁止防火墙服务器(重启系统后仍关闭):systemctl disable firewalld.service

 

以上是关于新安装centos 7开启root登陆的主要内容,如果未能解决你的问题,请参考以下文章