The last login module
Synopsis

`Module Name:` `Author: Andrew G. Morgan <morgan@parc.power.net> `Maintainer:` Author `Management groups provided:` auth `Cryptographically sensitive:` `Security rating:` `Clean code base:` `System dependencies:` uses information contained in the `/var/log/lastlog` file. `Network aware:``

Overview of module

This session module maintains the `/var/log/lastlog` file. Adding an open entry when called via the `pam_open_seesion()` function and completing it when `pam_close_session()` is called. This module can also display a line of information about the last login of the user. If an application already performs these tasks, it is not necessary to use this module.

Authentication component

`Recognized arguments:` `Description:`

This module can be used to provide a ``Last login on ...'' message. when the user logs into the system from what ever application uses the PAM libraries. In addition, the module maintains the `/var/log/lastlog` file.

The behavior of this module can be modified with one of the following flags:

`````/var/log/lastlog` file. `/var/log/lastlog` file does not contain any old entries for the user, indicate that the user has never previously logged in with a ``welcome..." message.```` `Examples/suggested usage:` This module can be used to indicate that the user has new mail when they /etc/pam.conf file: # # do we have any mail? # login session optional pam_lastlog.so

Note, some applications may perform this function themselves. In such cases, this module is not necessary.