STIGUI
V-268172CAT I — High severitySV-268172r1131152_rule

NixOS must not allow an unattended or automatic logon to the system via the console.

Rule version ANIX-00-001880 · STIG v1 · 2025-08-19

Discussion

Failure to restrict system access via the console to authenticated users negatively impacts operating system security.

Check

Verify NixOS does not allow an unattended or automatic logon to the system via the console with the following command:

$ grep -iR autologon.user /etc/nixos

If "services.xserver.displayManager.autologon.user" is defined and is not "null", this is a finding.

Fix

Configure NixOS to not allow an unattended or automatic logon to the system via the console.

Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:

services.xserver.displayManager.autologon.user = null;

Rebuild and switch to the new NixOS configuration: $ sudo nixos-rebuild switch

A reboot is required for the changes to take effect.

Identifiers

Group ID
V-268172
Group title
SRG-OS-000480-GPOS-00229
Rule ID
SV-268172r1131152_rule
Check ID
C-72096r1131150_chk
Fix ID
F-71999r1131151_fix