6.5 Remove Autologin Capabilities from the GNOME desktop

Information

The GNOME Display Manager is used for login session management. See the manual page gdm(1) for more information. By default, GNOME automatic login is defined in /etc/pam.d/gdm-autologin to allow users to access the system without a password.

Rationale:

As automatic logins are a known security risk for other than 'kiosk' types of systems, GNOME automatic login should be disabled in /etc/pam.d/gdm-autologin.

Solution

Comment out or remove all lines from /etc/pam.d/gdm-autologin:

# cp /etc/pam.d/gdm-autologin /etc/pam.d/gdm-autologin.orig

# awk '{ if ( $1 ~ /auth/ || $1 ~ /account/) $1 = '#'$1 } { print };' /etc/pam.d/gdm-autologin > /etc/pam.d/gdm-autologin.CIS

# cp /etc/pam.d/gdm-autologin.CIS /etc/pam.d/gdm-autologin

See Also

https://workbench.cisecurity.org/benchmarks/4777

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-2(3), CSCv7|16.8

Plugin: Unix

Control ID: c9fe35db75532e0a3f63fd9c00c6b5936a71db4473d12486887013a65aa1332c