Enable GDM automatic user login on CentOS 7 Linux

Objective

The objective is to instruct Gnome Desktop Manager to automatically login a specified system user.

Requirements

Privileged access to your CentOS 7 installation and existing user account to enable Automatic login upon.

Difficulty

EASY

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Instructions

Update GDM settings

Add the following stanza into a [daemon] section of your /etc/gdm/custom.conf while replacing keyword “linuxconfig” with a username of your autologin user:

[daemon]
AutomaticLogin=linuxconfig
AutomaticLoginEnable=True

Enable GDM user auto login

Restart

All should be ready now. Your specified user will now be automatically logged using Gnome Desktop manager.

# restart