Centos自动登陆命令

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 20:56   1355   0

主要是修改/etc/gdm/custom.conf ,添加AutomaticLogin和TimedLogin 重启即可。
vim /etc/gdm/custom.conf
[daemon]
AutomaticLoginEnable=true #设置 系统自动登陆为可用
AutomaticLogin=username #这里改为你要知动登陆的用户名
TimedLoginEnable=true #
TimedLogin=username #同样将这里修改为你需要登陆的用户名
TimedLoginDelay=7
/*如果这个地方是个空白,则把上面的代码全给填上*/
[security]
AllowRoot=false
www.2cto.com
[xdmcp]
[gui]
[greeter]
DefaultWelcome=false
Welcome=Wait seconds...
Logo=/usr/share/pixmaps/faces/penguin.jpg
[chooser]
[debug]
# Note that to disable servers defined in the defaults.conf file (such as
# 0=Standard, you must put a line in this file that says 0=inactive, as
# described in the Configuration section of the GDM documentation.
#
[servers]
www.2cto.com
# Also note, that if you redefine a [server-foo] section, then GDM will
# use the definition in this file, not the defaults.conf file. It is
# currently not possible to disable a [server-foo] section defined
# in the defaults.conf file.
#
[server-Chooser]
name=Chooser server
command=/usr/bin/Xorg -audit 0
chooser=false
handled=true
flexible=false
priority=0
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP