5.4.8 Ensure date and time of last successful logon - showfailed

Information

The operating system must display the date and time of the last successful account logon upon logon.

Rationale:

Providing users with feedback on when account accesses last occurred facilitates user recognition and reporting of unauthorized account use.

Solution

Configure the operating system to provide users with feedback on when account accesses last occurred by setting the required configuration options in /etc/pam.d/postlogin.
Example: vim /etc/pam.d/postlogin
Add the following line to the top of the file:

session required pam_lastlog.so showfailed

See Also

https://workbench.cisecurity.org/files/3636

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CCI|CCI-000366, CSCv7|6.2, Rule-ID|SV-204605r603261_rule, STIG-ID|RHEL-07-040530

Plugin: Unix

Control ID: 3e8a6077d3c47c2bfeb9c4e832feab7059f5ce6d12e0ae4a0543e81352c4be27