2014年12月10日 星期三

How to set root auto login RHEL 7.0 / SLES 12

How to set root auto login RHEL 7.0 / SLES 12

RHEL 7.0
Edit /etc/gdm/custom.conf to add [daemon] 
add the following two lines in the [daemon]
section:

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=root

SLES 12 
Open Terminal.
Edit the /etc/sysconfig/displaymanager file.
 vi /etc/sysconfig/displaymanager
To enable the autologin, place your user name (in my case “raj”) in the DISPLAYMANAGER_AUTOLOGIN field; it will look like below.
## Type: string
## Default:
#
# Define the user whom should get logged in without request. If string
# is empty, display standard login dialog.
#
DISPLAYMANAGER_AUTOLOGIN="root"
To disable auto login, remove the username from the DISPLAYMANAGER_AUTOLOGIN field; it will look like below.
## Type: string
## Default:
#
# Define the user whom should get logged in without request. If string
# is empty, display standard login dialog.
#
DISPLAYMANAGER_AUTOLOGIN=""

沒有留言:

張貼留言