To configure the system to notify users of last logon/access
-using pam_lastlog, add the following line immediately after session required pam_limits.so:
-session required pam_lastlog.so showfailed
+using pam_lastlog, add or correct the pam_lastlog settings in
+/etc/pam.d/postlogin to read as follows:
+session [success=1 default=ignore] pam_succeed_if.so service !~ gdm* service !~ su* quiet
+session [default=1] pam_lastlog.so nowtmp showfailed
+session optional pam_lastlog.so silent noupdate showfailed