centos7开机默认使用root

1.使用root用户登录需要修改的主机
2.修改配置文件:/etc/gdm/custom.conf
3.在配置文件中的[deamon]增加以下两行配置:
AutomaticLoginEnable=True
AutomaticLogin=root
4.保存退出即可

猜你喜欢

转载自blog.51cto.com/songsong0119/2575496