Originally Posted by Doculus
There is two ways to do it, depending on distro release, you shuld check yours, as I don not have it:
- the old method is in /etc/login.defs, comment "LASTLOG_ENAB"
- the new method is in /etc/pam.d/login, comment "session optional pam_lastlog.so"
There is no line containing "LASTLOG_ENAB" in the file login.defs
There is no line containing "session optional pam_lastlog.so" in the file login
I found the following commands that display the previous login details
These commands get the data from
how to disable the process that writes the IP addr of the person who logs in ?