I am using CentOS 6. How can I configure it so the system notifies the user, upon successful login, of the date and time of the last login? Is that possible?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
You can the pam_lastlog module to display the date of last login upon successful logon. You can refer to the pam_lastlog man page for more options, but to accomplish what you want just add the following to the /etc/pam.d/login file
|
|||
|
|
