I'm trying to configure the PAM modules working with
su command. I want to
su shows the "last login" information, as
I find, on
/etc/pam.d/login a PAM module called
pam_lastlog that does exactly what I want. I simply copy the line from
su configuration file, but when I run
su I didn't get the expected behavior.
This is the content of my
#%PAM-1.0 auth sufficient pam_rootok.so auth include common-auth account sufficient pam_rootok.so account include common-account password include common-password session include common-session session optional pam_lastlog.so nowtmp session optional pam_xauth.so
This is the default GNU/Linux distribution's file, only adding the
session optional pam_lastlog.so nowtmp line commented above.
Why is this not working?