centos设置默认以root身份登录
vim打开custom.conf文件
vim /etc/gdm/custom.conf
修改AutomaticLoginEnable和AutomaticLogin为以下内容
AutomaticLoginEnable=True
AutomaticLogin=root
vim打开custom.conf文件
vim /etc/gdm/custom.conf
修改AutomaticLoginEnable和AutomaticLogin为以下内容
AutomaticLoginEnable=True
AutomaticLogin=root