2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
11 .\" Copyright 2014 Nexenta Systems, Inc.
18 .Nd PAM authentication module using cached successful authentication attempts
20 .Nm pam_timestamp.so.1
26 module caches successful tty-based authentication attempts by
27 creating user's directories and per tty timestamp files in the
28 common timestamp directory
29 .Pa /var/run/tty_timestamps .
30 Next authentication, if the timestamp file exist and not expired,
31 the user will not be asked for a password, otherwise timestamp
32 file will be deleted and user will be prompted to enter a password.
39 are used by this module.
41 is normally configured as
43 and must be used in conjunction with the modules that support
44 the UNIX authentication, which are
45 .Xr pam_authtok_get 5 ,
49 Proper authentication operation requires
58 debugging information at the
59 .Sy LOG_AUTH | LOG_DEBUG
62 Specifies the period (in miniutes) for which the timestamp file is valid.
63 The default value is 5 minutes.
66 .Bl -tag -width indent
67 .It Pa /var/run/tty_timestamps/...
68 stores timestamp directories and files
73 Timestamp file is not expired.
77 module was not able to retrieve required credentials
78 or timestamp file is expired or corrupt.
81 .Ss Example 1 Allowing su authentication
83 The following example is a
85 fragment that illustartes a default settings for allowing
88 .Bd -literal -offset indent
89 su auth required pam_unix_cred.so.1
90 su auth sufficient pam_timestamp.so.1
91 su auth requisite pam_authtok_get.so.1
92 su auth required pam_unix_auth.so.1
94 .Ss Example 2 Changing default timeout
96 The default timeout set to 10 minutes:
97 .Bd -literal -offset indent
98 su auth required pam_unix_cred.so.1
99 su auth sufficient pam_timestamp.so.1 timeout=10
100 su auth requisite pam_authtok_get.so.1
101 su auth required pam_unix_auth.so.1
103 .Sh INTERFACE STABILITY
111 .Xr pam_sm_authenticate 3PAM ,
112 .Xr pam_sm_setcred 3PAM ,