Rule ID
SV-288871r1316110_rule
Version
V1R1
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-000080-GPOS-00048
Verify the macOS system is configured to disable root login with the following command: /usr/bin/dscl '/Local/Default' read '/Users/root' AuthenticationAuthority 2>/dev/null | /usr/bin/grep -c 'AuthenticationAuthority' If the result is not "0", this is a finding.
Configure the macOS system to disable root login with the following commands: /usr/bin/fdesetup remove -user root /usr/bin/dscl '/Local/Default' delete '/Users/root' AuthenticationAuthority