Disable the GNOME3 Login User List
An XCCDF Rule
Description
In the default graphical environment, users logging directly into the
system are greeted with a login screen that displays all known users.
This functionality should be disabled by setting disable-user-list
to true
.
To disable, add or edit disable-user-list
to
/etc/dconf/db/gdm.d/00-security-settings
. For example:
[org/gnome/login-screen] disable-user-list=trueOnce the setting has been added, add a lock to
/etc/dconf/db/gdm.d/locks/00-security-settings-lock
to prevent
user modification. For example:
/org/gnome/login-screen/disable-user-listAfter the settings have been set, run
dconf update
.
Rationale
Leaving the user list enabled is a security risk since it allows anyone with physical access to the system to quickly enumerate known user accounts without logging in.
- ID
- xccdf_org.ssgproject.content_rule_dconf_gnome_disable_user_list
- Severity
- Medium
- References
- Updated
Remediation - Ansible
- name: Gather the package facts
package_facts:
manager: auto
tags:
- CCE-86195-5
- DISA-STIG-RHEL-08-020032
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if rpm --quiet -q gdm && { [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; }; then
# Check for setting in any of the DConf db directories
# If files contain ibus or distro, ignore them.
# The assignment assumes that individual filenames don't contain :