2 .\" Copyright (c) 2011 Dag-Erling Smørgrav
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
13 .\" 3. The name of the author may not be used to endorse or promote
14 .\" products derived from this software without specific prior written
17 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 .\" $Id: pamtest.1 741 2013-09-07 13:34:02Z des $
51 utility offers an easy way to test PAM modules and policies from the
56 utility loads the PAM policy specified by the
58 argument, starts a PAM transaction by calling
60 then executes the primitives specified by the remaining command-line
62 Finally, it ends the transaction by calling
67 .It Cm authenticate , Cm auth
69 .Xr pam_authenticate 3 .
70 .It Cm acct_mgmt , Cm account
73 .It Cm chauthtok , Cm change
77 .Dv PAM_CHANGE_EXPIRED_AUTHTOK
79 .It Cm forcechauthtok , Cm forcechange
83 .It Cm setcred , Cm establish_cred
87 .Dv PAM_ESTABLISH_CRED
89 .It Cm open_session , Cm open
91 .Xr pam_open_session 3 .
92 .It Cm close_session , Cm close
94 .Xr pam_close_session 3 .
95 .It Cm unsetcred , Cm delete_cred
101 .It Cm listenv , Cm env
104 and print the contents of the list it returns.
107 The following options are available:
110 Enables debug messages within the OpenPAM library.
115 Specify the name of the fictitious remote host.
116 The default is to use the name of the local host.
118 Specify the name of the local host.
119 The default is to use the result of calling
122 Keep going even if one of the commands fails.
124 Disable path, ownership and permission checks on module files.
126 Disable service name validation and path, ownership and permission
127 checks on policy files.
131 flag when calling the
132 .Xr pam_authenticate 3 ,
133 .Xr pam_acct_mgmt 3 ,
136 .Xr pam_open_session 3
138 .Xr pam_close_session 3
141 Set the conversation timeout (in seconds) for
142 .Xr openpam_ttyconv 3 .
144 Specify the name of the tty.
145 The default is to use the result of calling
148 Specify the name of the supplicant (remote user).
150 Specify the name of the principal (local user).
152 Enables debug messages from
157 Simulate a typical PAM transaction using the
160 .Bd -literal -offset indent
161 pamtest -v system auth account change setcred open close unsetcred
170 utility and this manual page were written by
171 .An Dag-Erling Sm\(/orgrav Aq des@des.no .
175 utility does not (yet) support setting and getting individual PAM
176 items or environment variables.
180 utility does not afford the user complete control over the flags
182 .Xr pam_authenticate 3 ,
183 .Xr pam_acct_mgmt 3 ,
186 .Xr pam_open_session 3
188 .Xr pam_close_session 3