1.10 Ensure GDM is removed or login is configured - user-db:user

Information

GDM is the GNOME Display Manager which handles graphical login for GNOME based systems.

Rationale:

If a graphical login is not required, it should be removed to reduce the attack surface of the system. If a graphical login is required, last logged in user display should be disabled, and a warning banner should be configured.

displaying the last logged in user eliminates half of the Userid/Password equation that an unauthorized person would need to log on.

Warning messages inform users who are attempting to login to the system of their legal status regarding the system and must include the name of the organization that owns the system and any monitoring policies that are in place.

Notes:

Additional options and sections may appear in the /etc/dconf/db/gdm.d/01-banner-message file.

If a different GUI login service is in use and required on the system, consult your documentation to disable displaying the last logged on user and apply an equivalent banner.

Solution

Run the following command to remove gdm

# yum remove gdm

OR
If GDM is required:
Edit or create the file /etc/dconf/profile/gdm and add the following:

user-db:user
system-db:gdm
file-db:/usr/share/gdm/greeter-dconf-defaults

Edit or create the file /etc/dconf/db/gdm.d/ and add the following: (This is typically /etc/dconf/db/gdm.d/01-banner-message)

[org/gnome/login-screen]
banner-message-enable=true
banner-message-text='<banner message>'

Example Banner Text: 'Authorized uses only. All activity may be monitored and reported.'
Edit or create the file /etc/dconf/db/gdm.d/ and add the following: (This is typically /etc/dconf/db/gdm.d/00-login-screen)

[org/gnome/login-screen]
# Do not show the user list
disable-user-list=true

Run the following command to update the system databases:

# dconf update

See Also

https://workbench.cisecurity.org/files/2948

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-8a., CSCv7|5.1

Plugin: Unix

Control ID: 1d5d6be0040690f127f4000b2cf5663386bb62111390d1cf21075bf45ec88308