修改/etc/gdm/custom.conf文件,实现root用户免密码自动登陆

[daemon]下增加

AutomaticLoginEnable=True
AutomaticLogin=root

保存文件,然后重启查看效果。

文件修改后效果如下:

# GDM configuration storage

[daemon]
AutomaticLoginEnable=True
AutomaticLogin=root

[security]

[xdmcp]

[chooser]

[debug]
# Uncomment the line below to turn on debugging
#Enable=true
最后修改:2021 年 09 月 24 日 10 : 18 PM
如果觉得我的文章对你有用,请随意赞赏