UCF STIG Viewer Logo

The operating system must require individuals to be authenticated with an individual authenticator prior to using a group authenticator.


Overview

Finding ID Version Rule ID IA Controls Severity
V-59659 AOSX-10-000565 SV-74089r1_rule Medium
Description
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.
STIG Date
Apple OS X 10.10 (Yosemite) Workstation Security Technical Implementation Guide 2017-04-06

Details

Check Text ( C-60429r1_chk )
To check if SSH has root logins enabled, run the following command:

sudo grep ^PermitRootLogin /etc/sshd_config

If there is no result, or the result is set to 'yes', this is a finding.
Fix Text (F-65069r1_fix)
In order to make sure that PermitRootLogin is disabled by sshd, run the following command:

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