diff --git a/linux_os/guide/system/accounts/accounts-physical/require_singleuser_auth/policy/stig/shared.yml b/linux_os/guide/system/accounts/accounts-physical/require_singleuser_auth/policy/stig/shared.yml index 9ed13f583fd..cd3f7c9ddc0 100644 --- a/linux_os/guide/system/accounts/accounts-physical/require_singleuser_auth/policy/stig/shared.yml +++ b/linux_os/guide/system/accounts/accounts-physical/require_singleuser_auth/policy/stig/shared.yml @@ -13,12 +13,21 @@ checktext: |- ExecStart=-/usr/lib/systemd/systemd-sulogin-shell rescue - If this line is not returned, or is commented out, this is a finding. + In case the output does not match, check if the ExecStart directive is not overridden: + + grep ExecStart /etc/systemd/system/rescue.service.d/*.conf + + The output should contain two lines: + ExecStart= + ExecStart=-/usr/lib/systemd/systemd-sulogin-shell rescue + + If the line is not returned in any of cases mentioned above, or is commented out, this is a finding. fixtext: |- Configure {{{ full_name }}} to require authentication for single-user mode. - Add or modify the following line in the "/usr/lib/systemd/system/rescue.service" file: + Add following two lines to the file "/etc/systemd/system/rescue.service.d/10-remediation.conf": + ExecStart= ExecStart=-/usr/lib/systemd/systemd-sulogin-shell rescue