You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it will update lastlog (but not wtmp) when su is used.
SU(1):
NOTES
For security reasons su always logs failed log-in attempts to the btmp file, but it does not write to the lastlog file at all. This solution al‐
lows to control su behavior by PAM configuration. If you want to use the pam_lastlog module to print warning message about failed log-in attempts
then the pam_lastlog has to be configured to update the lastlog file as well. For example by:
session required pam_lastlog.so nowtmp
The text was updated successfully, but these errors were encountered:
CentOS has this in
/etc/pam.d/postlogin-ac
(which is included from/etc/pam.d/su
):So it will update
lastlog
(but notwtmp
) whensu
is used.SU(1):
The text was updated successfully, but these errors were encountered: