RHEL-06-000507 - The operating system, upon successful logon, must display to the user the date and time of the last logon or access via ssh.

Information

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.

At ssh login, a user must be presented with the last successful login date and time.

Solution

Update the 'PrintLastLog' keyword to 'yes' in /etc/ssh/sshd_config:

PrintLastLog yes

While it is acceptable to remove the keyword entirely since the default action for the SSH daemon is to print the last logon date and time, it is preferred to have the value explicitly documented.

See Also

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

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-9, CAT|II, CCI|CCI-000052, Rule-ID|SV-218090r603264_rule, STIG-ID|RHEL-06-000507, STIG-Legacy|SV-50285, STIG-Legacy|V-38484, Vuln-ID|V-218090

Plugin: Unix

Control ID: 01e2554e67e5a7465566fced25786e26c592c6747843ddf7835518b09165f122