解决办法:可以通过修改/etc/gdm/custom.conf文件,实现root用户免密码自动登陆
1.输入命令vi /etc/gdm/cutstom.conf
2.在[daemon]下增加(需要插入时按i进行插入模式,插入完成后按esc退出插入模式,然后输入:wq保存并退出)
AutomaticLoginEnable=True
AutomaticLogin=root
保存文件,然后重启查看效果
AutomaticLoginEnable=True
AutomaticLogin=root
保存文件,然后重启查看效果