xref: /freebsd/lib/libpam/modules/pam_self/pam_self.8 (revision f433d6afed50d2f9f8ee32c54e49e42a4f80e7b1)
1e2c8459eSDag-Erling Smørgrav.\" Copyright (c) 2001 Mark R V Murray
2e2c8459eSDag-Erling Smørgrav.\" All rights reserved.
3e2c8459eSDag-Erling Smørgrav.\" Copyright (c) 2001 Networks Associates Technologies, Inc.
4e2c8459eSDag-Erling Smørgrav.\" All rights reserved.
5e2c8459eSDag-Erling Smørgrav.\"
6e2c8459eSDag-Erling Smørgrav.\" Portions of this software were developed for the FreeBSD Project by
7e2c8459eSDag-Erling Smørgrav.\" ThinkSec AS and NAI Labs, the Security Research Division of Network
8e2c8459eSDag-Erling Smørgrav.\" Associates, Inc.  under DARPA/SPAWAR contract N66001-01-C-8035
9e2c8459eSDag-Erling Smørgrav.\" ("CBOSS"), as part of the DARPA CHATS research program.
10e2c8459eSDag-Erling Smørgrav.\"
11e2c8459eSDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without
12e2c8459eSDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions
13e2c8459eSDag-Erling Smørgrav.\" are met:
14e2c8459eSDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright
15e2c8459eSDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer.
16e2c8459eSDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright
17e2c8459eSDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer in the
18e2c8459eSDag-Erling Smørgrav.\"    documentation and/or other materials provided with the distribution.
19e2c8459eSDag-Erling Smørgrav.\" 3. The name of the author may not be used to endorse or promote
20e2c8459eSDag-Erling Smørgrav.\"    products derived from this software without specific prior written
21e2c8459eSDag-Erling Smørgrav.\"    permission.
22e2c8459eSDag-Erling Smørgrav.\"
23e2c8459eSDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
24e2c8459eSDag-Erling Smørgrav.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25e2c8459eSDag-Erling Smørgrav.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26e2c8459eSDag-Erling Smørgrav.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
27e2c8459eSDag-Erling Smørgrav.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28e2c8459eSDag-Erling Smørgrav.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29e2c8459eSDag-Erling Smørgrav.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30e2c8459eSDag-Erling Smørgrav.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31e2c8459eSDag-Erling Smørgrav.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32e2c8459eSDag-Erling Smørgrav.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33e2c8459eSDag-Erling Smørgrav.\" SUCH DAMAGE.
34e2c8459eSDag-Erling Smørgrav.\"
35e2c8459eSDag-Erling Smørgrav.\" $FreeBSD$
36e2c8459eSDag-Erling Smørgrav.\"
377f432ff8SRuslan Ermilov.Dd December 5, 2001
38e2c8459eSDag-Erling Smørgrav.Dt PAM_SELF 8
39e2c8459eSDag-Erling Smørgrav.Os
40e2c8459eSDag-Erling Smørgrav.Sh NAME
41e2c8459eSDag-Erling Smørgrav.Nm pam_self
42e2c8459eSDag-Erling Smørgrav.Nd Self PAM module
43e2c8459eSDag-Erling Smørgrav.Sh SYNOPSIS
44e2c8459eSDag-Erling Smørgrav.Op Ar service-name
45e2c8459eSDag-Erling Smørgrav.Ar module-type
46e2c8459eSDag-Erling Smørgrav.Ar control-flag
47e2c8459eSDag-Erling Smørgrav.Pa pam_self
48e2c8459eSDag-Erling Smørgrav.Op Ar options
49e2c8459eSDag-Erling Smørgrav.Sh DESCRIPTION
50e2c8459eSDag-Erling SmørgravThe Self authentication service module for PAM,
51e2c8459eSDag-Erling Smørgrav.Nm
52e2c8459eSDag-Erling Smørgravprovides functionality for only one PAM category:
53e2c8459eSDag-Erling Smørgravauthentication.
54e2c8459eSDag-Erling SmørgravIn terms of the
55e2c8459eSDag-Erling Smørgrav.Ar module-type
56e2c8459eSDag-Erling Smørgravparameter, this is the
57e2c8459eSDag-Erling Smørgrav.Dq Li auth
58e2c8459eSDag-Erling Smørgravfeature.
59e2c8459eSDag-Erling SmørgravIt also provides a null function for session management.
60e2c8459eSDag-Erling Smørgrav.Ss Self Authentication Module
61e2c8459eSDag-Erling SmørgravThe Self authentication component
62e2c8459eSDag-Erling Smørgrav.Pq Fn pam_sm_authenticate ,
63b6b756b5SDag-Erling Smørgravreturns success if and only if the target user's user ID is identical
64b6b756b5SDag-Erling Smørgravwith the current real user ID.
65f433d6afSDag-Erling SmørgravIf the current real user ID is non-zero, authentication will fail,
66f433d6afSDag-Erling Smørgravunless the
67f433d6afSDag-Erling Smørgrav.Cm even_root
68f433d6afSDag-Erling Smørgravoption was specified.
69e2c8459eSDag-Erling Smørgrav.Pp
70e2c8459eSDag-Erling SmørgravThe following options may be passed to the authentication module:
71f433d6afSDag-Erling Smørgrav.Bl -tag -width ".Cm even_root"
72e2c8459eSDag-Erling Smørgrav.It Cm debug
73e2c8459eSDag-Erling Smørgrav.Xr syslog 3
74e2c8459eSDag-Erling Smørgravdebugging information at
75e2c8459eSDag-Erling Smørgrav.Dv LOG_DEBUG
76e2c8459eSDag-Erling Smørgravlevel.
77e2c8459eSDag-Erling Smørgrav.It Cm no_warn
78e2c8459eSDag-Erling Smørgravsuppress warning messages to the user.
79e2c8459eSDag-Erling SmørgravThese messages include reasons why the user's authentication attempt
80e2c8459eSDag-Erling Smørgravwas declined.
81f433d6afSDag-Erling Smørgrav.It Cm even_root
82f433d6afSDag-Erling Smørgravdo not automatically fail if the current real user ID is 0.
83e2c8459eSDag-Erling Smørgrav.El
84e2c8459eSDag-Erling Smørgrav.Sh SEE ALSO
85e2c8459eSDag-Erling Smørgrav.Xr getuid 2 ,
86e2c8459eSDag-Erling Smørgrav.Xr pam.conf 5 ,
87e2c8459eSDag-Erling Smørgrav.Xr pam 8
88774a1007SDag-Erling Smørgrav.Sh AUTHORS
89774a1007SDag-Erling SmørgravThe
90774a1007SDag-Erling Smørgrav.Nm
91774a1007SDag-Erling Smørgravmodule and this manual page were developed for the FreeBSD Project by
92774a1007SDag-Erling SmørgravThinkSec AS and NAI Labs, the Security Research Division of Network
93774a1007SDag-Erling SmørgravAssociates, Inc.  under DARPA/SPAWAR contract N66001-01-C-8035
94774a1007SDag-Erling Smørgrav.Pq Dq CBOSS ,
95774a1007SDag-Erling Smørgravas part of the DARPA CHATS research program.
96