TMAegisBeta
More rules for solaris

Oracle Solaris

TMA-SOLARIS-6.5

Remove Autologin Capabilities from the GNOME desktop

MediumLevel 1Automatedsolaris

Description

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. 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. Audit: automated read-only check derived from the CIS audit procedure; it prints "compliant" when the control is met.

How it is checked

Audit method: Shell command

shell
f=/etc/pam.d/gdm-autologin; [ -f "$f" ] || { echo 0; exit 0; }; n=$(egrep "auth|account" "$f" | grep -vc "^#"); echo "$n"
Expected output
0

How it is fixed

Fix method: Guidance or infrastructure patch

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

Properties

Operating systems
Any
Tags
solarisaccounts
Reference
CIS Oracle Solaris 11.4 Benchmark v1.1.0 - 6.5 Remove Autologin Capabilities from the GNOME desktop

Check this host

Run this on a machine you are allowed to audit. The scan is read-only.

shell
tmaegis scan --target solaris