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/login
to include showfailed
option, such as:
session optional pam_lastlog.so showfailed
And make sure that the silent
option is not set for this specific line.