5.4.8 Ensure date and time of last successful logon

Information

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

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/benchmarks/8415

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-2, 800-53|AU-7, 800-53|AU-12, CSCv7|6.2

Plugin: Unix

Control ID: cfdf48cf98b434d384fea3f11ddc43eebc8849c353386423e7a8fc761541c4ee