centos7设置开机默认使用root账户登陆

使用root账户进入系统:

vi /etc/gdm/custom.conf

在[daemon]下写入:

AutomaticLoginEnable=True
AutomaticLogin=root

重启系统之后可以直接进入root账户。

原文地址:https://www.cnblogs.com/liutongqing/p/13545971.html