To configure the system to notify users of last logon/access using pam_lastlog
,
add or correct the pam_lastlog
settings in /etc/pam.d/postlogin
to include showfailed
option, such as:
session [default=1] pam_lastlog.so showfailed
And make sure that the silent
option is not set for this specific line.