1PAM_LASTLOG(8)                 Linux-PAM Manual                 PAM_LASTLOG(8)
2
3
4

NAME

6       pam_lastlog - PAM module to display date of last login
7

SYNOPSIS

9       pam_lastlog.so [debug] [silent] [never] [nodate] [nohost] [noterm]
10                      [nowtmp] [noupdate] [showfailed]
11

DESCRIPTION

13       pam_lastlog is a PAM module to display a line of information about the
14       last login of the user. In addition, the module maintains the
15       /var/log/lastlog file.
16
17       Some applications may perform this function themselves. In such cases,
18       this module is not necessary.
19

OPTIONS

21       debug
22           Print debug information.
23
24       silent
25           Don´t inform the user about any previous login, just update the
26           /var/log/lastlog file.
27
28       never
29           If the /var/log/lastlog file does not contain any old entries for
30           the user, indicate that the user has never previously logged in
31           with a welcome message.
32
33       nodate
34           Don´t display the date of the last login.
35
36       noterm
37           Don´t display the terminal name on which the last login was
38           attempted.
39
40       nohost
41           Don´t indicate from which host the last login was attempted.
42
43       nowtmp
44           Don´t update the wtmp entry.
45
46       noupdate
47           Don´t update any file.
48
49       showfailed
50           Display number of failed login attempts and the date of the last
51           failed attempt from btmp. The date is not displayed when nodate is
52           specified.
53

MODULE TYPES PROVIDED

55       Only the session module type is provided.
56

RETURN VALUES

58       PAM_SUCCESS
59           Everything was successful.
60
61       PAM_SERVICE_ERR
62           Internal service module error.
63
64       PAM_USER_UNKNOWN
65           User not known.
66

EXAMPLES

68       Add the following line to /etc/pam.d/login to display the last login
69       time of an user:
70
71               session  required  pam_lastlog.so nowtmp
72
73

FILES

75       /var/log/lastlog
76           Lastlog logging file
77

SEE ALSO

79       pam.conf(5), pam.d(5), pam(8)
80

AUTHOR

82       pam_lastlog was written by Andrew G. Morgan <morgan@kernel.org>.
83
84
85
86Linux-PAM Manual                  06/16/2009                    PAM_LASTLOG(8)
Impressum