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 610 2012-05-26 14:03:45Z des $
50 utility offers an easy way to test PAM modules and policies from the
55 utility loads the PAM policy specified by the
57 argument, starts a PAM transaction by calling
59 then executes the primitives specified by the remaining command-line
61 Finally, it ends the transaction by calling
66 .It Cm authenticate , Cm auth
68 .Xr pam_authenticate 3 .
69 .It Cm acct_mgmt , Cm account
72 .It Cm chauthtok , Cm change
76 .Dv PAM_CHANGE_EXPIRED_AUTHTOK
78 .It Cm forcechauthtok , Cm forcechange
82 .It Cm setcred , Cm establish_cred
86 .Dv PAM_ESTABLISH_CRED
88 .It Cm open_session , Cm open
90 .Xr pam_open_session 3 .
91 .It Cm close_session , Cm close
93 .Xr pam_close_session 3 .
94 .It Cm unsetcred , Cm delete_cred
100 .It Cm listenv , Cm env
103 and print the contents of the list it returns.
106 The following options are available:
109 Enables debug messages within the OpenPAM library.
114 Specify the name of the fictitious remote host.
115 The default is to use the name of the local host.
117 Specify the name of the local host.
118 The default is to use the result of calling
121 Keep going even if one of the commands fails.
123 Disable path, ownership and permission checks on module files.
125 Disable service name validation and path, ownership and permission
126 checks on policy files.
130 flag when calling the
131 .Xr pam_authenticate 3 ,
132 .Xr pam_acct_mgmt 3 ,
135 .Xr pam_open_session 3
137 .Xr pam_close_session 3
140 Specify the name of the tty.
141 The default is to use the result of calling
144 Specify the name of the supplicant (remote user).
146 Specify the name of the principal (local user).
148 Enables debug messages from
153 Simulate a typical PAM transaction using the
156 .Bd -literal -offset indent
157 pamtest -v system auth account change setcred open close unsetcred
166 utility and this manual page were written by
167 .An Dag-Erling Sm\(/orgrav Aq des@des.no .
171 utility does not (yet) support setting and getting individual PAM
172 items or environment variables.
176 utility does not afford the user complete control over the flags
178 .Xr pam_authenticate 3 ,
179 .Xr pam_acct_mgmt 3 ,
182 .Xr pam_open_session 3
184 .Xr pam_close_session 3