[root@CentOS6 ~]# vim /etc/gdm/custom.conf
1 GDM configuration storage 2 [daemon] 3 AutomaticLoginEnable=true #使能自动登录 4 AutomaticLogin=root #指定自动登录的用户 5 [security] 6 7 [xdmcp] 8 9 [greeter] 10 11 [chooser] 12 13 [debug]