CentOS7 下使用root免密码输入自动登陆

如果系统默认启动图形界面:

vi /etc/gdm/custom.conf #找到[daemon],修改为下面的

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=root

:wq 保存退出即可

如果系统默认启动命令行界面:(不建议这么做)

CentOS7 不带图形界面 自动登录配置

参考资料:

centos7下使用root免密码输入自动登陆

CentOS7自动以root身份登陆gnome桌面

猜你喜欢

转载自www.cnblogs.com/jsjrj01/p/10301611.html
今日推荐