CentOS7 启用root用户

编辑 /etc/gdm/custom.conf 文件,具体如下所示:

在daemon选项中修改AutomaticLoginEnable=true,AutomaticLogin=root 

如果daemon下为空则添加:

AutomaticLoginEnable=true
AutomaticLogin=root 
如:

[daemon] 
AutomaticLoginEnable=true
AutomaticLogin=root 

原文地址:https://www.cnblogs.com/wpcnblog/p/14734315.html