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 command to be executed with root privileges either directly as a root user or by use of sudo command
  • $ - given command 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:
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