centos root用户自动登录

1.切换至管理员

通过su指令切换至root用户
2.打开/etc/gdm/custom.conf

vi /etc/gdm/custom.conf

 

在文件[daemon]下写入:

AutomaticLoginEnable=True
AutomaticLogin=root

 

3.重启

在终端输入reboot重启电脑,完成设置

 
posted @ 2023-01-03 15:16  duoruimi  阅读(161)  评论(0编辑  收藏  举报