table of contents
PAM_LASTLOG2(8) | pam_lastlog2 | PAM_LASTLOG2(8) |
NAME¶
pam_lastlog2 - PAM module to display date of last login
SYNOPSIS¶
pam_lastlog2.so [debug] [silent] [silent_if=<services>] [database=<file>]
DESCRIPTION¶
pam_lastlog2 is a PAM module to display a line of information about the last login of the user. The module uses the /var/lib/lastlog/lastlog2.db database file to store all informations.
Compared to pam_lastlog this PAM module is Y2038 safe and uses sqlite3 to store the information.
OPTIONS¶
debug
silent
silent_if=<services>
database=<file>
MODULE TYPES PROVIDED¶
The session module type is provided for displaying the information about the last login and updating the lastlog file.
RETURN VALUES¶
PAM_SUCCESS
PAM_SERVICE_ERR
PAM_USER_UNKNOWN
PAM_IGNORE
EXAMPLES¶
Add the following line to e.g. /etc/pam.d/login to display the last login time of a user:
session required pam_lastlog2.so silent_if=gdm,gdm-password
FILES¶
/var/lib/lastlog/lastlog2.db
SEE ALSO¶
AUTHOR¶
pam_lastlog2 was written by Thorsten Kukuk <kukuk@suse.com>.
02/16/2024 | lastlog2 1.3.1 |