STIGUI
V-259444CAT II — Medium severitySV-259444r1009580_rule

The macOS system must disable root logon.

Rule version APPL-14-000100 · STIG v2 · 2024-12-04

Discussion

To ensure individual accountability and prevent unauthorized access, logging in as root at the login window must be disabled.

The macOS system must require individuals to be authenticated with an individual authenticator prior to using a group authenticator, and administrator users must never log in directly as root.

Satisfies: SRG-OS-000104-GPOS-00051,SRG-OS-000109-GPOS-00056,SRG-OS-000364-GPOS-00151

Check

Verify the macOS system is configured to disable root login with the following command:

/usr/bin/dscl . -read /Users/root UserShell 2>&1 | /usr/bin/grep -c "/usr/bin/false"

If the result is not "1", this is a finding.

Fix

Configure the macOS system to disable root login with the following command:

/usr/bin/dscl . -create /Users/root UserShell /usr/bin/false

Identifiers

Group ID
V-259444
Group title
SRG-OS-000104-GPOS-00051
Rule ID
SV-259444r1009580_rule
Check ID
C-63183r940952_chk
Fix ID
F-63091r940953_fix