Print this page
6057 login(1) "Last login" hostname is too short
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Reviewed by: Albert Lee <trisk@omniti.com>
Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Alex Wilson <alex.wilson@joyent.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man5/pam_unix_session.5.man.txt
+++ new/usr/src/man/man5/pam_unix_session.5.man.txt
1 1 PAM_UNIX_SESSION(5) Standards, Environments, and Macros PAM_UNIX_SESSION(5)
2 2
3 3
4 4
5 5 NAME
6 6 pam_unix_session - session management PAM module for UNIX
↓ open down ↓ |
6 lines elided |
↑ open up ↑ |
7 7
8 8 SYNOPSIS
9 9 pam_unix_session.so.1
10 10
11 11
12 12 DESCRIPTION
13 13 The pam_unix_session module implements pam_sm_open_session(3PAM) and
14 14 pam_sm_close_session(3PAM).
15 15
16 16
17 - pam_sm_open_session() updates the /var/adm/lastlog file with the
18 - information contained in the PAM_USER, PAM_TTY, and PAM_RHOSTS items.
19 - pam_unix_account(5) uses this account to determine the previous time
20 - the user logged in.
17 + pam_sm_open_session() reads /var/adm/lastlog.v2 to report the user's
18 + last login time via a PAM_TEXT_INFO message as well as updates the file
19 + with information contained in the PAM_USER, PAM_TTY, and PAM_RHOSTS
20 + items. pam_unix_account(5) also uses this file to determine the
21 + previous time the user logged in.
21 22
22 23
23 24 pam_sm_close_session() is a null function.
24 25
25 26
26 27 The following options can be passed to the module:
27 28
28 29 debug
29 30 syslog(3C) debugging information at the LOG_DEBUG level
30 31
31 32
32 33 ERRORS
33 34 Upon successful completion, PAM_SUCCESS is returned. The following
34 35 error codes are returned upon error:
35 36
36 37 PAM_SESSION_ERR
37 38 Cannot make or remove the entry for the specified
38 39 session (PAM_TTY is not present).
39 40
40 -
41 41 PAM_USER_UNKNOWN
42 42 No account is present for user.
43 43
44 44
45 45 ATTRIBUTES
46 46 See attributes(5) for descriptions of the following attributes:
47 47
48 48
49 49
50 50
51 51 +--------------------+-------------------------+
52 52 | ATTRIBUTE TYPE | ATTRIBUTE VALUE |
53 53 +--------------------+-------------------------+
54 54 |Interface Stability | Evolving |
55 55 +--------------------+-------------------------+
56 56 |MT Level | MT-Safe with exceptions |
57 57 +--------------------+-------------------------+
58 58
59 59 SEE ALSO
60 60 pam(3PAM), pam_authenticate(3PAM), syslog(3C), libpam(3LIB),
61 61 pam.conf(4), nsswitch.conf(4), attributes(5), pam_authtok_check(5),
62 62 pam_authtok_get(5), pam_authtok_store(5), pam_dhkeys(5),
63 63 pam_passwd_auth(5), pam_unix_account(5),pam_unix_auth(5),
64 64
65 65 NOTES
66 66 The interfaces in libpam(3LIB) are MT-Safe only if each thread within
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
67 67 the multi-threaded application uses its own PAM handle.
68 68
69 69
70 70 The pam_unix(5) module is no longer supported. Similar functionality is
71 71 provided by pam_authtok_check(5), pam_authtok_get(5),
72 72 pam_authtok_store(5), pam_dhkeys(5), pam_passwd_auth(5),
73 73 pam_unix_account(5), pam_unix_auth(5), and pam_unix_session(5).
74 74
75 75
76 76
77 - September 9, 2004 PAM_UNIX_SESSION(5)
77 + November 9, 2015 PAM_UNIX_SESSION(5)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX