AOSX-15-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_OS_X_10-15_V1R8_STIG.zip

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-2(5), CAT|II, CCI|CCI-000770, Rule-ID|SV-225158r610901_rule, STIG-ID|AOSX-15-001100, STIG-Legacy|SV-111697, STIG-Legacy|V-102735, Vuln-ID|V-225158

Plugin: Unix

Control ID: 0e7a305dd3e1587bed5e8a2330e1230d17e7c8e002f33eb7524df061275a522a