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]
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 upate 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 with
31          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

MODULE SERVICES PROVIDED

47       Only the session service is supported.
48

RETURN VALUES

50       PAM_SUCCESS
51          Everything was successfull.
52
53       PAM_SERVICE_ERR
54          Internal service module error.
55
56       PAM_USER_UNKNOWN
57          User not known.
58

EXAMPLES

60       Add the following line to /etc/pam.d/login to display the last login
61       time of an user:
62
63              session  required  pam_lastlog.so nowtmp
64
65

FILES

67       /var/log/lastlog
68          Lastlog logging file
69

SEE ALSO

71       pam.conf(5), pam.d(8), pam(8)
72

AUTHOR

74       pam_lastlog was written by Andrew G. Morgan <morgan@kernel.org>.
75
76
77
78Linux-PAM Manual                  06/09/2006                    PAM_LASTLOG(8)
Impressum