Linux设置默认登录用户为root

如果不设置,每次要用到root用户时都要输入密码,感觉比较麻烦

vim /etc/gdm/custom.conf

在[daemon]加入两行

# GDM configuration storage

[daemon]
AutomaticLoginEnable=True
AutomaticLogin=root
[security]

[xdmcp]

[greeter]

[chooser]

[debug]

重启机器才会生效

猜你喜欢

转载自blog.csdn.net/zhou_438/article/details/89735751
今日推荐