Information
The operating system, upon successful logon, must display to the user the date and time of the last logon (access).
GROUP ID: V-216125RULE ID: SV-216125r987814
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.
Solution
The root role is required for this action.
pfedit /etc/ssh/sshd_config
Locate the line containing:
PrintLastLog no
and place a comment sign ("")at the beginning of the line or delete the line
PrintLastLog no
Restart the ssh service
pfexec svcadm restart svc:/network/ssh