summaryrefslogtreecommitdiff
path: root/doc/man/pam.conf.5
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/pam.conf.5')
-rw-r--r--doc/man/pam.conf.566
1 files changed, 40 insertions, 26 deletions
diff --git a/doc/man/pam.conf.5 b/doc/man/pam.conf.5
index 52f90e4b..b7308e66 100644
--- a/doc/man/pam.conf.5
+++ b/doc/man/pam.conf.5
@@ -1,8 +1,11 @@
-.\" ** You probably do not want to edit this file directly **
-.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
-.\" Instead of manually editing it, you probably should edit the DocBook XML
-.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
-.TH "PAM.CONF" "5" "05/04/2006" "Linux\-PAM Manual" "Linux\-PAM Manual"
+.\" Title: pam.conf
+.\" Author:
+.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
+.\" Date: 06/02/2006
+.\" Manual: Linux\-PAM Manual
+.\" Source: Linux\-PAM Manual
+.\"
+.TH "PAM.CONF" "5" "06/02/2006" "Linux\-PAM Manual" "Linux\-PAM Manual"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
@@ -29,7 +32,8 @@ configuration file is as follows. The file is made up of a list of rules, each r
.PP
The format of each rule is a space separated collection of tokens, the first three being case\-insensitive:
.PP
-\fI service type control module\-path module\-arguments\fR
+
+\fB service type control module\-path module\-arguments\fR
.PP
The syntax of files contained in the
\fI/etc/pam.d/\fR
@@ -63,16 +67,16 @@ entries) will be associated with the given service\-application.
The
\fItype\fR
is the management group that the rule corresponds to. It is used to specify which of the management groups the subsequent module is to be associated with. Valid entries are:
-.TP
+.TP 3n
account
this module type performs non\-authentication based account management. It is typically used to restrict/permit access to a service based on the time of day, currently available system resources (maximum number of users) or perhaps the location of the applicant user \-\- 'root' login only on the console.
-.TP
+.TP 3n
auth
this module type provides two aspects of authenticating the user. Firstly, it establishes that the user is who they claim to be, by instructing the application to prompt the user for a password or other means of identification. Secondly, the module can grant group membership or other privileges through its credential granting properties.
-.TP
+.TP 3n
password
this module type is required for updating the authentication token associated with the user. Typically, there is one module for each 'challenge/response' based authentication (auth) type.
-.TP
+.TP 3n
session
this module type is associated with doing things that need to be done for the user before/after they can be given service. Such things include the logging of information concerning the opening/closing of some data exchange with a user, mounting directories, etc.
.PP
@@ -84,7 +88,7 @@ pairs.
For the simple (historical) syntax valid
\fIcontrol\fR
values are:
-.TP
+.TP 3n
required
failure of such a PAM will ultimately lead to the PAM\-API returning failure but only after the remaining
\fIstacked\fR
@@ -92,21 +96,21 @@ modules (for this
\fIservice\fR
and
\fItype\fR) have been invoked.
-.TP
+.TP 3n
requisite
like
\fIrequired\fR, however, in the case that such a module returns a failure, control is directly returned to the application. The return value is that associated with the first required or requisite module to fail. Note, this flag can be used to protect against the possibility of a user getting the opportunity to enter a password over an unsafe medium. It is conceivable that such behavior might inform an attacker of valid accounts on a system. This possibility should be weighed against the not insignificant concerns of exposing a sensitive password in a hostile environment.
-.TP
+.TP 3n
sufficient
success of such a module is enough to satisfy the authentication requirements of the stack of modules (if a prior
\fIrequired\fR
module has failed the success of this one is
\fIignored\fR). A failure of this module is not deemed as fatal to satisfying the application that this type has succeeded.
-.TP
+.TP 3n
optional
the success or failure of this module is only important if it is the only module in the stack associated with this
\fIservice\fR+\fItype\fR.
-.TP
+.TP 3n
include
include all lines of given type from the configuration file specified as an argument to this control.
.PP
@@ -114,10 +118,12 @@ For the more complicated syntax valid
\fIcontrol\fR
values have the following form:
.sp
+.RS 3n
.nf
[value1=action1 value2=action2 ...]
.fi
+.RE
.PP
Where
\fIvalueN\fR
@@ -164,49 +170,52 @@ can be: an unsigned integer,
\fIn\fR, signifying an action of 'jump over the next
\fIn\fR
modules in the stack', or take one of the following forms:
-.TP
+.TP 3n
ignore
when used with a stack of modules, the module's return status will not contribute to the return code the application obtains.
-.TP
+.TP 3n
bad
this action indicates that the return code should be thought of as indicative of the module failing. If this module is the first in the stack to fail, its status value will be used for that of the whole stack.
-.TP
+.TP 3n
die
equivalent to bad with the side effect of terminating the module stack and PAM immediately returning to the application.
-.TP
+.TP 3n
ok
this tells PAM that the administrator thinks this return code should contribute directly to the return code of the full stack of modules. In other words, if the former state of the stack would lead to a return of
\fIPAM_SUCCESS\fR, the module's return code will override this value. Note, if the former state of the stack holds some value that is indicative of a modules failure, this 'ok' value will not be used to override that value.
-.TP
+.TP 3n
done
equivalent to ok with the side effect of terminating the module stack and PAM immediately returning to the application.
-.TP
+.TP 3n
reset
clear all memory of the state of the module stack and start again with the next stacked module.
.PP
Each of the four keywords: required; requisite; sufficient; and optional, have an equivalent expression in terms of the [...] syntax. They are as follows:
-.TP
+.TP 3n
required
[success=ok new_authtok_reqd=ok ignore=ignore default=bad]
-.TP
+.TP 3n
requisite
[success=ok new_authtok_reqd=ok ignore=ignore default=die]
-.TP
+.TP 3n
sufficient
[success=done new_authtok_reqd=done default=ignore]
-.TP
+.TP 3n
optional
[success=ok new_authtok_reqd=ok default=ignore]
.PP
+
\fImodule\-path\fR
is either the full filename of the PAM to be used by the application (it begins with a '/'), or a relative pathname from the default module location:
\fI/lib/security/\fR
or
\fI/lib64/security/\fR, depending on the architecture.
.PP
+
\fImodule\-arguments\fR
are a space separated list of tokens that can be used to modify the specific behavior of the given PAM. Such arguments will be documented for each individual module. Note, if you wish to include spaces in an argument, you should surround that argument with square brackets.
.sp
+.RS 3n
.nf
squid auth required pam_mysql.so user=passwd_query passwd=mada \\
db=eminence [query=select user_name from internet_service \\
@@ -214,13 +223,16 @@ are a space separated list of tokens that can be used to modify the specific beh
service='web_proxy']
.fi
+.RE
.PP
When using this convention, you can include `[' characters inside the string, and if you wish to include a `]' character inside the string that will survive the argument parsing, you should use `\\['. In other words:
.sp
+.RS 3n
.nf
[..[..\\]..] \-\-> ..[..]..
.fi
+.RE
.PP
Any line in (one of) the configuration file(s), that is not formatted correctly, will generally tend (erring on the side of caution) to make the authentication process fail. A corresponding error is written to the system log files with a call to
\fBsyslog\fR(3).
@@ -233,9 +245,11 @@ The syntax of each file in /etc/pam.d/ is similar to that of the
\fI/etc/pam.conf\fR
file and is made up of lines of the following form:
.PP
-\fI type control module\-path module\-arguments\fR
+
+\fB type control module\-path module\-arguments\fR
.SH "SEE ALSO"
.PP
+
\fBpam\fR(3),
\fBPAM\fR(8),
\fBpam_start\fR(3)