Linux虚拟机CentOS 7 开机直接进入root

vim /etc/gdm/custom.conf

[daemon]选项中

AutomaticLoginEnable=true
AutomaticLogin=root
TimedLoginEnable=true

[Security]

AllowRoot=true
原文地址:https://www.cnblogs.com/xingxyx/p/12965549.html