UCF STIG Viewer Logo

The operating system, upon successful logon, must display to the user the date and time of the last logon (access).


Overview

Finding ID Version Rule ID IA Controls Severity
V-51459 OSX8-00-00200 SV-65669r1_rule Medium
Description
Users need to be aware of activity that occurs regarding their account. Providing users with information regarding the date and time of their last successful login allows the user to determine if any unauthorized activity has occurred and gives them an opportunity to notify administrators.
STIG Date
Apple OS X 10.8 (Mountain Lion) Workstation STIG 2015-02-10

Details

Check Text ( C-53799r2_chk )
To see if SSH is configured to display the last login information, run the following command:

grep ^PrintLastLog /etc/sshd_config | awk '{ print $2 }'

If there is no result returned, or is "no", this is a finding.
Fix Text (F-56261r1_fix)
To set the SSH server to print the last login information, run the following command:

sudo sed -i.bak 's/.*PrintLastLog.*/PrintLastLog yes/' /etc/sshd_config