[Redhat&SUSE]Auto login with root account

Redhat OS:

gedit /etc/gdm/custom.conf

[daemen]

AutomaticLoginEnable=true
AutomaticLogin=root

 

SUSE OS:

gedit /etc/sysconfig/displaymanager

DISPLAYMANAGER_AUTOLOGIN=’root’