| name | cis-ubuntu2004-v300-1-7-3 |
| description | Ensure GDM disable-user-list option is enabled |
| category | cis-networking |
| version | 3.0.0 |
| author | cyberstrike-official |
| tags | ["cis","ubuntu","linux","ubuntu-20.04","gnome","gdm","user-list","login"] |
| cis_id | 1.7.3 |
| cis_benchmark | CIS Ubuntu Linux 20.04 LTS Benchmark v3.0.0 |
| tech_stack | ["ubuntu","linux"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
1.7.3 Ensure GDM disable-user-list option is enabled (Automated)
Profile
- Level 1 - Server
- Level 1 - Workstation
Description
GDM is the GNOME Display Manager which handles graphical login for GNOME based systems.
The disable-user-list option controls if a list of users is displayed on the login screen.
Rationale
Displaying the user list eliminates half of the Userid/Password equation that an unauthorized person would need to log on.
Audit Procedure
Command Line
Run the following command to verify that a user profile exists:
/etc/dconf/profile/local:user-db:user
/etc/dconf/profile/local:system-db:local
Run the following command and to verify that the disable-user-list option is enabled:
true
Expected Result
- A user profile should exist
disable-user-list should be true
Remediation
Command Line
- IF - A user profile exists run the following command to enable the
disable-user-list:
Note:
-
gsettings commands in this section MUST be done from a command window on a graphical desktop or an error will be returned.
-
The system must be restarted after all gsettings configurations have been set in order for CIS-CAT Assessor to appropriately assess.
-
OR/IF - A user profile does not exist:
- Create or edit the gdm profile in
/etc/dconf/profile/gdm with the following lines:
user-db:user
system-db:gdm
file-db:/usr/share/gdm/greeter-dconf-defaults
Note: gdm is the name of a dconf database.
- Create a gdm keyfile for machine-wide settings in
/etc/dconf/db/gdm.d/00-login-screen: