APPL-11-001100 - The macOS system must require individuals to be authenticated with an individual authenticator prior to using a group authenticator.

Information

Administrator users must never log in directly as root. To assure individual accountability and prevent unauthorized access, logging in as root over a remote connection must be disabled. Administrators should only run commands as root after first authenticating with their individual user names and passwords.

Solution

To ensure that 'PermitRootLogin' is disabled by sshd, run the following command:

/usr/bin/sudo /usr/bin/sed -i.bak 's/^[#]*PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apple_macOS_11_V1R5_STIG.zip

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-2(5), CAT|II, CCI|CCI-000770, Rule-ID|SV-230786r599842_rule, STIG-ID|APPL-11-001100, Vuln-ID|V-230786

Plugin: Unix

Control ID: 8a70d093f4fa7524489ec9f89622954a6c4e7dc0e706251e37e8f172a3191477