diff --git a/Linux-PAM-1.0.2-SUSE-docs.tar.bz2 b/Linux-PAM-1.0.2-SUSE-docs.tar.bz2 index 85035f6..28cfd32 100644 --- a/Linux-PAM-1.0.2-SUSE-docs.tar.bz2 +++ b/Linux-PAM-1.0.2-SUSE-docs.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bd4474f01ec6fcb5e8af676b8aa5677a8784f5a027eaca0b64875d5d1dc467f3 -size 477831 +oid sha256:82a4195effbfd56af6eb3dd80de9690c1fef3fa8b9c25457037d3d591d15dcd9 +size 468691 diff --git a/Linux-PAM-docu-generated.diff b/Linux-PAM-docu-generated.diff index cb7870f..40ae346 100644 --- a/Linux-PAM-docu-generated.diff +++ b/Linux-PAM-docu-generated.diff @@ -1,23 +1,714 @@ ---- Linux-PAM-1.0.2-old/modules/pam_access/pam_access.8 2008-04-16 11:06:35.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_access/pam_access.8 2008-10-17 13:01:19.000000000 +0200 -@@ -1,11 +1,11 @@ - .\" Title: pam_access - .\" Author: +--- Linux-PAM-1.0.2-orig/doc/man/pam_getenv.3 2008-04-16 11:09:52.000000000 +0200 ++++ Linux-PAM-1.0.2/doc/man/pam_getenv.3 2009-01-20 12:00:42.000000000 +0100 +@@ -1,39 +1,202 @@ + .\" Title: pam_getenv +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" --.TH "PAM_ACCESS" "8" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" -+.TH "PAM_ACCESS" "8" "10/17/2008" "Linux-PAM Manual" "Linux-PAM Manual" +-.TH "PAM_GETENV" "3" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" ++.TH "PAM_GETENV" "3" "01/20/2009" "Linux-PAM Manual" "Linux-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -64,9 +64,13 @@ + .ad l +-.SH "NAME" +-pam_getenv - get a PAM environment variable +-.SH "SYNOPSIS" ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_getenv \- get a PAM environment variable ++.SH "Synopsis" + .sp + .ft B ++.fam C ++.ps -1 + .nf +-#include ++#include + .fi ++.fam ++.ps +1 + .ft +-.HP 23 ++.fam C ++.HP \w'const\ char\ *pam_getenv('u + .BI "const char *pam_getenv(pam_handle_t\ *" "pamh" ", const\ char\ *" "name" ");" ++.fam + .SH "DESCRIPTION" + .PP + The + \fBpam_getenv\fR + function searches the PAM environment list as associated with the handle + \fIpamh\fR +-for a string that matches the string pointed to by +-\fIname\fR\. The return values are of the form: "\fIname=value\fR"\. ++for an item that matches the string pointed to by ++\fIname\fR ++and returns the value of the environment variable\&. + .SH "RETURN VALUES" + .PP + The + \fBpam_getenv\fR +-function returns NULL on failure\. ++function returns NULL on failure\&. + .SH "SEE ALSO" + .PP + +--- Linux-PAM-1.0.2-orig/doc/man/pam_prompt.3 2008-04-16 11:09:59.000000000 +0200 ++++ Linux-PAM-1.0.2/doc/man/pam_prompt.3 2009-01-20 12:00:43.000000000 +0100 +@@ -1,53 +1,219 @@ + .\" Title: pam_prompt +-.\" Author: +-.\" Generator: DocBook XSL Stylesheets v1.73.1 +-.\" Date: 04/16/2008 ++.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 + .\" Manual: Linux-PAM Manual + .\" Source: Linux-PAM Manual ++.\" Language: English + .\" +-.TH "PAM_PROMPT" "3" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" ++.TH "PAM_PROMPT" "3" "01/20/2009" "Linux-PAM Manual" "Linux-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- + .\" disable hyphenation + .nh + .\" disable justification (adjust text to left margin only) + .ad l +-.SH "NAME" +-pam_prompt, pam_vprompt - interface to conversation function +-.SH "SYNOPSIS" ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_prompt, pam_vprompt \- interface to conversation function ++.SH "Synopsis" + .sp + .ft B ++.fam C ++.ps -1 + .nf +-#include ++#include + .fi ++.fam ++.ps +1 + .ft +-.HP 16 +-.BI "void pam_prompt(pam_handle_t\ *" "pamh" ", int\ " "style" ", char\ **" "response" ", const\ char\ *" "fmt" ", " "\.\.\." ");" +-.HP 17 ++.fam C ++.HP \w'void\ pam_prompt('u ++.BI "void pam_prompt(pam_handle_t\ *" "pamh" ", int\ " "style" ", char\ **" "response" ", const\ char\ *" "fmt" ", " "\&.\&.\&." ");" ++.fam ++.fam C ++.HP \w'void\ pam_vprompt('u + .BI "void pam_vprompt(pam_handle_t\ *" "pamh" ", int\ " "style" ", char\ **" "response" ", const\ char\ *" "fmt" ", va_list\ " "args" ");" ++.fam + .SH "DESCRIPTION" + .PP + The + \fBpam_prompt\fR +-function constructs a message from the specified format string and arguments and passes it to ++function constructs a message from the specified format string and arguments and passes it to the conversation function as set by the service\&. Upon successful return, ++\fIresponse\fR ++is set to point to a string returned from the conversation function\&. This string is allocated on heap and should be freed\&. + .SH "RETURN VALUES" + .PP + PAM_BUF_ERR .RS 4 - The group database will not be used for tokens not identified as account name\. +-Memory buffer error\. ++Memory buffer error\&. + .RE + .PP + PAM_CONV_ERR + .RS 4 +-Conversation failure\. ++Conversation failure\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-Transaction was successful created\. ++Transaction was successful created\&. + .RE + .PP + PAM_SYSTEM_ERR + .RS 4 +-System error\. ++System error\&. + .RE + .SH "SEE ALSO" + .PP +@@ -60,4 +226,4 @@ + \fBpam_prompt\fR + and + \fBpam_vprompt\fR +-functions are Linux\-PAM extensions\. ++functions are Linux\-PAM extensions\&. +--- Linux-PAM-1.0.2-orig/modules/pam_access/pam_access.8 2008-04-16 11:06:35.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_access/pam_access.8 2009-01-20 11:58:09.000000000 +0100 +@@ -1,103 +1,265 @@ + .\" Title: pam_access +-.\" Author: +-.\" Generator: DocBook XSL Stylesheets v1.73.1 +-.\" Date: 04/16/2008 ++.\" Author: [see the "AUTHORS" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 + .\" Manual: Linux-PAM Manual + .\" Source: Linux-PAM Manual ++.\" Language: English + .\" +-.TH "PAM_ACCESS" "8" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" ++.TH "PAM_ACCESS" "8" "01/20/2009" "Linux-PAM Manual" "Linux-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- + .\" disable hyphenation + .nh + .\" disable justification (adjust text to left margin only) + .ad l +-.SH "NAME" +-pam_access - PAM module for logdaemon style login access control +-.SH "SYNOPSIS" +-.HP 14 +-\fBpam_access\.so\fR [debug] [nodefgroup] [noaudit] [accessfile=\fIfile\fR] [fieldsep=\fIsep\fR] [listsep=\fIsep\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_access \- PAM module for logdaemon style login access control ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_access\&.so\fR\ 'u ++\fBpam_access\&.so\fR [debug] [nodefgroup] [noaudit] [accessfile=\fIfile\fR] [fieldsep=\fIsep\fR] [listsep=\fIsep\fR] ++.fam + .SH "DESCRIPTION" + .PP +-The pam_access PAM module is mainly for access management\. It provides logdaemon style login access control based on login names, host or domain names, internet addresses or network numbers, or on terminal line names in case of non\-networked logins\. ++The pam_access PAM module is mainly for access management\&. It provides logdaemon style login access control based on login names, host or domain names, internet addresses or network numbers, or on terminal line names in case of non\-networked logins\&. + .PP + By default rules for access management are taken from config file +-\fI/etc/security/access\.conf\fR +-if you don\'t specify another file\. ++\FC/etc/security/access\&.conf\F[] ++if you don\'t specify another file\&. + .PP +-If Linux PAM is compiled with audit support the module will report when it denies access based on origin (host or tty)\. ++If Linux PAM is compiled with audit support the module will report when it denies access based on origin (host or tty)\&. + .SH "OPTIONS" + .PP +-\fBaccessfile=\fR\fB\fI/path/to/access\.conf\fR\fR ++\fBaccessfile=\fR\fB\fI/path/to/access\&.conf\fR\fR + .RS 4 + Indicate an alternative +-\fIaccess\.conf\fR +-style configuration file to override the default\. This can be useful when different services need different access lists\. ++\FCaccess\&.conf\F[] ++style configuration file to override the default\&. This can be useful when different services need different access lists\&. + .RE + .PP + \fBdebug\fR + .RS 4 + A lot of debug informations are printed with +-\fBsyslog\fR(3)\. ++\fBsyslog\fR(3)\&. + .RE + .PP + \fBnoaudit\fR + .RS 4 +-Do not report logins from disallowed hosts and ttys to the audit subsystem\. ++Do not report logins from disallowed hosts and ttys to the audit subsystem\&. + .RE + .PP + \fBfieldsep=\fR\fB\fIseparators\fR\fR + .RS 4 +-This option modifies the field separator character that pam_access will recognize when parsing the access configuration file\. For example: ++This option modifies the field separator character that pam_access will recognize when parsing the access configuration file\&. For example: + \fBfieldsep=|\fR +-will cause the default `:\' character to be treated as part of a field value and `|\' becomes the field separator\. Doing this may be useful in conjuction with a system that wants to use pam_access with X based applications, since the ++will cause the default `:\' character to be treated as part of a field value and `|\' becomes the field separator\&. Doing this may be useful in conjuction with a system that wants to use pam_access with X based applications, since the + \fBPAM_TTY\fR +-item is likely to be of the form "hostname:0" which includes a `:\' character in its value\. But you should not need this\. ++item is likely to be of the form "hostname:0" which includes a `:\' character in its value\&. But you should not need this\&. + .RE + .PP + \fBlistsep=\fR\fB\fIseparators\fR\fR + .RS 4 +-This option modifies the list separator character that pam_access will recognize when parsing the access configuration file\. For example: ++This option modifies the list separator character that pam_access will recognize when parsing the access configuration file\&. For example: + \fBlistsep=,\fR +-will cause the default ` \' (space) and `\et\' (tab) characters to be treated as part of a list element value and `,\' becomes the only list element separator\. Doing this may be useful on a system with group information obtained from a Windows domain, where the default built\-in groups "Domain Users", "Domain Admins" contain a space\. ++will cause the default ` \' (space) and `\et\' (tab) characters to be treated as part of a list element value and `,\' becomes the only list element separator\&. Doing this may be useful on a system with group information obtained from a Windows domain, where the default built\-in groups "Domain Users", "Domain Admins" contain a space\&. + .RE + .PP + \fBnodefgroup\fR + .RS 4 +-The group database will not be used for tokens not identified as account name\. ++The group database will not be used for tokens not identified as account name\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -27,38 +718,296 @@ +\fBaccount\fR, +\fBpassword\fR +and -+\fBsession\fR) are provided\. ++\fBsession\fR) are provided\&. .SH "RETURN VALUES" .PP PAM_SUCCESS -@@ -105,7 +109,7 @@ + .RS 4 +-Access was granted\. ++Access was granted\&. + .RE + .PP + PAM_PERM_DENIED + .RS 4 +-Access was not granted\. ++Access was not granted\&. + .RE + .PP + PAM_IGNORE + .RS 4 + + \fBpam_setcred\fR +-was called which does nothing\. ++was called which does nothing\&. + .RE + .PP + PAM_ABORT + .RS 4 +-Not all relevant data or options could be gotten\. ++Not all relevant data or options could be gotten\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-The user is not known to the system\. ++The user is not known to the system\&. + .RE + .SH "FILES" + .PP +-\fI/etc/security/access\.conf\fR ++\FC/etc/security/access\&.conf\F[] + .RS 4 + Default configuration file + .RE +@@ -105,8 +267,8 @@ .PP \fBaccess.conf\fR(5), -\fBpam.d\fR(8), +-\fBpam\fR(8)\. +\fBpam.d\fR(5), - \fBpam\fR(8)\. ++\fBpam\fR(8)\&. .SH "AUTHORS" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_cracklib/pam_cracklib.8 Linux-PAM-1.0.2/modules/pam_cracklib/pam_cracklib.8 ---- Linux-PAM-1.0.2-old/modules/pam_cracklib/pam_cracklib.8 2008-04-16 11:06:38.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_cracklib/pam_cracklib.8 2008-10-17 13:01:23.000000000 +0200 -@@ -1,11 +1,11 @@ +-The logdaemon style login access control scheme was designed and implemented by Wietse Venema\. The pam_access PAM module was developed by Alexei Nogin \. The IPv6 support and the network(address) / netmask feature was developed and provided by Mike Becher \. ++The logdaemon style login access control scheme was designed and implemented by Wietse Venema\&. The pam_access PAM module was developed by Alexei Nogin \&. The IPv6 support and the network(address) / netmask feature was developed and provided by Mike Becher \&. +--- Linux-PAM-1.0.2-orig/modules/pam_cracklib/pam_cracklib.8 2008-04-16 11:06:38.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_cracklib/pam_cracklib.8 2009-01-20 11:58:12.000000000 +0100 +@@ -1,33 +1,191 @@ .\" Title: pam_cracklib - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_CRACKLIB" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_CRACKLIB" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_CRACKLIB" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -69,12 +69,6 @@ + .ad l +-.SH "NAME" +-pam_cracklib - PAM module to check the password against dictionary words +-.SH "SYNOPSIS" +-.HP 16 +-\fBpam_cracklib\.so\fR [\fI\.\.\.\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_cracklib \- PAM module to check the password against dictionary words ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_cracklib\&.so\fR\ 'u ++\fBpam_cracklib\&.so\fR [\fI\&.\&.\&.\fR] ++.fam + .SH "DESCRIPTION" + .PP + This module can be plugged into the + \fIpassword\fR +-stack of a given application to provide some plug\-in strength\-checking for passwords\. ++stack of a given application to provide some plug\-in strength\-checking for passwords\&. + .PP +-The action of this module is to prompt the user for a password and check its strength against a system dictionary and a set of rules for identifying poor choices\. ++The action of this module is to prompt the user for a password and check its strength against a system dictionary and a set of rules for identifying poor choices\&. + .PP +-The first action is to prompt for a single password, check its strength and then, if it is considered strong, prompt for the password a second time (to verify that it was typed correctly on the first occasion)\. All being well, the password is passed on to subsequent modules to be installed as the new authentication token\. ++The first action is to prompt for a single password, check its strength and then, if it is considered strong, prompt for the password a second time (to verify that it was typed correctly on the first occasion)\&. All being well, the password is passed on to subsequent modules to be installed as the new authentication token\&. + .PP + The strength checks works in the following manner: at first the + \fBCracklib\fR +-routine is called to check if the password is part of a dictionary; if this is not the case an additional set of strength checks is done\. These checks are: ++routine is called to check if the password is part of a dictionary; if this is not the case an additional set of strength checks is done\&. These checks are: + .PP + Palindrome + .RS 4 +@@ -43,15 +201,15 @@ + .RS 4 + Is the new password too much like the old one? This is primarily controlled by one argument, + \fBdifok\fR +-which is a number of characters that if different between the old and new are enough to accept the new password, this defaults to 10 or 1/2 the size of the new password whichever is smaller\. ++which is a number of characters that if different between the old and new are enough to accept the new password, this defaults to 10 or 1/2 the size of the new password whichever is smaller\&. + .sp + To avoid the lockup associated with trying to change a long and complicated password, + \fBdifignore\fR +-is available\. This argument can be used to specify the minimum length a new password needs to be before the ++is available\&. This argument can be used to specify the minimum length a new password needs to be before the + \fBdifok\fR +-value is ignored\. The default value for ++value is ignored\&. The default value for + \fBdifignore\fR +-is 23\. ++is 23\&. + .RE + .PP + Simple +@@ -61,7 +219,7 @@ + \fBdcredit\fR, + \fBucredit\fR, + \fBlcredit\fR, and +-\fBocredit\fR\. See the section on the arguments for the details of how these work and there defaults\. ++\fBocredit\fR\&. See the section on the arguments for the details of how these work and there defaults\&. + .RE + .PP + Rotated +@@ -69,13 +227,7 @@ Is the new password a rotated version of the old password? .RE .PP @@ -68,21 +1017,174 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_cracklib/pam_cracklib.8 Linux-PAM-1.0. -\fI/etc/security/opasswd\fR\. -.RE -.PP - This module with no arguments will work well for standard unix password encryption\. With md5 encryption, passwords can be longer than 8 characters and the default settings for this module can make it hard for the user to choose a satisfactory new password\. Notably, the requirement that the new password contain no more than 1/2 of the characters in the old password becomes a non\-trivial constraint\. For example, an old password of the form "the quick brown fox jumped over the lazy dogs" would be difficult to change\.\.\. In addition, the default action is to allow passwords as small as 5 characters in length\. For a md5 systems it can be a good idea to increase the required minimum size of a password\. One can then allow more credit for different kinds of characters but accept that the new password may share most of these characters with the old password\. +-This module with no arguments will work well for standard unix password encryption\. With md5 encryption, passwords can be longer than 8 characters and the default settings for this module can make it hard for the user to choose a satisfactory new password\. Notably, the requirement that the new password contain no more than 1/2 of the characters in the old password becomes a non\-trivial constraint\. For example, an old password of the form "the quick brown fox jumped over the lazy dogs" would be difficult to change\.\.\. In addition, the default action is to allow passwords as small as 5 characters in length\. For a md5 systems it can be a good idea to increase the required minimum size of a password\. One can then allow more credit for different kinds of characters but accept that the new password may share most of these characters with the old password\. ++This module with no arguments will work well for standard unix password encryption\&. With md5 encryption, passwords can be longer than 8 characters and the default settings for this module can make it hard for the user to choose a satisfactory new password\&. Notably, the requirement that the new password contain no more than 1/2 of the characters in the old password becomes a non\-trivial constraint\&. For example, an old password of the form "the quick brown fox jumped over the lazy dogs" would be difficult to change\&.\&.\&. In addition, the default action is to allow passwords as small as 5 characters in length\&. For a md5 systems it can be a good idea to increase the required minimum size of a password\&. One can then allow more credit for different kinds of characters but accept that the new password may share most of these characters with the old password\&. .SH "OPTIONS" .PP -@@ -157,7 +151,7 @@ + .PP +@@ -83,21 +235,21 @@ + .RS 4 + This option makes the module write information to + \fBsyslog\fR(3) +-indicating the behavior of the module (this option does not write password information to the log file)\. ++indicating the behavior of the module (this option does not write password information to the log file)\&. + .RE + .PP + \fBtype=\fR\fB\fIXXX\fR\fR + .RS 4 +-The default action is for the module to use the following prompts when requesting passwords: "New UNIX password: " and "Retype UNIX password: "\. The default word ++The default action is for the module to use the following prompts when requesting passwords: "New UNIX password: " and "Retype UNIX password: "\&. The default word + \fIUNIX\fR +-can be replaced with this option\. ++can be replaced with this option\&. + .RE + .PP + \fBretry=\fR\fB\fIN\fR\fR + .RS 4 + Prompt user at most + \fIN\fR +-times before returning with error\. The default is ++times before returning with error\&. The default is + \fI1\fR + .RE + .PP +@@ -105,98 +257,98 @@ + .RS 4 + This argument will change the default of + \fI5\fR +-for the number of characters in the new password that must not be present in the old password\. In addition, if 1/2 of the characters in the new password are different then the new password will be accepted anyway\. ++for the number of characters in the new password that must not be present in the old password\&. In addition, if 1/2 of the characters in the new password are different then the new password will be accepted anyway\&. + .RE + .PP + \fBdifignore=\fR\fB\fIN\fR\fR + .RS 4 +-How many characters should the password have before difok will be ignored\. The default is +-\fI23\fR\. ++How many characters should the password have before difok will be ignored\&. The default is ++\fI23\fR\&. + .RE + .PP + \fBminlen=\fR\fB\fIN\fR\fR + .RS 4 +-The minimum acceptable size for the new password (plus one if credits are not disabled which is the default)\. In addition to the number of characters in the new password, credit (of +1 in length) is given for each different kind of character (\fIother\fR, ++The minimum acceptable size for the new password (plus one if credits are not disabled which is the default)\&. In addition to the number of characters in the new password, credit (of +1 in length) is given for each different kind of character (\fIother\fR, + \fIupper\fR, + \fIlower\fR + and +-\fIdigit\fR)\. The default for this parameter is ++\fIdigit\fR)\&. The default for this parameter is + \fI9\fR +-which is good for a old style UNIX password all of the same type of character but may be too low to exploit the added security of a md5 system\. Note that there is a pair of length limits in ++which is good for a old style UNIX password all of the same type of character but may be too low to exploit the added security of a md5 system\&. Note that there is a pair of length limits in + \fICracklib\fR + itself, a "way too short" limit of 4 which is hard coded in and a defined limit (6) that will be checked without reference to +-\fBminlen\fR\. If you want to allow passwords as short as 5 characters you should not use this module\. ++\fBminlen\fR\&. If you want to allow passwords as short as 5 characters you should not use this module\&. + .RE + .PP + \fBdcredit=\fR\fB\fIN\fR\fR + .RS 4 +-(N >= 0) This is the maximum credit for having digits in the new password\. If you have less than or ++(N >= 0) This is the maximum credit for having digits in the new password\&. If you have less than or + \fIN\fR + digits, each digit will count +1 towards meeting the current \fBminlen\fR - less than 10\. +-value\. The default for ++value\&. The default for + \fBdcredit\fR + is 1 which is the recommended value for + \fBminlen\fR +-less than 10\. ++less than 10\&. + .sp +-(N < 0) This is the minimum number of digits that must be met for a new password\. ++(N < 0) This is the minimum number of digits that must be met for a new password\&. + .RE + .PP + \fBucredit=\fR\fB\fIN\fR\fR + .RS 4 +-(N >= 0) This is the maximum credit for having upper case letters in the new password\. If you have less than or ++(N >= 0) This is the maximum credit for having upper case letters in the new password\&. If you have less than or + \fIN\fR + upper case letters each letter will count +1 towards meeting the current + \fBminlen\fR +-value\. The default for ++value\&. The default for + \fBucredit\fR + is + \fI1\fR + which is the recommended value for + \fBminlen\fR +-less than 10\. ++less than 10\&. .sp -(N > 0) This is the minimum number of upper case letters that must be met for a new password\. -+(N < 0) This is the minimum number of upper case letters that must be met for a new password\. ++(N < 0) This is the minimum number of upper case letters that must be met for a new password\&. .RE .PP \fBlcredit=\fR\fB\fIN\fR\fR -@@ -212,11 +206,11 @@ .RS 4 - Path to the cracklib dictionaries\. +-(N >= 0) This is the maximum credit for having lower case letters in the new password\. If you have less than or ++(N >= 0) This is the maximum credit for having lower case letters in the new password\&. If you have less than or + \fIN\fR + lower case letters, each letter will count +1 towards meeting the current + \fBminlen\fR +-value\. The default for ++value\&. The default for + \fBlcredit\fR + is 1 which is the recommended value for + \fBminlen\fR +-less than 10\. ++less than 10\&. + .sp +-(N < 0) This is the minimum number of lower case letters that must be met for a new password\. ++(N < 0) This is the minimum number of lower case letters that must be met for a new password\&. + .RE + .PP + \fBocredit=\fR\fB\fIN\fR\fR + .RS 4 +-(N >= 0) This is the maximum credit for having other characters in the new password\. If you have less than or ++(N >= 0) This is the maximum credit for having other characters in the new password\&. If you have less than or + \fIN\fR + other characters, each character will count +1 towards meeting the current + \fBminlen\fR +-value\. The default for ++value\&. The default for + \fBocredit\fR + is 1 which is the recommended value for + \fBminlen\fR +-less than 10\. ++less than 10\&. + .sp +-(N < 0) This is the minimum number of other characters that must be met for a new password\. ++(N < 0) This is the minimum number of other characters that must be met for a new password\&. + .RE + .PP + \fBminclass=\fR\fB\fIN\fR\fR + .RS 4 +-The minimum number of required classes of characters for the new password\. The default number is zero\. The four classes are digits, upper and lower letters and other characters\. The difference to the ++The minimum number of required classes of characters for the new password\&. The default number is zero\&. The four classes are digits, upper and lower letters and other characters\&. The difference to the + \fBcredit\fR +-check is that a specific class if of characters is not required\. Instead ++check is that a specific class if of characters is not required\&. Instead + \fIN\fR +-out of four of the classes are required\. ++out of four of the classes are required\&. + .RE + .PP + \fBuse_authtok\fR +@@ -205,105 +357,159 @@ + \fIforce\fR + the module to not prompt the user for a new password but use the one provided by the previously stacked + \fIpassword\fR +-module\. ++module\&. + .RE + .PP + \fBdictpath=\fR\fB\fI/path/to/dict\fR\fR + .RS 4 +-Path to the cracklib dictionaries\. ++Path to the cracklib dictionaries\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -91,11 +1193,160 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_cracklib/pam_cracklib.8 Linux-PAM-1.0. +Only the \fBpassword\fR -service is supported\. -+module type is provided\. ++module type is provided\&. .SH "RETURN VALUES" .PP .PP -@@ -302,7 +296,7 @@ + PAM_SUCCESS + .RS 4 +-The new password passes all checks\. ++The new password passes all checks\&. + .RE + .PP + PAM_AUTHTOK_ERR + .RS 4 +-No new password was entered, the username could not be determined or the new password fails the strength checks\. ++No new password was entered, the username could not be determined or the new password fails the strength checks\&. + .RE + .PP + PAM_AUTHTOK_RECOVERY_ERR + .RS 4 +-The old password was not supplied by a previous stacked module or got not requested from the user\. The first error can happen if ++The old password was not supplied by a previous stacked module or got not requested from the user\&. The first error can happen if + \fBuse_authtok\fR +-is specified\. ++is specified\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-A internal error occured\. ++A internal error occured\&. + .RE + .SH "EXAMPLES" + .PP + For an example of the use of this module, we show how it may be stacked with the password component of + \fBpam_unix\fR(8) + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ + # +-# These lines stack two password type modules\. In this example the +-# user is given 3 opportunities to enter a strong password\. The ++# These lines stack two password type modules\&. In this example the ++# user is given 3 opportunities to enter a strong password\&. The + # "use_authtok" argument ensures that the pam_unix module does not + # prompt for a password, but instead uses the one provided by +-# pam_cracklib\. ++# pam_cracklib\&. + # +-passwd password required pam_cracklib\.so retry=3 +-passwd password required pam_unix\.so use_authtok ++passwd password required pam_cracklib\&.so retry=3 ++passwd password required pam_unix\&.so use_authtok + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .PP + Another example (in the +-\fI/etc/pam\.d/passwd\fR ++\FC/etc/pam\&.d/passwd\F[] + format) is for the case that you want to use md5 password encryption: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-#%PAM\-1\.0 ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++#%PAM\-1\&.0 + # + # These lines allow a md5 systems to support passwords of at least 14 + # bytes with extra credit of 2 for digits and 2 for others the new + # password must have at least three bytes that are not present in the + # old password + # +-password required pam_cracklib\.so \e ++password required pam_cracklib\&.so \e + difok=3 minlen=15 dcredit= 2 ocredit=2 +-password required pam_unix\.so use_authtok nullok md5 ++password required pam_unix\&.so use_authtok nullok md5 + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .PP + And here is another example in case you don\'t want to use credits: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-#%PAM\-1\.0 ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++#%PAM\-1\&.0 + # + # These lines require the user to select a password with a minimum + # length of 8 and with at least 1 digit number, 1 upper case letter, + # and 1 other character + # +-password required pam_cracklib\.so \e ++password required pam_cracklib\&.so \e + dcredit=\-1 ucredit=\-1 ocredit=\-1 lcredit=0 minlen=8 +-password required pam_unix\.so use_authtok nullok md5 ++password required pam_unix\&.so use_authtok nullok md5 + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -104,9 +1355,10 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_cracklib/pam_cracklib.8 Linux-PAM-1.0. \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_cracklib/README Linux-PAM-1.0.2/modules/pam_cracklib/README ---- Linux-PAM-1.0.2-old/modules/pam_cracklib/README 2008-04-16 11:06:39.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_cracklib/README 2008-10-17 13:01:24.000000000 +0200 +-pam_cracklib was written by Cristian Gafton ++pam_cracklib was written by Cristian Gafton +--- Linux-PAM-1.0.2-orig/modules/pam_cracklib/README 2008-04-16 11:06:39.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_cracklib/README 2009-01-20 11:58:14.000000000 +0100 @@ -51,11 +51,6 @@ Is the new password a rotated version of the old password? @@ -128,29 +1380,267 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_cracklib/README Linux-PAM-1.0.2/module for a new password. lcredit=N -diff -urN Linux-PAM-1.0.2-old/modules/pam_debug/pam_debug.8 Linux-PAM-1.0.2/modules/pam_debug/pam_debug.8 ---- Linux-PAM-1.0.2-old/modules/pam_debug/pam_debug.8 2008-04-16 11:06:41.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_debug/pam_debug.8 2008-10-17 13:01:26.000000000 +0200 -@@ -1,11 +1,11 @@ +--- Linux-PAM-1.0.2-orig/modules/pam_debug/pam_debug.8 2008-04-16 11:06:41.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_debug/pam_debug.8 2009-01-20 11:58:16.000000000 +0100 +@@ -1,23 +1,181 @@ .\" Title: pam_debug - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_DEBUG" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_DEBUG" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_DEBUG" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -87,15 +87,13 @@ + .ad l +-.SH "NAME" +-pam_debug - PAM module to debug the PAM stack +-.SH "SYNOPSIS" +-.HP 13 +-\fBpam_debug\.so\fR [auth=\fIvalue\fR] [cred=\fIvalue\fR] [acct=\fIvalue\fR] [prechauthtok=\fIvalue\fR] [chauthtok=\fIvalue\fR] [auth=\fIvalue\fR] [open_session=\fIvalue\fR] [close_session=\fIvalue\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_debug \- PAM module to debug the PAM stack ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_debug\&.so\fR\ 'u ++\fBpam_debug\&.so\fR [auth=\fIvalue\fR] [cred=\fIvalue\fR] [acct=\fIvalue\fR] [prechauthtok=\fIvalue\fR] [chauthtok=\fIvalue\fR] [auth=\fIvalue\fR] [open_session=\fIvalue\fR] [close_session=\fIvalue\fR] ++.fam + .SH "DESCRIPTION" + .PP +-The pam_debug PAM module is intended as a debugging aide for determining how the PAM stack is operating\. This module returns what its module arguments tell it to return\. ++The pam_debug PAM module is intended as a debugging aide for determining how the PAM stack is operating\&. This module returns what its module arguments tell it to return\&. + .SH "OPTIONS" + .PP + \fBauth=\fR\fB\fIvalue\fR\fR +@@ -25,7 +183,7 @@ + The + \fBpam_sm_authenticate\fR(3) + function will return +-\fIvalue\fR\. ++\fIvalue\fR\&. + .RE + .PP + \fBcred=\fR\fB\fIvalue\fR\fR +@@ -33,7 +191,7 @@ + The + \fBpam_sm_setcred\fR(3) + function will return +-\fIvalue\fR\. ++\fIvalue\fR\&. + .RE + .PP + \fBacct=\fR\fB\fIvalue\fR\fR +@@ -41,7 +199,7 @@ + The + \fBpam_sm_acct_mgmt\fR(3) + function will return +-\fIvalue\fR\. ++\fIvalue\fR\&. + .RE + .PP + \fBprechauthtok=\fR\fB\fIvalue\fR\fR +@@ -52,7 +210,7 @@ + \fIvalue\fR + if the + \fIPAM_PRELIM_CHECK\fR +-flag is set\. ++flag is set\&. + .RE + .PP + \fBchauthtok=\fR\fB\fIvalue\fR\fR +@@ -65,7 +223,7 @@ + \fIPAM_PRELIM_CHECK\fR + flag is + \fBnot\fR +-set\. ++set\&. + .RE + .PP + \fBopen_session=\fR\fB\fIvalue\fR\fR +@@ -73,7 +231,7 @@ + The + \fBpam_sm_open_session\fR(3) + function will return +-\fIvalue\fR\. ++\fIvalue\fR\&. + .RE + .PP + \fBclose_session=\fR\fB\fIvalue\fR\fR +@@ -81,46 +239,62 @@ + The + \fBpam_sm_close_session\fR(3) + function will return +-\fIvalue\fR\. ++\fIvalue\fR\&. + .RE + .PP Where \fIvalue\fR - can be one of: success, open_err, symbol_err, service_err, system_err, buf_err, perm_denied, auth_err, cred_insufficient, authinfo_unavail, user_unknown, maxtries, new_authtok_reqd, acct_expired, session_err, cred_unavail, cred_expired, cred_err, no_module_data, conv_err, authtok_err, authtok_recover_err, authtok_lock_busy, authtok_disable_aging, try_again, ignore, abort, authtok_expired, module_unknown, bad_item, conv_again, incomplete\. +-can be one of: success, open_err, symbol_err, service_err, system_err, buf_err, perm_denied, auth_err, cred_insufficient, authinfo_unavail, user_unknown, maxtries, new_authtok_reqd, acct_expired, session_err, cred_unavail, cred_expired, cred_err, no_module_data, conv_err, authtok_err, authtok_recover_err, authtok_lock_busy, authtok_disable_aging, try_again, ignore, abort, authtok_expired, module_unknown, bad_item, conv_again, incomplete\. -.SH "MODULE SERVICES PROVIDED" ++can be one of: success, open_err, symbol_err, service_err, system_err, buf_err, perm_denied, auth_err, cred_insufficient, authinfo_unavail, user_unknown, maxtries, new_authtok_reqd, acct_expired, session_err, cred_unavail, cred_expired, cred_err, no_module_data, conv_err, authtok_err, authtok_recover_err, authtok_lock_busy, authtok_disable_aging, try_again, ignore, abort, authtok_expired, module_unknown, bad_item, conv_again, incomplete\&. +.SH "MODULE TYPES PROVIDED" .PP -The services @@ -161,11 +1651,52 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_debug/pam_debug.8 Linux-PAM-1.0.2/modu and -\fBsession\fR -are supported\. -+\fBsession\fR) are provided\. ++\fBsession\fR) are provided\&. .SH "RETURN VALUES" .PP PAM_SUCCESS -@@ -119,7 +117,7 @@ + .RS 4 +-Default return code if no other value was specified, else specified return value\. ++Default return code if no other value was specified, else specified return value\&. + .RE + .SH "EXAMPLES" + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-auth requisite pam_permit\.so +-auth [success=2 default=ok] pam_debug\.so auth=perm_denied cred=success +-auth [default=reset] pam_debug\.so auth=success cred=perm_denied +-auth [success=done default=die] pam_debug\.so +-auth optional pam_debug\.so auth=perm_denied cred=perm_denied +-auth sufficient pam_debug\.so auth=success cred=success ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++auth requisite pam_permit\&.so ++auth [success=2 default=ok] pam_debug\&.so auth=perm_denied cred=success ++auth [default=reset] pam_debug\&.so auth=success cred=perm_denied ++auth [success=done default=die] pam_debug\&.so ++auth optional pam_debug\&.so auth=perm_denied cred=perm_denied ++auth sufficient pam_debug\&.so auth=success cred=success + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -174,29 +1705,206 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_debug/pam_debug.8 Linux-PAM-1.0.2/modu \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_deny/pam_deny.8 Linux-PAM-1.0.2/modules/pam_deny/pam_deny.8 ---- Linux-PAM-1.0.2-old/modules/pam_deny/pam_deny.8 2008-04-16 11:06:44.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_deny/pam_deny.8 2008-10-17 13:01:29.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_debug was written by Andrew G\. Morgan \. ++pam_debug was written by Andrew G\&. Morgan \&. +--- Linux-PAM-1.0.2-orig/modules/pam_deny/pam_deny.8 2008-04-16 11:06:44.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_deny/pam_deny.8 2009-01-20 11:58:19.000000000 +0100 +@@ -1,82 +1,258 @@ .\" Title: pam_deny - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_DENY" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_DENY" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_DENY" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -22,13 +22,13 @@ + .ad l +-.SH "NAME" +-pam_deny - The locking-out PAM module +-.SH "SYNOPSIS" +-.HP 12 +-\fBpam_deny\.so\fR ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_deny \- The locking\-out PAM module ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_deny\&.so\fR\ 'u ++\fBpam_deny\&.so\fR ++.fam + .SH "DESCRIPTION" + .PP +-This module can be used to deny access\. It always indicates a failure to the application through the PAM framework\. It might be suitable for using for default (the +-\fIOTHER\fR) entries\. ++This module can be used to deny access\&. It always indicates a failure to the application through the PAM framework\&. It might be suitable for using for default (the ++\fIOTHER\fR) entries\&. .SH "OPTIONS" .PP - This module does not recognise any options\. +-This module does not recognise any options\. -.SH "MODULE SERVICES PROVIDED" ++This module does not recognise any options\&. +.SH "MODULE TYPES PROVIDED" .PP -All services (\fBaccount\fR, @@ -205,11 +1913,83 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_deny/pam_deny.8 Linux-PAM-1.0.2/module \fBpassword\fR and -\fBsession\fR) are supported\. -+\fBsession\fR) are provided\. ++\fBsession\fR) are provided\&. .SH "RETURN VALUES" .PP .PP -@@ -75,7 +75,7 @@ + PAM_AUTH_ERR + .RS 4 +-This is returned by the account and auth services\. ++This is returned by the account and auth services\&. + .RE + .PP + PAM_CRED_ERR + .RS 4 +-This is returned by the setcred function\. ++This is returned by the setcred function\&. + .RE + .PP + PAM_AUTHTOK_ERR + .RS 4 +-This is returned by the password service\. ++This is returned by the password service\&. + .RE + .PP + PAM_SESSION_ERR + .RS 4 +-This is returned by the session service\. ++This is returned by the session service\&. + .RE + .SH "EXAMPLES" + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-#%PAM\-1\.0 ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++#%PAM\-1\&.0 + # + # If we don\'t have config entries for a service, the +-# OTHER entries are used\. To be secure, warn and deny +-# access to everything\. +-other auth required pam_warn\.so +-other auth required pam_deny\.so +-other account required pam_warn\.so +-other account required pam_deny\.so +-other password required pam_warn\.so +-other password required pam_deny\.so +-other session required pam_warn\.so +-other session required pam_deny\.so ++# OTHER entries are used\&. To be secure, warn and deny ++# access to everything\&. ++other auth required pam_warn\&.so ++other auth required pam_deny\&.so ++other account required pam_warn\&.so ++other account required pam_deny\&.so ++other password required pam_warn\&.so ++other password required pam_deny\&.so ++other session required pam_warn\&.so ++other session required pam_deny\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -218,27 +1998,255 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_deny/pam_deny.8 Linux-PAM-1.0.2/module \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_echo/pam_echo.8 Linux-PAM-1.0.2/modules/pam_echo/pam_echo.8 ---- Linux-PAM-1.0.2-old/modules/pam_echo/pam_echo.8 2008-04-16 11:06:47.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_echo/pam_echo.8 2008-10-17 13:01:31.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_deny was written by Andrew G\. Morgan ++pam_deny was written by Andrew G\&. Morgan +--- Linux-PAM-1.0.2-orig/modules/pam_echo/pam_echo.8 2008-04-16 11:06:47.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_echo/pam_echo.8 2009-01-20 11:58:22.000000000 +0100 +@@ -1,108 +1,288 @@ .\" Title: pam_echo - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_ECHO" "8" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" -+.TH "PAM_ECHO" "8" "10/17/2008" "Linux-PAM Manual" "Linux-PAM Manual" ++.TH "PAM_ECHO" "8" "01/20/2009" "Linux-PAM Manual" "Linux-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -66,9 +66,13 @@ - \fI/path/message\fR - will be printed with the PAM conversion function as PAM_TEXT_INFO\. + .ad l +-.SH "NAME" +-pam_echo - PAM module for printing text messages +-.SH "SYNOPSIS" +-.HP 12 +-\fBpam_echo\.so\fR [file=\fI/path/message\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_echo \- PAM module for printing text messages ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_echo\&.so\fR\ 'u ++\fBpam_echo\&.so\fR [file=\fI/path/message\fR] ++.fam + .SH "DESCRIPTION" + .PP + The + \fIpam_echo\fR +-PAM module is for printing text messages to inform user about special things\. Sequences starting with the ++PAM module is for printing text messages to inform user about special things\&. Sequences starting with the + \fI%\fR + character are interpreted in the following way: + .PP + \fI%H\fR + .RS 4 +-The name of the remote host (PAM_RHOST)\. ++The name of the remote host (PAM_RHOST)\&. + .RE + .PP + \fB%h\fR + .RS 4 +-The name of the local host\. ++The name of the local host\&. + .RE + .PP + \fI%s\fR + .RS 4 +-The service name (PAM_SERVICE)\. ++The service name (PAM_SERVICE)\&. + .RE + .PP + \fI%t\fR + .RS 4 +-The name of the controlling terminal (PAM_TTY)\. ++The name of the controlling terminal (PAM_TTY)\&. + .RE + .PP + \fI%U\fR + .RS 4 +-The remote user name (PAM_RUSER)\. ++The remote user name (PAM_RUSER)\&. + .RE + .PP + \fI%u\fR + .RS 4 +-The local user name (PAM_USER)\. ++The local user name (PAM_USER)\&. + .RE + .PP + All other sequences beginning with + \fI%\fR + expands to the characters following the + \fI%\fR +-character\. ++character\&. + .SH "OPTIONS" + .PP + \fBfile=\fR\fB\fI/path/message\fR\fR + .RS 4 + The content of the file +-\fI/path/message\fR +-will be printed with the PAM conversion function as PAM_TEXT_INFO\. ++\FC/path/message\F[] ++will be printed with the PAM conversion function as PAM_TEXT_INFO\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -248,11 +2256,59 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_echo/pam_echo.8 Linux-PAM-1.0.2/module +\fBaccount\fR, +\fBpassword\fR +and -+\fBsession\fR) are provided\. ++\fBsession\fR) are provided\&. .SH "RETURN VALUES" .PP PAM_BUF_ERR -@@ -101,7 +105,7 @@ + .RS 4 +-Memory buffer error\. ++Memory buffer error\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-Message was successful printed\. ++Message was successful printed\&. + .RE + .PP + PAM_IGNORE + .RS 4 +-PAM_SILENT flag was given or message file does not exist, no message printed\. ++PAM_SILENT flag was given or message file does not exist, no message printed\&. + .RE + .SH "EXAMPLES" + .PP + For an example of the use of this module, we show how it may be used to print informations about good passwords: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-password optional pam_echo\.so file=/usr/share/doc/good\-password\.txt +-password required pam_unix\.so ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++password optional pam_echo\&.so file=/usr/share/doc/good\-password\&.txt ++password required pam_unix\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" .PP \fBpam.conf\fR(8), @@ -261,36 +2317,252 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_echo/pam_echo.8 Linux-PAM-1.0.2/module \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_env/pam_env.8 Linux-PAM-1.0.2/modules/pam_env/pam_env.8 ---- Linux-PAM-1.0.2-old/modules/pam_env/pam_env.8 2008-04-16 11:06:52.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_env/pam_env.8 2008-10-17 13:01:34.000000000 +0200 -@@ -1,11 +1,11 @@ +-Thorsten Kukuk ++Thorsten Kukuk +--- Linux-PAM-1.0.2-orig/modules/pam_env/pam_env.8 2008-04-16 11:06:52.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_env/pam_env.8 2009-01-20 11:58:25.000000000 +0100 +@@ -1,100 +1,258 @@ .\" Title: pam_env - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_ENV" "8" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" -+.TH "PAM_ENV" "8" "10/17/2008" "Linux-PAM Manual" "Linux-PAM Manual" ++.TH "PAM_ENV" "8" "01/20/2009" "Linux-PAM Manual" "Linux-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -27,7 +27,7 @@ + .ad l +-.SH "NAME" +-pam_env - PAM module to set/unset environment variables +-.SH "SYNOPSIS" +-.HP 11 +-\fBpam_env\.so\fR [debug] [conffile=\fIconf\-file\fR] [envfile=\fIenv\-file\fR] [readenv=\fI0|1\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_env \- PAM module to set/unset environment variables ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_env\&.so\fR\ 'u ++\fBpam_env\&.so\fR [debug] [conffile=\fIconf\-file\fR] [envfile=\fIenv\-file\fR] [readenv=\fI0|1\fR] ++.fam + .SH "DESCRIPTION" + .PP +-The pam_env PAM module allows the (un)setting of environment variables\. Supported is the use of previously set environment variables as well as ++The pam_env PAM module allows the (un)setting of environment variables\&. Supported is the use of previously set environment variables as well as + \fIPAM_ITEM\fRs such as +-\fIPAM_RHOST\fR\. ++\fIPAM_RHOST\fR\&. + .PP + By default rules for (un)setting of variables is taken from the config file +-\fI/etc/security/pam_env\.conf\fR +-if no other file is specified\. ++\FC/etc/security/pam_env\&.conf\F[] ++if no other file is specified\&. .PP This module can also parse a file with simple \fIKEY=VAL\fR -pairs on seperate lines (\fI/etc/environment\fR -+pairs on separate lines (\fI/etc/environment\fR - by default)\. You can change the default file to parse, with the +-by default)\. You can change the default file to parse, with the ++pairs on separate lines (\FC/etc/environment\F[] ++by default)\&. You can change the default file to parse, with the \fIenvfile\fR flag and turn it on or off by setting the -@@ -59,13 +59,13 @@ + \fIreadenv\fR +-flag to 1 or 0 respectively\. ++flag to 1 or 0 respectively\&. + .SH "OPTIONS" + .PP +-\fBconffile=\fR\fB\fI/path/to/pam_env\.conf\fR\fR ++\fBconffile=\fR\fB\fI/path/to/pam_env\&.conf\fR\fR .RS 4 - Turns on or off the reading of the file specified by envfile (0 is off, 1 is on)\. By default this option is on\. + Indicate an alternative +-\fIpam_env\.conf\fR +-style configuration file to override the default\. This can be useful when different services need different environments\. ++\FCpam_env\&.conf\F[] ++style configuration file to override the default\&. This can be useful when different services need different environments\&. + .RE + .PP + \fBdebug\fR + .RS 4 + A lot of debug informations are printed with +-\fBsyslog\fR(3)\. ++\fBsyslog\fR(3)\&. + .RE + .PP + \fBenvfile=\fR\fB\fI/path/to/environment\fR\fR + .RS 4 + Indicate an alternative +-\fIenvironment\fR +-file to override the default\. This can be useful when different services need different environments\. ++\FCenvironment\F[] ++file to override the default\&. This can be useful when different services need different environments\&. + .RE + .PP + \fBreadenv=\fR\fB\fI0|1\fR\fR + .RS 4 +-Turns on or off the reading of the file specified by envfile (0 is off, 1 is on)\. By default this option is on\. ++Turns on or off the reading of the file specified by envfile (0 is off, 1 is on)\&. By default this option is on\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -300,22 +2572,59 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_env/pam_env.8 Linux-PAM-1.0.2/modules/ and \fBsession\fR -services are supported\. -+module types are provided\. ++module types are provided\&. .SH "RETURN VALUES" .PP PAM_ABORT -@@ -102,7 +102,7 @@ + .RS 4 +-Not all relevant data or options could be gotten\. ++Not all relevant data or options could be gotten\&. + .RE + .PP + PAM_BUF_ERR + .RS 4 +-Memory buffer error\. ++Memory buffer error\&. + .RE + .PP + PAM_IGNORE + .RS 4 +-No pam_env\.conf and environment file was found\. ++No pam_env\&.conf and environment file was found\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-Environment variables were set\. ++Environment variables were set\&. + .RE + .SH "FILES" + .PP +-\fI/etc/security/pam_env\.conf\fR ++\FC/etc/security/pam_env\&.conf\F[] + .RS 4 + Default configuration file + .RE + .PP +-\fI/etc/environment\fR ++\FC/etc/environment\F[] + .RS 4 + Default environment file + .RE +@@ -102,8 +260,8 @@ .PP \fBpam_env.conf\fR(5), -\fBpam.d\fR(8), +-\fBpam\fR(8)\. +\fBpam.d\fR(5), - \fBpam\fR(8)\. ++\fBpam\fR(8)\&. .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_env/README Linux-PAM-1.0.2/modules/pam_env/README ---- Linux-PAM-1.0.2-old/modules/pam_env/README 2008-04-16 11:06:53.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_env/README 2008-10-17 13:01:36.000000000 +0200 +-pam_env was written by Dave Kinchlea \. ++pam_env was written by Dave Kinchlea \&. +--- Linux-PAM-1.0.2-orig/modules/pam_env/README 2008-04-16 11:06:53.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_env/README 2009-01-20 11:58:27.000000000 +0100 @@ -11,7 +11,7 @@ By default rules for (un)setting of variables is taken from the config file / etc/security/pam_env.conf if no other file is specified. @@ -325,27 +2634,232 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_env/README Linux-PAM-1.0.2/modules/pam (/etc/environment by default). You can change the default file to parse, with the envfile flag and turn it on or off by setting the readenv flag to 1 or 0 respectively. -diff -urN Linux-PAM-1.0.2-old/modules/pam_exec/pam_exec.8 Linux-PAM-1.0.2/modules/pam_exec/pam_exec.8 ---- Linux-PAM-1.0.2-old/modules/pam_exec/pam_exec.8 2008-04-16 11:09:09.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_exec/pam_exec.8 2008-10-17 13:01:38.000000000 +0200 -@@ -1,11 +1,11 @@ +--- Linux-PAM-1.0.2-orig/modules/pam_exec/pam_exec.8 2008-04-16 11:09:09.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_exec/pam_exec.8 2009-01-20 11:58:29.000000000 +0100 +@@ -1,23 +1,181 @@ .\" Title: pam_exec - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_EXEC" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_EXEC" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_EXEC" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -50,15 +50,13 @@ + .ad l +-.SH "NAME" +-pam_exec - PAM module which calls an external command +-.SH "SYNOPSIS" +-.HP 12 +-\fBpam_exec\.so\fR [debug] [seteuid] [quiet] [log=\fIfile\fR] \fIcommand\fR [\fI\.\.\.\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_exec \- PAM module which calls an external command ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_exec\&.so\fR\ 'u ++\fBpam_exec\&.so\fR [debug] [seteuid] [quiet] [log=\fIfile\fR] \fIcommand\fR [\fI\&.\&.\&.\fR] ++.fam + .SH "DESCRIPTION" + .PP +-pam_exec is a PAM module that can be used to run an external command\. ++pam_exec is a PAM module that can be used to run an external command\&. + .PP + The child\'s environment is set to the current PAM environment list, as returned by + \fBpam_getenvlist\fR(3) +@@ -26,91 +184,117 @@ + \fIPAM_RUSER\fR, + \fIPAM_SERVICE\fR, + \fIPAM_TTY\fR, and +-\fIPAM_USER\fR\. ++\fIPAM_USER\fR\&. + .SH "OPTIONS" + .PP + .PP + \fBdebug\fR .RS 4 - Per default pam_exec\.so will execute the external command with the real user ID of the calling process\. Specifying this option means the command is run with the effective user ID\. +-Print debug information\. ++Print debug information\&. + .RE + .PP + \fBlog=\fR\fB\fIfile\fR\fR + .RS 4 + The output of the command is appended to +-\fIfile\fR ++\FCfile\F[] + .RE + .PP + \fBquiet\fR + .RS 4 +-Per default pam_exec\.so will echo the exit status of the external command if it fails\. Specifying this option will suppress the message\. ++Per default pam_exec\&.so will echo the exit status of the external command if it fails\&. Specifying this option will suppress the message\&. + .RE + .PP + \fBseteuid\fR + .RS 4 +-Per default pam_exec\.so will execute the external command with the real user ID of the calling process\. Specifying this option means the command is run with the effective user ID\. ++Per default pam_exec\&.so will execute the external command with the real user ID of the calling process\&. Specifying this option means the command is run with the effective user ID\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -358,11 +2872,89 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_exec/pam_exec.8 Linux-PAM-1.0.2/module and -\fBsession\fR -are supported\. -+\fBsession\fR) are provided\. ++\fBsession\fR) are provided\&. .SH "RETURN VALUES" .PP .PP -@@ -109,7 +107,7 @@ + PAM_SUCCESS + .RS 4 +-The external command runs successfull\. ++The external command runs successfull\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-No argument or a wrong number of arguments were given\. ++No argument or a wrong number of arguments were given\&. + .RE + .PP + PAM_SYSTEM_ERR + .RS 4 +-A system error occured or the command to execute failed\. ++A system error occured or the command to execute failed\&. + .RE + .PP + PAM_IGNORE + .RS 4 + + \fBpam_setcred\fR +-was called, which does not execute the command\. ++was called, which does not execute the command\&. + .RE + .SH "EXAMPLES" + .PP + Add the following line to +-\fI/etc/pam\.d/passwd\fR ++\FC/etc/pam\&.d/passwd\F[] + to rebuild the NIS database after each local password change: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +- passwd optional pam_exec\.so seteuid make \-C /var/yp ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++ passwd optional pam_exec\&.so seteuid make \-C /var/yp + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + This will execute the command + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf ++.BB lightgray + make \-C /var/yp ++.EB lightgray + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp +-with effective user ID\. ++with effective user ID\&. + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -371,27 +2963,217 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_exec/pam_exec.8 Linux-PAM-1.0.2/module \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_faildelay/pam_faildelay.8 Linux-PAM-1.0.2/modules/pam_faildelay/pam_faildelay.8 ---- Linux-PAM-1.0.2-old/modules/pam_faildelay/pam_faildelay.8 2008-04-16 11:09:21.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_faildelay/pam_faildelay.8 2008-10-17 13:01:41.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_exec was written by Thorsten Kukuk \. ++pam_exec was written by Thorsten Kukuk \&. +--- Linux-PAM-1.0.2-orig/modules/pam_faildelay/pam_faildelay.8 2008-04-16 11:09:21.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_faildelay/pam_faildelay.8 2009-01-20 11:58:33.000000000 +0100 +@@ -1,73 +1,249 @@ .\" Title: pam_faildelay - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_FAILDELAY" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_FAILDELAY" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_FAILDELAY" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -34,11 +34,11 @@ + .ad l +-.SH "NAME" +-pam_faildelay - Change the delay on failure per-application +-.SH "SYNOPSIS" +-.HP 17 +-\fBpam_faildelay\.so\fR [debug] [delay=\fImicroseconds\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_faildelay \- Change the delay on failure per\-application ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_faildelay\&.so\fR\ 'u ++\fBpam_faildelay\&.so\fR [debug] [delay=\fImicroseconds\fR] ++.fam + .SH "DESCRIPTION" + .PP +-pam_faildelay is a PAM module that can be used to set the delay on failure per\-application\. ++pam_faildelay is a PAM module that can be used to set the delay on failure per\-application\&. + .PP + If no + \fBdelay\fR + is given, pam_faildelay will use the value of FAIL_DELAY from +-\fI/etc/login\.defs\fR\. ++\FC/etc/login\&.defs\F[]\&. + .SH "OPTIONS" + .PP + \fBdebug\fR .RS 4 - Set the delay on failure to N microseconds\. +-Turns on debugging messages sent to syslog\. ++Turns on debugging messages sent to syslog\&. + .RE + .PP + \fBdelay=\fR\fB\fIN\fR\fR + .RS 4 +-Set the delay on failure to N microseconds\. ++Set the delay on failure to N microseconds\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -399,11 +3181,52 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_faildelay/pam_faildelay.8 Linux-PAM-1. Only the \fBauth\fR -service is supported\. -+module type is provided\. ++module type is provided\&. .SH "RETURN VALUES" .PP PAM_IGNORE -@@ -66,7 +66,7 @@ + .RS 4 +-Delay was successful adjusted\. ++Delay was successful adjusted\&. + .RE + .PP + PAM_SYSTEM_ERR + .RS 4 +-The specified delay was not valid\. ++The specified delay was not valid\&. + .RE + .SH "EXAMPLES" + .PP + The following example will set the delay on failure to 10 seconds: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-auth optional pam_faildelay\.so delay=10000000 ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++auth optional pam_faildelay\&.so delay=10000000 + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" + .PP \fBpam_fail_delay\fR(3), \fBpam.conf\fR(5), @@ -412,27 +3235,300 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_faildelay/pam_faildelay.8 Linux-PAM-1. \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_filter/pam_filter.8 Linux-PAM-1.0.2/modules/pam_filter/pam_filter.8 ---- Linux-PAM-1.0.2-old/modules/pam_filter/pam_filter.8 2008-04-16 11:06:56.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_filter/pam_filter.8 2008-10-17 13:01:45.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_faildelay was written by Darren Tucker \. ++pam_faildelay was written by Darren Tucker \&. +--- Linux-PAM-1.0.2-orig/modules/pam_filter/pam_filter.8 2008-04-16 11:06:56.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_filter/pam_filter.8 2009-01-20 11:58:36.000000000 +0100 +@@ -1,73 +1,231 @@ .\" Title: pam_filter - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_FILTER" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_FILTER" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_FILTER" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -109,15 +109,13 @@ + .ad l +-.SH "NAME" +-pam_filter - PAM filter module +-.SH "SYNOPSIS" +-.HP 14 +-\fBpam_filter\.so\fR [debug] [new_term] [non_term] run1|run2 \fIfilter\fR [\fI\.\.\.\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_filter \- PAM filter module ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_filter\&.so\fR\ 'u ++\fBpam_filter\&.so\fR [debug] [new_term] [non_term] run1|run2 \fIfilter\fR [\fI\&.\&.\&.\fR] ++.fam + .SH "DESCRIPTION" + .PP +-This module is intended to be a platform for providing access to all of the input/output that passes between the user and the application\. It is only suitable for tty\-based and (stdin/stdout) applications\. ++This module is intended to be a platform for providing access to all of the input/output that passes between the user and the application\&. It is only suitable for tty\-based and (stdin/stdout) applications\&. + .PP + To function this module requires + \fIfilters\fR +-to be installed on the system\. The single filter provided with the module simply transposes upper and lower case letters in the input and output streams\. (This can be very annoying and is not kind to termcap based editors)\. ++to be installed on the system\&. The single filter provided with the module simply transposes upper and lower case letters in the input and output streams\&. (This can be very annoying and is not kind to termcap based editors)\&. + .PP +-Each component of the module has the potential to invoke the desired filter\. The filter is always ++Each component of the module has the potential to invoke the desired filter\&. The filter is always + \fBexecv\fR(2) + with the privilege of the calling application and + \fInot\fR +-that of the user\. For this reason it cannot usually be killed by the user without closing their session\. ++that of the user\&. For this reason it cannot usually be killed by the user without closing their session\&. + .SH "OPTIONS" + .PP + .PP + \fBdebug\fR .RS 4 - The full pathname of the filter to be run and any command line arguments that the filter might expect\. +-Print debug information\. ++Print debug information\&. + .RE + .PP + \fBnew_term\fR + .RS 4 + The default action of the filter is to set the + \fIPAM_TTY\fR +-item to indicate the terminal that the user is using to connect to the application\. This argument indicates that the filter should set ++item to indicate the terminal that the user is using to connect to the application\&. This argument indicates that the filter should set + \fIPAM_TTY\fR +-to the filtered pseudo\-terminal\. ++to the filtered pseudo\-terminal\&. + .RE + .PP + \fBnon_term\fR + .RS 4 + don\'t try to set the + \fIPAM_TTY\fR +-item\. ++item\&. + .RE + .PP + \fBrunX\fR + .RS 4 +-In order that the module can invoke a filter it should know when to invoke it\. This argument is required to tell the filter when to do this\. ++In order that the module can invoke a filter it should know when to invoke it\&. This argument is required to tell the filter when to do this\&. + .sp + Permitted values for + \fIX\fR + are + \fI1\fR + and +-\fI2\fR\. These indicate the precise time that the filter is to be run\. To understand this concept it will be useful to have read the ++\fI2\fR\&. These indicate the precise time that the filter is to be run\&. To understand this concept it will be useful to have read the + \fBpam\fR(3) +-manual page\. Basically, for each management group there are up to two ways of calling the module\'s functions\. In the case of the ++manual page\&. Basically, for each management group there are up to two ways of calling the module\'s functions\&. In the case of the + \fIauthentication\fR + and + \fIsession\fR +-components there are actually two separate functions\. For the case of authentication, these functions are ++components there are actually two separate functions\&. For the case of authentication, these functions are + \fBpam_authenticate\fR(3) + and + \fBpam_setcred\fR(3), here +@@ -77,20 +235,20 @@ + function and + \fBrun2\fR + means run the filter from +-\fBpam_setcred\fR\. In the case of the session modules, ++\fBpam_setcred\fR\&. In the case of the session modules, + \fIrun1\fR + implies that the filter is invoked at the + \fBpam_open_session\fR(3) + stage, and + \fIrun2\fR + for +-\fBpam_close_session\fR(3)\. ++\fBpam_close_session\fR(3)\&. + .sp +-For the case of the account component\. Either ++For the case of the account component\&. Either + \fIrun1\fR + or + \fIrun2\fR +-may be used\. ++may be used\&. + .sp + For the case of the password component, + \fIrun1\fR +@@ -102,53 +260,69 @@ + \fIrun2\fR + is used to indicate that the filter is run on the second occasion (the + \fIPAM_UPDATE_AUTHTOK\fR +-phase)\. ++phase)\&. + .RE + .PP + \fBfilter\fR + .RS 4 +-The full pathname of the filter to be run and any command line arguments that the filter might expect\. ++The full pathname of the filter to be run and any command line arguments that the filter might expect\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -445,11 +3541,55 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_filter/pam_filter.8 Linux-PAM-1.0.2/mo and -\fBsession\fR -are supported\. -+\fBsession\fR) are provided\. ++\fBsession\fR) are provided\&. .SH "RETURN VALUES" .PP .PP -@@ -147,7 +145,7 @@ + PAM_SUCCESS + .RS 4 +-The new filter was set successfull\. ++The new filter was set successfull\&. + .RE + .PP + PAM_ABORT + .RS 4 +-Critical error, immediate abort\. ++Critical error, immediate abort\&. + .RE + .SH "EXAMPLES" + .PP + Add the following line to +-\fI/etc/pam\.d/login\fR ++\FC/etc/pam\&.d/login\F[] + to see how to configure login to transpose upper and lower case letters once the user has logged in: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +- session required pam_filter\.so run1 /lib/security/pam_filter/upperLOWER ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++ session required pam_filter\&.so run1 /lib/security/pam_filter/upperLOWER + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -458,27 +3598,245 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_filter/pam_filter.8 Linux-PAM-1.0.2/mo \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_ftp/pam_ftp.8 Linux-PAM-1.0.2/modules/pam_ftp/pam_ftp.8 ---- Linux-PAM-1.0.2-old/modules/pam_ftp/pam_ftp.8 2008-04-16 11:07:01.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_ftp/pam_ftp.8 2008-10-17 13:01:47.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_filter was written by Andrew G\. Morgan \. ++pam_filter was written by Andrew G\&. Morgan \&. +--- Linux-PAM-1.0.2-orig/modules/pam_ftp/pam_ftp.8 2008-04-16 11:07:01.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_ftp/pam_ftp.8 2009-01-20 11:58:39.000000000 +0100 +@@ -1,25 +1,183 @@ .\" Title: pam_ftp - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_FTP" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_FTP" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_FTP" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -56,11 +56,11 @@ - \fB\fIXXX,YYY,\.\.\.\fR\fR\. Should the applicant enter one of these usernames the returned username is set to the first in the list: - \fIXXX\fR\. + .ad l +-.SH "NAME" +-pam_ftp - PAM module for anonymous access module +-.SH "SYNOPSIS" +-.HP 11 +-\fBpam_ftp\.so\fR [debug] [ignore] [users=\fIXXX,YYY,\fR...] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_ftp \- PAM module for anonymous access module ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_ftp\&.so\fR\ 'u ++\fBpam_ftp\&.so\fR [debug] [ignore] [users=\fIXXX,YYY,\fR...] ++.fam + .SH "DESCRIPTION" + .PP +-pam_ftp is a PAM module which provides a pluggable anonymous ftp mode of access\. ++pam_ftp is a PAM module which provides a pluggable anonymous ftp mode of access\&. + .PP +-This module intercepts the user\'s name and password\. If the name is ++This module intercepts the user\'s name and password\&. If the name is + \fIftp\fR + or + \fIanonymous\fR, the user\'s password is broken up at the +@@ -28,78 +186,96 @@ + \fIPAM_RUSER\fR + and a + \fIPAM_RHOST\fR +-part; these pam\-items being set accordingly\. The username (\fIPAM_USER\fR) is set to +-\fIftp\fR\. In this case the module succeeds\. Alternatively, the module sets the ++part; these pam\-items being set accordingly\&. The username (\fIPAM_USER\fR) is set to ++\fIftp\fR\&. In this case the module succeeds\&. Alternatively, the module sets the + \fIPAM_AUTHTOK\fR +-item with the entered password and fails\. ++item with the entered password and fails\&. + .PP +-This module is not safe and easily spoofable\. ++This module is not safe and easily spoofable\&. + .SH "OPTIONS" + .PP + .PP + \fBdebug\fR + .RS 4 +-Print debug information\. ++Print debug information\&. + .RE + .PP + \fBignore\fR + .RS 4 +-Pay no attention to the email address of the user (if supplied)\. ++Pay no attention to the email address of the user (if supplied)\&. + .RE + .PP +-\fBftp=\fR\fB\fIXXX,YYY,\.\.\.\fR\fR ++\fBftp=\fR\fB\fIXXX,YYY,\&.\&.\&.\fR\fR + .RS 4 + Instead of + \fIftp\fR + or + \fIanonymous\fR, provide anonymous login to the comma separated list of users: +-\fB\fIXXX,YYY,\.\.\.\fR\fR\. Should the applicant enter one of these usernames the returned username is set to the first in the list: +-\fIXXX\fR\. ++\fB\fIXXX,YYY,\&.\&.\&.\fR\fR\&. Should the applicant enter one of these usernames the returned username is set to the first in the list: ++\fIXXX\fR\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -486,11 +3844,66 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_ftp/pam_ftp.8 Linux-PAM-1.0.2/modules/ Only the \fBauth\fR -service is supported\. -+module type is provided\. ++module type is provided\&. .SH "RETURN VALUES" .PP .PP -@@ -98,7 +98,7 @@ + PAM_SUCCESS + .RS 4 +-The authentication was successfull\. ++The authentication was successfull\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-User not known\. ++User not known\&. + .RE + .SH "EXAMPLES" + .PP + Add the following line to +-\fI/etc/pam\.d/ftpd\fR ++\FC/etc/pam\&.d/ftpd\F[] + to handle ftp style anonymous login: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ + # +-# ftpd; add ftp\-specifics\. These lines enable anonymous ftp over ++# ftpd; add ftp\-specifics\&. These lines enable anonymous ftp over + # standard UN*X access (the listfile entry blocks access to + # users listed in /etc/ftpusers) + # +-auth sufficient pam_ftp\.so +-auth required pam_unix\.so use_first_pass +-auth required pam_listfile\.so \e ++auth sufficient pam_ftp\&.so ++auth required pam_unix\&.so use_first_pass ++auth required pam_listfile\&.so \e + onerr=succeed item=user sense=deny file=/etc/ftpusers + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -499,68 +3912,510 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_ftp/pam_ftp.8 Linux-PAM-1.0.2/modules/ \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_group/pam_group.8 Linux-PAM-1.0.2/modules/pam_group/pam_group.8 ---- Linux-PAM-1.0.2-old/modules/pam_group/pam_group.8 2008-04-16 11:07:06.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_group/pam_group.8 2008-10-17 13:01:50.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_ftp was written by Andrew G\. Morgan \. ++pam_ftp was written by Andrew G\&. Morgan \&. +--- Linux-PAM-1.0.2-orig/modules/pam_group/pam_group.8 2008-04-16 11:07:06.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_group/pam_group.8 2009-01-20 11:58:43.000000000 +0100 +@@ -1,85 +1,243 @@ .\" Title: pam_group - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHORS" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_GROUP" "8" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" -+.TH "PAM_GROUP" "8" "10/17/2008" "Linux-PAM Manual" "Linux-PAM Manual" ++.TH "PAM_GROUP" "8" "01/20/2009" "Linux-PAM Manual" "Linux-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -39,11 +39,11 @@ + .ad l +-.SH "NAME" +-pam_group - PAM module for group access +-.SH "SYNOPSIS" +-.HP 13 +-\fBpam_group\.so\fR ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_group \- PAM module for group access ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_group\&.so\fR\ 'u ++\fBpam_group\&.so\fR ++.fam + .SH "DESCRIPTION" + .PP +-The pam_group PAM module does not authenticate the user, but instead it grants group memberships (in the credential setting phase of the authentication module) to the user\. Such memberships are based on the service they are applying for\. ++The pam_group PAM module does not authenticate the user, but instead it grants group memberships (in the credential setting phase of the authentication module) to the user\&. Such memberships are based on the service they are applying for\&. + .PP + By default rules for group memberships are taken from config file +-\fI/etc/security/group\.conf\fR\. ++\FC/etc/security/group\&.conf\F[]\&. + .PP +-This module\'s usefulness relies on the file\-systems accessible to the user\. The point being that once granted the membership of a group, the user may attempt to create a ++This module\'s usefulness relies on the file\-systems accessible to the user\&. The point being that once granted the membership of a group, the user may attempt to create a + \fBsetgid\fR +-binary with a restricted group ownership\. Later, when the user is not given membership to this group, they can recover group membership with the precompiled binary\. The reason that the file\-systems that the user has access to are so significant, is the fact that when a system is mounted ++binary with a restricted group ownership\&. Later, when the user is not given membership to this group, they can recover group membership with the precompiled binary\&. The reason that the file\-systems that the user has access to are so significant, is the fact that when a system is mounted + \fInosuid\fR +-the user is unable to create or execute such a binary file\. For this module to provide any level of security, all file\-systems that the user has write access to should be mounted +-\fInosuid\fR\. ++the user is unable to create or execute such a binary file\&. For this module to provide any level of security, all file\-systems that the user has write access to should be mounted ++\fInosuid\fR\&. + .PP + The pam_group module fuctions in parallel with the +-\fI/etc/group\fR +-file\. If the user is granted any groups based on the behavior of this module, they are granted ++\FC/etc/group\F[] ++file\&. If the user is granted any groups based on the behavior of this module, they are granted + \fIin addition\fR + to those entries +-\fI/etc/group\fR +-(or equivalent)\. ++\FC/etc/group\F[] ++(or equivalent)\&. .SH "OPTIONS" .PP - This module does not recognise any options\. +-This module does not recognise any options\. -.SH "MODULE SERVICES PROVIDED" ++This module does not recognise any options\&. +.SH "MODULE TYPES PROVIDED" .PP Only the \fBauth\fR -service is supported\. -+module type is provided\. ++module type is provided\&. .SH "RETURN VALUES" .PP PAM_SUCCESS -@@ -87,7 +87,7 @@ + .RS 4 +-group membership was granted\. ++group membership was granted\&. + .RE + .PP + PAM_ABORT + .RS 4 +-Not all relevant data could be gotten\. ++Not all relevant data could be gotten\&. + .RE + .PP + PAM_BUF_ERR + .RS 4 +-Memory buffer error\. ++Memory buffer error\&. + .RE + .PP + PAM_CRED_ERR + .RS 4 +-Group membership was not granted\. ++Group membership was not granted\&. + .RE + .PP + PAM_IGNORE + .RS 4 + + \fBpam_sm_authenticate\fR +-was called which does nothing\. ++was called which does nothing\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-The user is not known to the system\. ++The user is not known to the system\&. + .RE + .SH "FILES" + .PP +-\fI/etc/security/group\.conf\fR ++\FC/etc/security/group\&.conf\F[] + .RS 4 + Default configuration file + .RE +@@ -87,8 +245,8 @@ .PP \fBgroup.conf\fR(5), -\fBpam.d\fR(8), +-\fBpam\fR(8)\. +\fBpam.d\fR(5), - \fBpam\fR(8)\. ++\fBpam\fR(8)\&. .SH "AUTHORS" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_issue/pam_issue.8 Linux-PAM-1.0.2/modules/pam_issue/pam_issue.8 ---- Linux-PAM-1.0.2-old/modules/pam_issue/pam_issue.8 2008-04-16 11:07:09.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_issue/pam_issue.8 2008-10-17 13:01:54.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_group was written by Andrew G\. Morgan \. ++pam_group was written by Andrew G\&. Morgan \&. +--- Linux-PAM-1.0.2-orig/modules/pam_issue/pam_issue.8 2008-04-16 11:07:09.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_issue/pam_issue.8 2009-01-20 11:58:46.000000000 +0100 +@@ -1,23 +1,181 @@ .\" Title: pam_issue - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_ISSUE" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_ISSUE" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_ISSUE" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -87,11 +87,11 @@ + .ad l +-.SH "NAME" +-pam_issue - PAM module to add issue file to user prompt +-.SH "SYNOPSIS" +-.HP 13 +-\fBpam_issue\.so\fR [noesc] [issue=\fIissue\-file\-name\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_issue \- PAM module to add issue file to user prompt ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_issue\&.so\fR\ 'u ++\fBpam_issue\&.so\fR [noesc] [issue=\fIissue\-file\-name\fR] ++.fam + .SH "DESCRIPTION" + .PP +-pam_issue is a PAM module to prepend an issue file to the username prompt\. It also by default parses escape codes in the issue file similar to some common getty\'s (using \ex format)\. ++pam_issue is a PAM module to prepend an issue file to the username prompt\&. It also by default parses escape codes in the issue file similar to some common getty\'s (using \ex format)\&. + .PP + Recognized escapes: + .PP +@@ -68,7 +226,7 @@ + .PP + \fB\eU\fR .RS 4 - The file to output if not using the default\. +-same as \eu except it is suffixed with "user" or "users" (eg\. "1 user" or "10 users") ++same as \eu except it is suffixed with "user" or "users" (eg\&. "1 user" or "10 users") + .RE + .PP + \fB\ev\fR +@@ -80,59 +238,77 @@ + .PP + \fBnoesc\fR + .RS 4 +-Turns off escape code parsing\. ++Turns off escape code parsing\&. + .RE + .PP + \fBissue=\fR\fB\fIissue\-file\-name\fR\fR + .RS 4 +-The file to output if not using the default\. ++The file to output if not using the default\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -568,11 +4423,67 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_issue/pam_issue.8 Linux-PAM-1.0.2/modu Only the \fBauth\fR -service is supported\. -+module type is provided\. ++module type is provided\&. .SH "RETURN VALUES" .PP .PP -@@ -131,7 +131,7 @@ + PAM_BUF_ERR + .RS 4 +-Memory buffer error\. ++Memory buffer error\&. + .RE + .PP + PAM_IGNORE + .RS 4 +-The prompt was already changed\. ++The prompt was already changed\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-A service module error occured\. ++A service module error occured\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-The new prompt was set successfull\. ++The new prompt was set successfull\&. + .RE + .SH "EXAMPLES" + .PP + Add the following line to +-\fI/etc/pam\.d/login\fR ++\FC/etc/pam\&.d/login\F[] + to set the user specific issue at login: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +- auth optional pam_issue\.so issue=/etc/issue ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++ auth optional pam_issue\&.so issue=/etc/issue + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -581,27 +4492,244 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_issue/pam_issue.8 Linux-PAM-1.0.2/modu \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_keyinit/pam_keyinit.8 Linux-PAM-1.0.2/modules/pam_keyinit/pam_keyinit.8 ---- Linux-PAM-1.0.2-old/modules/pam_keyinit/pam_keyinit.8 2008-04-16 11:07:12.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_keyinit/pam_keyinit.8 2008-10-17 13:01:57.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_issue was written by Ben Collins \. ++pam_issue was written by Ben Collins \&. +--- Linux-PAM-1.0.2-orig/modules/pam_keyinit/pam_keyinit.8 2008-04-16 11:07:12.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_keyinit/pam_keyinit.8 2009-01-20 11:58:50.000000000 +0100 +@@ -1,63 +1,221 @@ .\" Title: pam_keyinit - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_KEYINIT" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_KEYINIT" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_KEYINIT" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -53,11 +53,11 @@ + .ad l +-.SH "NAME" +-pam_keyinit - Kernel session keyring initialiser module +-.SH "SYNOPSIS" +-.HP 15 +-\fBpam_keyinit\.so\fR [debug] [force] [revoke] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_keyinit \- Kernel session keyring initialiser module ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_keyinit\&.so\fR\ 'u ++\fBpam_keyinit\&.so\fR [debug] [force] [revoke] ++.fam + .SH "DESCRIPTION" + .PP +-The pam_keyinit PAM module ensures that the invoking process has a session keyring other than the user default session keyring\. ++The pam_keyinit PAM module ensures that the invoking process has a session keyring other than the user default session keyring\&. + .PP +-The session component of the module checks to see if the process\'s session keyring is the user default, and, if it is, creates a new anonymous session keyring with which to replace it\. ++The session component of the module checks to see if the process\'s session keyring is the user default, and, if it is, creates a new anonymous session keyring with which to replace it\&. + .PP +-If a new session keyring is created, it will install a link to the user common keyring in the session keyring so that keys common to the user will be automatically accessible through it\. ++If a new session keyring is created, it will install a link to the user common keyring in the session keyring so that keys common to the user will be automatically accessible through it\&. + .PP +-The session keyring of the invoking process will thenceforth be inherited by all its children unless they override it\. ++The session keyring of the invoking process will thenceforth be inherited by all its children unless they override it\&. + .PP +-This module is intended primarily for use by login processes\. Be aware that after the session keyring has been replaced, the old session keyring and the keys it contains will no longer be accessible\. ++This module is intended primarily for use by login processes\&. Be aware that after the session keyring has been replaced, the old session keyring and the keys it contains will no longer be accessible\&. + .PP + This module should not, generally, be invoked by programs like +-\fBsu\fR, since it is usually desirable for the key set to percolate through to the alternate context\. The keys have their own permissions system to manage this\. ++\fBsu\fR, since it is usually desirable for the key set to percolate through to the alternate context\&. The keys have their own permissions system to manage this\&. + .PP +-This module should be included as early as possible in a PAM configuration, so that other PAM modules can attach tokens to the keyring\. ++This module should be included as early as possible in a PAM configuration, so that other PAM modules can attach tokens to the keyring\&. + .PP +-The keyutils package is used to manipulate keys more directly\. This can be obtained from: ++The keyutils package is used to manipulate keys more directly\&. This can be obtained from: + .PP + +-\fI Keyutils \fR\&[1] ++\m[blue]\fB Keyutils \fR\m[]\&\s-2\u[1]\d\s+2 + .SH "OPTIONS" + .PP + \fBdebug\fR .RS 4 - Causes the session keyring of the invoking process to be revoked when the invoking process exits if the session keyring was created for this process in the first place\. + Log debug information with +-\fBsyslog\fR(3)\. ++\fBsyslog\fR(3)\&. + .RE + .PP + \fBforce\fR + .RS 4 +-Causes the session keyring of the invoking process to be replaced unconditionally\. ++Causes the session keyring of the invoking process to be replaced unconditionally\&. + .RE + .PP + \fBrevoke\fR + .RS 4 +-Causes the session keyring of the invoking process to be revoked when the invoking process exits if the session keyring was created for this process in the first place\. ++Causes the session keyring of the invoking process to be revoked when the invoking process exits if the session keyring was created for this process in the first place\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -609,11 +4737,80 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_keyinit/pam_keyinit.8 Linux-PAM-1.0.2/ Only the \fBsession\fR -service is supported\. -+module type is provided\. ++module type is provided\&. .SH "RETURN VALUES" .PP PAM_SUCCESS -@@ -110,7 +110,7 @@ +@@ -67,56 +225,74 @@ + .PP + PAM_AUTH_ERR + .RS 4 +-Authentication failure\. ++Authentication failure\&. + .RE + .PP + PAM_BUF_ERR + .RS 4 +-Memory buffer error\. ++Memory buffer error\&. + .RE + .PP + PAM_IGNORE + .RS 4 +-The return value should be ignored by PAM dispatch\. ++The return value should be ignored by PAM dispatch\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-Cannot determine the user name\. ++Cannot determine the user name\&. + .RE + .PP + PAM_SESSION_ERR + .RS 4 +-This module will return this value if its arguments are invalid or if a system error such as ENOMEM occurs\. ++This module will return this value if its arguments are invalid or if a system error such as ENOMEM occurs\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-User not known\. ++User not known\&. + .RE + .SH "EXAMPLES" + .PP + Add this line to your login entries to start each login session with its own session keyring: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-session required pam_keyinit\.so ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++session required pam_keyinit\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .PP +-This will prevent keys from one session leaking into another session for the same user\. ++This will prevent keys from one session leaking into another session for the same user\&. + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -622,60 +4819,340 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_keyinit/pam_keyinit.8 Linux-PAM-1.0.2/ \fBpam\fR(8) \fBkeyctl\fR(1) .SH "AUTHOR" -diff -urN Linux-PAM-1.0.2-old/modules/pam_lastlog/pam_lastlog.8 Linux-PAM-1.0.2/modules/pam_lastlog/pam_lastlog.8 ---- Linux-PAM-1.0.2-old/modules/pam_lastlog/pam_lastlog.8 2008-04-16 11:07:16.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_lastlog/pam_lastlog.8 2008-10-17 13:02:00.000000000 +0200 -@@ -1,11 +1,11 @@ + .PP +-pam_keyinit was written by David Howells, \. +-.SH "NOTES" ++pam_keyinit was written by David Howells, \&. ++.SH "Notes" + .IP " 1." 4 + Keyutils + .RS 4 +--- Linux-PAM-1.0.2-orig/modules/pam_lastlog/pam_lastlog.8 2008-04-16 11:07:16.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_lastlog/pam_lastlog.8 2009-01-20 11:58:53.000000000 +0100 +@@ -1,104 +1,292 @@ .\" Title: pam_lastlog - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_LASTLOG" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_LASTLOG" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_LASTLOG" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -14,7 +14,7 @@ - pam_lastlog - PAM module to display date of last login - .SH "SYNOPSIS" - .HP 15 + .ad l +-.SH "NAME" +-pam_lastlog - PAM module to display date of last login +-.SH "SYNOPSIS" +-.HP 15 -\fBpam_lastlog\.so\fR [debug] [silent] [never] [nodate] [nohost] [noterm] [nowtmp] -+\fBpam_lastlog\.so\fR [debug] [silent] [never] [nodate] [nohost] [noterm] [nowtmp] [noupdate] [showfailed] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_lastlog \- PAM module to display date of last login ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_lastlog\&.so\fR\ 'u ++\fBpam_lastlog\&.so\fR [debug] [silent] [never] [nodate] [nohost] [noterm] [nowtmp] [noupdate] [showfailed] ++.fam .SH "DESCRIPTION" .PP - pam_lastlog is a PAM module to display a line of information about the last login of the user\. In addition, the module maintains the -@@ -62,11 +62,23 @@ +-pam_lastlog is a PAM module to display a line of information about the last login of the user\. In addition, the module maintains the +-\fI/var/log/lastlog\fR +-file\. ++pam_lastlog is a PAM module to display a line of information about the last login of the user\&. In addition, the module maintains the ++\FC/var/log/lastlog\F[] ++file\&. + .PP +-Some applications may perform this function themselves\. In such cases, this module is not necessary\. ++Some applications may perform this function themselves\&. In such cases, this module is not necessary\&. + .SH "OPTIONS" + .PP + \fBdebug\fR .RS 4 - Don\'t update the wtmp entry\. +-Print debug information\. ++Print debug information\&. .RE --.SH "MODULE SERVICES PROVIDED" + .PP + \fBsilent\fR + .RS 4 + Don\'t inform the user about any previous login, just upate the +-\fI/var/log/lastlog\fR +-file\. ++\FC/var/log/lastlog\F[] ++file\&. + .RE + .PP + \fBnever\fR + .RS 4 + If the +-\fI/var/log/lastlog\fR +-file does not contain any old entries for the user, indicate that the user has never previously logged in with a welcome message\. ++\FC/var/log/lastlog\F[] ++file does not contain any old entries for the user, indicate that the user has never previously logged in with a welcome message\&. + .RE + .PP + \fBnodate\fR + .RS 4 +-Don\'t display the date of the last login\. ++Don\'t display the date of the last login\&. + .RE + .PP + \fBnoterm\fR + .RS 4 +-Don\'t display the terminal name on which the last login was attempted\. ++Don\'t display the terminal name on which the last login was attempted\&. + .RE + .PP + \fBnohost\fR + .RS 4 +-Don\'t indicate from which host the last login was attempted\. ++Don\'t indicate from which host the last login was attempted\&. + .RE + .PP + \fBnowtmp\fR + .RS 4 +-Don\'t update the wtmp entry\. ++Don\'t update the wtmp entry\&. ++.RE +.PP +\fBnoupdate\fR +.RS 4 -+Don\'t update any file\. -+.RE ++Don\'t update any file\&. + .RE +-.SH "MODULE SERVICES PROVIDED" +.PP +\fBshowfailed\fR +.RS 4 -+Display number of failed login attempts and the date of the last failed attempt from btmp\. The date is not displayed when ++Display number of failed login attempts and the date of the last failed attempt from btmp\&. The date is not displayed when +\fBnodate\fR -+is specified\. ++is specified\&. +.RE +.SH "MODULE TYPES PROVIDED" .PP Only the \fBsession\fR -service is supported\. -+module type is provided\. ++module type is provided\&. .SH "RETURN VALUES" .PP .PP -@@ -106,7 +118,7 @@ + PAM_SUCCESS + .RS 4 +-Everything was successfull\. ++Everything was successfull\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-Internal service module error\. ++Internal service module error\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-User not known\. ++User not known\&. + .RE + .SH "EXAMPLES" + .PP + Add the following line to +-\fI/etc/pam\.d/login\fR ++\FC/etc/pam\&.d/login\F[] + to display the last login time of an user: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +- session required pam_lastlog\.so nowtmp ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++ session required pam_lastlog\&.so nowtmp + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .SH "FILES" + .PP +-\fI/var/log/lastlog\fR ++\FC/var/log/lastlog\F[] + .RS 4 + Lastlog logging file + .RE +@@ -106,8 +294,8 @@ .PP \fBpam.conf\fR(5), @@ -684,9 +5161,10 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_lastlog/pam_lastlog.8 Linux-PAM-1.0.2/ \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_lastlog/README Linux-PAM-1.0.2/modules/pam_lastlog/README ---- Linux-PAM-1.0.2-old/modules/pam_lastlog/README 2008-04-16 11:07:17.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_lastlog/README 2008-10-17 13:02:01.000000000 +0200 +-pam_lastlog was written by Andrew G\. Morgan \. ++pam_lastlog was written by Andrew G\&. Morgan \&. +--- Linux-PAM-1.0.2-orig/modules/pam_lastlog/README 2008-04-16 11:07:17.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_lastlog/README 2009-01-20 11:58:55.000000000 +0100 @@ -43,6 +43,15 @@ Don't update the wtmp entry. @@ -703,27 +5181,632 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_lastlog/README Linux-PAM-1.0.2/modules EXAMPLES Add the following line to /etc/pam.d/login to display the last login time of an -diff -urN Linux-PAM-1.0.2-old/modules/pam_limits/pam_limits.8 Linux-PAM-1.0.2/modules/pam_limits/pam_limits.8 ---- Linux-PAM-1.0.2-old/modules/pam_limits/pam_limits.8 2008-04-16 11:07:20.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_limits/pam_limits.8 2008-10-17 13:02:03.000000000 +0200 -@@ -1,11 +1,11 @@ - .\" Title: pam_limits - .\" Author: +--- Linux-PAM-1.0.2-orig/modules/pam_limits/limits.conf.5 2008-04-16 11:07:19.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_limits/limits.conf.5 2009-01-20 11:58:57.000000000 +0100 +@@ -1,17 +1,173 @@ + .\" Title: limits.conf +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" --.TH "PAM_LIMITS" "8" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" -+.TH "PAM_LIMITS" "8" "10/17/2008" "Linux-PAM Manual" "Linux-PAM Manual" +-.TH "LIMITS\.CONF" "5" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "LIMITS\&.CONF" "5" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -56,11 +56,11 @@ + .ad l +-.SH "NAME" +-limits.conf - configuration file for the pam_limits module ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++limits.conf \- configuration file for the pam_limits module + .SH "DESCRIPTION" + .PP + The syntax of the lines is as follows: +@@ -28,25 +184,53 @@ .RS 4 - Do not report exceeded maximum logins count to the audit subsystem\. + .sp + .RS 4 +-\h'-04'\(bu\h'+03'a username ++.ie n \{\ ++\h'-04'\(bu\h'+03'\c ++.\} ++.el \{\ ++.sp -1 ++.IP \(bu 2.3 ++.\} ++a username + .RE + .sp + .RS 4 +-\h'-04'\(bu\h'+03'a groupname, with ++.ie n \{\ ++\h'-04'\(bu\h'+03'\c ++.\} ++.el \{\ ++.sp -1 ++.IP \(bu 2.3 ++.\} ++a groupname, with + \fB@group\fR +-syntax\. This should not be confused with netgroups\. ++syntax\&. This should not be confused with netgroups\&. + .RE + .sp + .RS 4 +-\h'-04'\(bu\h'+03'the wildcard +-\fB*\fR, for default entry\. ++.ie n \{\ ++\h'-04'\(bu\h'+03'\c ++.\} ++.el \{\ ++.sp -1 ++.IP \(bu 2.3 ++.\} ++the wildcard ++\fB*\fR, for default entry\&. + .RE + .sp + .RS 4 +-\h'-04'\(bu\h'+03'the wildcard ++.ie n \{\ ++\h'-04'\(bu\h'+03'\c ++.\} ++.el \{\ ++.sp -1 ++.IP \(bu 2.3 ++.\} ++the wildcard + \fB%\fR, for maxlogins limit only, can also be used with + \fI%group\fR +-syntax\. ++syntax\&. + .RE + .RE + .PP +@@ -57,18 +241,18 @@ + .RS 4 + for enforcing + \fBhard\fR +-resource limits\. These limits are set by the superuser and enforced by the Kernel\. The user cannot raise his requirement of system resources above such values\. ++resource limits\&. These limits are set by the superuser and enforced by the Kernel\&. The user cannot raise his requirement of system resources above such values\&. + .RE + .PP + \fBsoft\fR + .RS 4 + for enforcing + \fBsoft\fR +-resource limits\. These limits are ones that the user can move up or down within the permitted range by any pre\-existing ++resource limits\&. These limits are ones that the user can move up or down within the permitted range by any pre\-existing + \fBhard\fR +-limits\. The values specified with this token can be thought of as ++limits\&. The values specified with this token can be thought of as + \fIdefault\fR +-values, for normal system usage\. ++values, for normal system usage\&. + .RE + .PP + \fB\-\fR +@@ -77,9 +261,9 @@ + \fBsoft\fR + and + \fBhard\fR +-resource limits together\. ++resource limits together\&. + .sp +-Note, if you specify a type of \'\-\' but neglect to supply the item and value fields then the module will never enforce any limits on the specified user/group etc\. \. ++Note, if you specify a type of \'\-\' but neglect to supply the item and value fields then the module will never enforce any limits on the specified user/group etc\&. \&. + .RE + .RE + .PP +@@ -154,50 +338,70 @@ + .PP + \fBlocks\fR + .RS 4 +-maximum locked files (Linux 2\.4 and higher) ++maximum locked files (Linux 2\&.4 and higher) + .RE + .PP + \fBsigpending\fR + .RS 4 +-maximum number of pending signals (Linux 2\.6 and higher) ++maximum number of pending signals (Linux 2\&.6 and higher) + .RE + .PP + \fBmsqqueue\fR + .RS 4 +-maximum memory used by POSIX message queues (bytes) (Linux 2\.6 and higher) ++maximum memory used by POSIX message queues (bytes) (Linux 2\&.6 and higher) + .RE + .PP + \fBnice\fR + .RS 4 +-maximum nice priority allowed to raise to (Linux 2\.6\.12 and higher) values: [\-20,19] ++maximum nice priority allowed to raise to (Linux 2\&.6\&.12 and higher) values: [\-20,19] + .RE + .PP + \fBrtprio\fR + .RS 4 +-maximum realtime priority allowed for non\-privileged processes (Linux 2\.6\.12 and higher) ++maximum realtime priority allowed for non\-privileged processes (Linux 2\&.6\&.12 and higher) + .RE + .RE + .PP ++All items support the values ++\fI\-1\fR, ++\fIunlimited\fR ++or ++\fIinfinity\fR ++indicating no limit, except for ++\fBpriority\fR ++and ++\fBnice\fR\&. ++.PP + In general, individual limits have priority over group limits, so if you impose no limits for + \fIadmin\fR +-group, but one of the members in this group have a limits line, the user will have its limits set according to this line\. ++group, but one of the members in this group have a limits line, the user will have its limits set according to this line\&. + .PP + Also, please note that all limit settings are set +-\fIper login\fR\. They are not global, nor are they permanent; existing only for the duration of the session\. ++\fIper login\fR\&. They are not global, nor are they permanent; existing only for the duration of the session\&. + .PP + In the + \fIlimits\fR +-configuration file, the \'\fB#\fR\' character introduces a comment \- after which the rest of the line is ignored\. ++configuration file, the \'\fB#\fR\' character introduces a comment \- after which the rest of the line is ignored\&. + .PP + The pam_limits module does its best to report configuration problems found in its configuration file via +-\fBsyslog\fR(3)\. ++\fBsyslog\fR(3)\&. + .SH "EXAMPLES" + .PP + These are some example lines which might be specified in +-\fI/etc/security/limits\.conf\fR\. ++\FC/etc/security/limits\&.conf\F[]\&. + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ + * soft core 0 + * hard rss 10000 + @student hard nproc 20 +@@ -206,14 +410,23 @@ + ftp hard nproc 0 + @student \- maxlogins 4 + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .SH "SEE ALSO" + .PP + + \fBpam_limits\fR(8), + \fBpam.d\fR(5), +-\fBpam\fR(8) ++\fBpam\fR(8), ++\fBgetrlimit\fR(2) + .SH "AUTHOR" + .PP +-pam_limits was initially written by Cristian Gafton ++pam_limits was initially written by Cristian Gafton +--- Linux-PAM-1.0.2-orig/modules/pam_limits/pam_limits.8 2008-04-16 11:07:20.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_limits/pam_limits.8 2009-01-20 11:58:58.000000000 +0100 +@@ -1,132 +1,308 @@ + .\" Title: pam_limits +-.\" Author: +-.\" Generator: DocBook XSL Stylesheets v1.73.1 +-.\" Date: 04/16/2008 ++.\" Author: [see the "AUTHORS" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 + .\" Manual: Linux-PAM Manual + .\" Source: Linux-PAM Manual ++.\" Language: English + .\" +-.TH "PAM_LIMITS" "8" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" ++.TH "PAM_LIMITS" "8" "01/20/2009" "Linux-PAM Manual" "Linux-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- + .\" disable hyphenation + .nh + .\" disable justification (adjust text to left margin only) + .ad l +-.SH "NAME" +-pam_limits - PAM module to limit resources +-.SH "SYNOPSIS" +-.HP 14 +-\fBpam_limits\.so\fR [change_uid] [conf=\fI/path/to/limits\.conf\fR] [debug] [utmp_early] [noaudit] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_limits \- PAM module to limit resources ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_limits\&.so\fR\ 'u ++\fBpam_limits\&.so\fR [change_uid] [conf=\fI/path/to/limits\&.conf\fR] [debug] [utmp_early] [noaudit] ++.fam + .SH "DESCRIPTION" + .PP +-The pam_limits PAM module sets limits on the system resources that can be obtained in a user\-session\. Users of ++The pam_limits PAM module sets limits on the system resources that can be obtained in a user\-session\&. Users of + \fIuid=0\fR +-are affected by this limits, too\. ++are affected by this limits, too\&. + .PP + By default limits are taken from the +-\fI/etc/security/limits\.conf\fR +-config file\. Then individual files from the +-\fI/etc/security/limits\.d/\fR +-directory are read\. The files are parsed one after another in the order of "C" locale\. The effect of the individual files is the same as if all the files were concatenated together in the order of parsing\. If a config file is explicitely specified with a module option then the files in the above directory are not parsed\. ++\FC/etc/security/limits\&.conf\F[] ++config file\&. Then individual files from the ++\FC/etc/security/limits\&.d/\F[] ++directory are read\&. The files are parsed one after another in the order of "C" locale\&. The effect of the individual files is the same as if all the files were concatenated together in the order of parsing\&. If a config file is explicitely specified with a module option then the files in the above directory are not parsed\&. + .PP +-The module must not be called by a multithreaded application\. ++The module must not be called by a multithreaded application\&. + .PP +-If Linux PAM is compiled with audit support the module will report when it denies access based on limit of maximum number of concurrent login sessions\. ++If Linux PAM is compiled with audit support the module will report when it denies access based on limit of maximum number of concurrent login sessions\&. + .SH "OPTIONS" + .PP + \fBchange_uid\fR + .RS 4 +-Change real uid to the user for who the limits are set up\. Use this option if you have problems like login not forking a shell for user who has no processes\. Be warned that something else may break when you do this\. ++Change real uid to the user for who the limits are set up\&. Use this option if you have problems like login not forking a shell for user who has no processes\&. Be warned that something else may break when you do this\&. + .RE + .PP +-\fBconf=\fR\fB\fI/path/to/limits\.conf\fR\fR ++\fBconf=\fR\fB\fI/path/to/limits\&.conf\fR\fR + .RS 4 +-Indicate an alternative limits\.conf style configuration file to override the default\. ++Indicate an alternative limits\&.conf style configuration file to override the default\&. + .RE + .PP + \fBdebug\fR + .RS 4 +-Print debug information\. ++Print debug information\&. + .RE + .PP + \fButmp_early\fR + .RS 4 +-Some broken applications actually allocate a utmp entry for the user before the user is admitted to the system\. If some of the services you are configuring PAM for do this, you can selectively use this module argument to compensate for this behavior and at the same time maintain system\-wide consistency with a single limits\.conf file\. ++Some broken applications actually allocate a utmp entry for the user before the user is admitted to the system\&. If some of the services you are configuring PAM for do this, you can selectively use this module argument to compensate for this behavior and at the same time maintain system\-wide consistency with a single limits\&.conf file\&. + .RE + .PP + \fBnoaudit\fR + .RS 4 +-Do not report exceeded maximum logins count to the audit subsystem\. ++Do not report exceeded maximum logins count to the audit subsystem\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -731,40 +5814,391 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_limits/pam_limits.8 Linux-PAM-1.0.2/mo Only the \fBsession\fR -service is supported\. -+module type is provided\. ++module type is provided\&. .SH "RETURN VALUES" .PP PAM_ABORT -@@ -125,7 +125,7 @@ + .RS 4 +-Cannot get current limits\. ++Cannot get current limits\&. + .RE + .PP + PAM_IGNORE + .RS 4 +-No limits found for this user\. ++No limits found for this user\&. + .RE + .PP + PAM_PERM_DENIED + .RS 4 +-New limits could not be set\. ++New limits could not be set\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-Cannot read config file\. ++Cannot read config file\&. + .RE + .PP + PAM_SESSEION_ERR + .RS 4 +-Error recovering account name\. ++Error recovering account name\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-Limits were changed\. ++Limits were changed\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-The user is not known to the system\. ++The user is not known to the system\&. + .RE + .SH "FILES" + .PP +-\fI/etc/security/limits\.conf\fR ++\FC/etc/security/limits\&.conf\F[] + .RS 4 + Default configuration file + .RE + .SH "EXAMPLES" + .PP + For the services you need resources limits (login for example) put a the following line in +-\fI/etc/pam\.d/login\fR ++\FC/etc/pam\&.d/login\F[] + as the last line for that service (usually after the pam_unix session line): + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-#%PAM\-1\.0 ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++#%PAM\-1\&.0 + # + # Resource limits imposed on login sessions via pam_limits + # +-session required pam_limits\.so ++session required pam_limits\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .PP +-Replace "login" for each service you are using this module\. ++Replace "login" for each service you are using this module\&. + .SH "SEE ALSO" .PP \fBlimits.conf\fR(5), -\fBpam.d\fR(8), +-\fBpam\fR(8)\. +\fBpam.d\fR(5), - \fBpam\fR(8)\. ++\fBpam\fR(8)\&. .SH "AUTHORS" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_listfile/pam_listfile.8 Linux-PAM-1.0.2/modules/pam_listfile/pam_listfile.8 ---- Linux-PAM-1.0.2-old/modules/pam_listfile/pam_listfile.8 2008-04-16 11:07:24.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_listfile/pam_listfile.8 2008-10-17 13:02:06.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_limits was initially written by Cristian Gafton ++pam_limits was initially written by Cristian Gafton +--- Linux-PAM-1.0.2-orig/modules/pam_listfile/pam_listfile.8 2008-04-16 11:07:24.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_listfile/pam_listfile.8 2009-01-20 11:59:02.000000000 +0100 +@@ -1,23 +1,181 @@ .\" Title: pam_listfile - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_LISTFILE" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_LISTFILE" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_LISTFILE" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -98,15 +98,13 @@ + .ad l +-.SH "NAME" +-pam_listfile - deny or allow services based on an arbitrary file +-.SH "SYNOPSIS" +-.HP 16 +-\fBpam_listfile\.so\fR item=[tty|user|rhost|ruser|group|shell] sense=[allow|deny] file=\fI/path/filename\fR onerr=[succeed|fail] [apply=[\fIuser\fR|\fI@group\fR]] [quiet] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_listfile \- deny or allow services based on an arbitrary file ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_listfile\&.so\fR\ 'u ++\fBpam_listfile\&.so\fR item=[tty|user|rhost|ruser|group|shell] sense=[allow|deny] file=\fI/path/filename\fR onerr=[succeed|fail] [apply=[\fIuser\fR|\fI@group\fR]] [quiet] ++.fam + .SH "DESCRIPTION" + .PP +-pam_listfile is a PAM module which provides a way to deny or allow services based on an arbitrary file\. ++pam_listfile is a PAM module which provides a way to deny or allow services based on an arbitrary file\&. + .PP + The module gets the + \fBitem\fR +@@ -29,18 +187,18 @@ + \fIPAM_RHOST\fR; and ruser specifies the name of the remote user (if available) who made the request, + \fIPAM_RUSER\fR + \-\- and looks for an instance of that item in the +-\fBfile=\fR\fB\fIfilename\fR\fR\. +-\fIfilename\fR +-contains one line per item listed\. If the item is found, then if ++\fBfile=\fR\fB\fIfilename\fR\fR\&. ++\FCfilename\F[] ++contains one line per item listed\&. If the item is found, then if + \fBsense=\fR\fB\fIallow\fR\fR, + \fIPAM_SUCCESS\fR + is returned, causing the authorization request to succeed; else if + \fBsense=\fR\fB\fIdeny\fR\fR, + \fIPAM_AUTH_ERR\fR +-is returned, causing the authorization request to fail\. ++is returned, causing the authorization request to fail\&. + .PP + If an error is encountered (for instance, if +-\fIfilename\fR ++\FCfilename\F[] + does not exist, or a poorly\-constructed argument is encountered), then if + \fIonerr=succeed\fR, + \fIPAM_SUCCESS\fR +@@ -49,141 +207,175 @@ + \fIPAM_AUTH_ERR\fR + or + \fIPAM_SERVICE_ERR\fR +-(as appropriate) will be returned\. ++(as appropriate) will be returned\&. + .PP + An additional argument, +-\fBapply=\fR, can be used to restrict the application of the above to a specific user (\fBapply=\fR\fB\fIusername\fR\fR) or a given group (\fBapply=\fR\fB\fI@groupname\fR\fR)\. This added restriction is only meaningful when used with the ++\fBapply=\fR, can be used to restrict the application of the above to a specific user (\fBapply=\fR\fB\fIusername\fR\fR) or a given group (\fBapply=\fR\fB\fI@groupname\fR\fR)\&. This added restriction is only meaningful when used with the + \fItty\fR, + \fIrhost\fR + and + \fIshell\fR +-items\. ++items\&. + .PP +-Besides this last one, all arguments should be specified; do not count on any default behavior\. ++Besides this last one, all arguments should be specified; do not count on any default behavior\&. + .PP +-No credentials are awarded by this module\. ++No credentials are awarded by this module\&. + .SH "OPTIONS" + .PP + .PP + \fBitem=[tty|user|rhost|ruser|group|shell]\fR .RS 4 - Do not treat service refusals or missing list files as errors that need to be logged\. +-What is listed in the file and should be checked for\. ++What is listed in the file and should be checked for\&. + .RE + .PP + \fBsense=[allow|deny]\fR + .RS 4 +-Action to take if found in file, if the item is NOT found in the file, then the opposite action is requested\. ++Action to take if found in file, if the item is NOT found in the file, then the opposite action is requested\&. + .RE + .PP + \fBfile=\fR\fB\fI/path/filename\fR\fR + .RS 4 +-File containing one item per line\. The file needs to be a plain file and not world writeable\. ++File containing one item per line\&. The file needs to be a plain file and not world writeable\&. + .RE + .PP + \fBonerr=[succeed|fail]\fR + .RS 4 +-What to do if something weird happens like being unable to open the file\. ++What to do if something weird happens like being unable to open the file\&. + .RE + .PP + \fBapply=[\fR\fB\fIuser\fR\fR\fB|\fR\fB\fI@group\fR\fR\fB]\fR + .RS 4 +-Restrict the user class for which the restriction apply\. Note that with ++Restrict the user class for which the restriction apply\&. Note that with + \fBitem=[user|ruser|group]\fR + this does not make sense, but for + \fBitem=[tty|rhost|shell]\fR +-it have a meaning\. ++it have a meaning\&. + .RE + .PP + \fBquiet\fR + .RS 4 +-Do not treat service refusals or missing list files as errors that need to be logged\. ++Do not treat service refusals or missing list files as errors that need to be logged\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -777,11 +6211,129 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_listfile/pam_listfile.8 Linux-PAM-1.0. and -\fBsession\fR -are supported\. -+\fBsession\fR) are provided\. ++\fBsession\fR) are provided\&. .SH "RETURN VALUES" .PP .PP -@@ -182,7 +180,7 @@ + PAM_AUTH_ERR + .RS 4 +-Authentication failure\. ++Authentication failure\&. + .RE + .PP + PAM_BUF_ERR + .RS 4 +-Memory buffer error\. ++Memory buffer error\&. + .RE + .PP + PAM_IGNORE + .RS 4 + The rule does not apply to the + \fBapply\fR +-option\. ++option\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-Error in service module\. ++Error in service module\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-Success\. ++Success\&. + .RE + .SH "EXAMPLES" + .PP + Classic \'ftpusers\' authentication can be implemented with this entry in +-\fI/etc/pam\.d/ftpd\fR: ++\FC/etc/pam\&.d/ftpd\F[]: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ + # + # deny ftp\-access to users listed in the /etc/ftpusers file + # +-auth required pam_listfile\.so \e ++auth required pam_listfile\&.so \e + onerr=succeed item=user sense=deny file=/etc/ftpusers + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + Note, users listed in +-\fI/etc/ftpusers\fR ++\FC/etc/ftpusers\F[] + file are (counterintuitively) + \fInot\fR +-allowed access to the ftp service\. ++allowed access to the ftp service\&. + .PP + To allow login access only for certain users, you can use a +-\fI/etc/pam\.d/login\fR ++\FC/etc/pam\&.d/login\F[] + entry like this: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ + # + # permit login to users listed in /etc/loginusers + # +-auth required pam_listfile\.so \e ++auth required pam_listfile\&.so \e + onerr=fail item=user sense=allow file=/etc/loginusers + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + For this example to work, all users who are allowed to use the login service should be listed in the file +-\fI/etc/loginusers\fR\. Unless you are explicitly trying to lock out root, make sure that when you do this, you leave a way for root to log in, either by listing root in +-\fI/etc/loginusers\fR, or by listing a user who is able to ++\FC/etc/loginusers\F[]\&. Unless you are explicitly trying to lock out root, make sure that when you do this, you leave a way for root to log in, either by listing root in ++\FC/etc/loginusers\F[], or by listing a user who is able to + \fIsu\fR +-to the root account\. ++to the root account\&. + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -790,27 +6342,216 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_listfile/pam_listfile.8 Linux-PAM-1.0. \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_localuser/pam_localuser.8 Linux-PAM-1.0.2/modules/pam_localuser/pam_localuser.8 ---- Linux-PAM-1.0.2-old/modules/pam_localuser/pam_localuser.8 2008-04-16 11:07:27.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_localuser/pam_localuser.8 2008-10-17 13:02:09.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_listfile was written by Michael K\. Johnson and Elliot Lee \. ++pam_listfile was written by Michael K\&. Johnson and Elliot Lee \&. +--- Linux-PAM-1.0.2-orig/modules/pam_localuser/pam_localuser.8 2008-04-16 11:07:27.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_localuser/pam_localuser.8 2009-01-20 11:59:06.000000000 +0100 +@@ -1,88 +1,264 @@ .\" Title: pam_localuser - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_LOCALUSER" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_LOCALUSER" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_LOCALUSER" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -33,13 +33,13 @@ + .ad l +-.SH "NAME" +-pam_localuser - require users to be listed in /etc/passwd +-.SH "SYNOPSIS" +-.HP 17 +-\fBpam_localuser\.so\fR [debug] [file=\fI/path/passwd\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_localuser \- require users to be listed in /etc/passwd ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_localuser\&.so\fR\ 'u ++\fBpam_localuser\&.so\fR [debug] [file=\fI/path/passwd\fR] ++.fam + .SH "DESCRIPTION" + .PP +-pam_localuser is a PAM module to help implementing site\-wide login policies, where they typically include a subset of the network\'s users and a few accounts that are local to a particular workstation\. Using pam_localuser and pam_wheel or pam_listfile is an effective way to restrict access to either local users and/or a subset of the network\'s users\. ++pam_localuser is a PAM module to help implementing site\-wide login policies, where they typically include a subset of the network\'s users and a few accounts that are local to a particular workstation\&. Using pam_localuser and pam_wheel or pam_listfile is an effective way to restrict access to either local users and/or a subset of the network\'s users\&. + .PP +-This could also be implemented using pam_listfile\.so and a very short awk script invoked by cron, but it\'s common enough to have been separated out\. ++This could also be implemented using pam_listfile\&.so and a very short awk script invoked by cron, but it\'s common enough to have been separated out\&. + .SH "OPTIONS" + .PP + .PP + \fBdebug\fR + .RS 4 +-Print debug information\. ++Print debug information\&. + .RE + .PP + \fBfile=\fR\fB\fI/path/passwd\fR\fR + .RS 4 Use a file other than - \fI/etc/passwd\fR\. +-\fI/etc/passwd\fR\. ++\FC/etc/passwd\F[]\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -821,11 +6562,72 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_localuser/pam_localuser.8 Linux-PAM-1. \fBpassword\fR and -\fBsession\fR) are supported\. -+\fBsession\fR) are provided\. ++\fBsession\fR) are provided\&. .SH "RETURN VALUES" .PP .PP -@@ -81,7 +81,7 @@ + PAM_SUCCESS + .RS 4 +-The new localuser was set successfull\. ++The new localuser was set successfull\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-No username was given\. ++No username was given\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-User not known\. ++User not known\&. + .RE + .SH "EXAMPLES" + .PP + Add the following line to +-\fI/etc/pam\.d/su\fR +-to allow only local users in group wheel to use su\. ++\FC/etc/pam\&.d/su\F[] ++to allow only local users in group wheel to use su\&. + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-account sufficient pam_localuser\.so +-account required pam_wheel\.so ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++account sufficient pam_localuser\&.so ++account required pam_wheel\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "FILES" + .PP +-\fI/etc/passwd\fR ++\FC/etc/passwd\F[] + .RS 4 +-Local user account information\. ++Local user account information\&. + .RE + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -834,27 +6636,205 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_localuser/pam_localuser.8 Linux-PAM-1. \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_loginuid/pam_loginuid.8 Linux-PAM-1.0.2/modules/pam_loginuid/pam_loginuid.8 ---- Linux-PAM-1.0.2-old/modules/pam_loginuid/pam_loginuid.8 2008-04-16 11:09:18.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_loginuid/pam_loginuid.8 2008-10-17 13:02:11.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_localuser was written by Nalin Dahyabhai \. ++pam_localuser was written by Nalin Dahyabhai \&. +--- Linux-PAM-1.0.2-orig/modules/pam_loginuid/pam_loginuid.8 2008-04-16 11:09:18.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_loginuid/pam_loginuid.8 2009-01-20 11:59:09.000000000 +0100 +@@ -1,63 +1,239 @@ .\" Title: pam_loginuid - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_LOGINUID" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_LOGINUID" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_LOGINUID" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -24,11 +24,11 @@ + .ad l +-.SH "NAME" +-pam_loginuid - Record user's login uid to the process attribute +-.SH "SYNOPSIS" +-.HP 16 +-\fBpam_loginuid\.so\fR [require_auditd] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_loginuid \- Record user\'s login uid to the process attribute ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_loginuid\&.so\fR\ 'u ++\fBpam_loginuid\&.so\fR [require_auditd] ++.fam + .SH "DESCRIPTION" + .PP +-The pam_loginuid module sets the loginuid process attribute for the process that was authenticated\. This is necessary for applications to be correctly audited\. This PAM module should only be used for entry point applications like: login, sshd, gdm, vsftpd, crond and atd\. There are probably other entry point applications besides these\. You should not use it for applications like sudo or su as that defeats the purpose by changing the loginuid to the account they just switched to\. ++The pam_loginuid module sets the loginuid process attribute for the process that was authenticated\&. This is necessary for applications to be correctly audited\&. This PAM module should only be used for entry point applications like: login, sshd, gdm, vsftpd, crond and atd\&. There are probably other entry point applications besides these\&. You should not use it for applications like sudo or su as that defeats the purpose by changing the loginuid to the account they just switched to\&. + .SH "OPTIONS" + .PP + \fBrequire_auditd\fR .RS 4 - This option, when given, will cause this module to query the audit daemon status and deny logins if it is not running\. +-This option, when given, will cause this module to query the audit daemon status and deny logins if it is not running\. ++This option, when given, will cause this module to query the audit daemon status and deny logins if it is not running\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -863,11 +6843,55 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_loginuid/pam_loginuid.8 Linux-PAM-1.0. +Only the \fBsession\fR -service is supported\. -+module type is provided\. ++module type is provided\&. .SH "RETURN VALUES" .PP .PP -@@ -54,7 +54,7 @@ + PAM_SESSION_ERR + .RS 4 +-An error occured during session management\. ++An error occured during session management\&. + .RE + .SH "EXAMPLES" + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-#%PAM\-1\.0 +-auth required pam_unix\.so +-auth required pam_nologin\.so +-account required pam_unix\.so +-password required pam_unix\.so +-session required pam_unix\.so +-session required pam_loginuid\.so ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++#%PAM\-1\&.0 ++auth required pam_unix\&.so ++auth required pam_nologin\&.so ++account required pam_unix\&.so ++password required pam_unix\&.so ++session required pam_unix\&.so ++session required pam_loginuid\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -876,36 +6900,287 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_loginuid/pam_loginuid.8 Linux-PAM-1.0. \fBpam\fR(8), \fBauditctl\fR(8), \fBauditd\fR(8) -diff -urN Linux-PAM-1.0.2-old/modules/pam_mail/pam_mail.8 Linux-PAM-1.0.2/modules/pam_mail/pam_mail.8 ---- Linux-PAM-1.0.2-old/modules/pam_mail/pam_mail.8 2008-04-16 11:07:30.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_mail/pam_mail.8 2008-10-17 13:02:14.000000000 +0200 -@@ -1,11 +1,11 @@ + .SH "AUTHOR" + .PP +-pam_loginuid was written by Steve Grubb ++pam_loginuid was written by Steve Grubb +--- Linux-PAM-1.0.2-orig/modules/pam_mail/pam_mail.8 2008-04-16 11:07:30.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_mail/pam_mail.8 2009-01-20 11:59:12.000000000 +0100 +@@ -1,139 +1,315 @@ .\" Title: pam_mail - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_MAIL" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_MAIL" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_MAIL" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -14,7 +14,7 @@ - pam_mail - Inform about available mail - .SH "SYNOPSIS" - .HP 12 + .ad l +-.SH "NAME" +-pam_mail - Inform about available mail +-.SH "SYNOPSIS" +-.HP 12 -\fBpam_mail\.so\fR [close] [debug] [dir=\fImaildir\fR] [empty] [hash=\fIcount\fR] [noenv] [nopen] [quit] [standard] -+\fBpam_mail\.so\fR [close] [debug] [dir=\fImaildir\fR] [empty] [hash=\fIcount\fR] [noenv] [nopen] [quiet] [standard] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_mail \- Inform about available mail ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_mail\&.so\fR\ 'u ++\fBpam_mail\&.so\fR [close] [debug] [dir=\fImaildir\fR] [empty] [hash=\fIcount\fR] [noenv] [nopen] [quiet] [standard] ++.fam .SH "DESCRIPTION" .PP - The pam_mail PAM module provides the "you have new mail" service to the user\. It can be plugged into any application that has credential or session hooks\. It gives a single message indicating the -@@ -87,13 +87,13 @@ +-The pam_mail PAM module provides the "you have new mail" service to the user\. It can be plugged into any application that has credential or session hooks\. It gives a single message indicating the ++The pam_mail PAM module provides the "you have new mail" service to the user\&. It can be plugged into any application that has credential or session hooks\&. It gives a single message indicating the + \fInewness\fR +-of any mail it finds in the user\'s mail folder\. This module also sets the PAM environment variable, +-\fBMAIL\fR, to the user\'s mail directory\. ++of any mail it finds in the user\'s mail folder\&. This module also sets the PAM environment variable, ++\fBMAIL\fR, to the user\'s mail directory\&. + .PP + If the mail spool file (be it +-\fI/var/mail/$USER\fR ++\FC/var/mail/$USER\F[] + or a pathname given with the + \fBdir=\fR + parameter) is a directory then pam_mail assumes it is in the + \fIMaildir\fR +-format\. ++format\&. + .SH "OPTIONS" + .PP + .PP + \fBclose\fR .RS 4 - Old style "You have\.\.\." format which doesn\'t show the mail spool being used\. This also implies "empty"\. +-Indicate if the user has any mail also on logout\. ++Indicate if the user has any mail also on logout\&. + .RE + .PP + \fBdebug\fR + .RS 4 +-Print debug information\. ++Print debug information\&. + .RE + .PP + \fBdir=\fR\fB\fImaildir\fR\fR + .RS 4 + Look for the users\' mail in an alternative location defined by +-\fImaildir/\fR\. The default location for mail is +-\fI/var/mail/\fR\. Note, if the supplied +-\fImaildir\fR +-is prefixed by a \'~\', the directory is interpreted as indicating a file in the user\'s home directory\. ++\FCmaildir/\F[]\&. The default location for mail is ++\FC/var/mail/\F[]\&. Note, if the supplied ++\FCmaildir\F[] ++is prefixed by a \'~\', the directory is interpreted as indicating a file in the user\'s home directory\&. + .RE + .PP + \fBempty\fR + .RS 4 +-Also print message if user has no mail\. ++Also print message if user has no mail\&. + .RE + .PP + \fBhash=\fR\fB\fIcount\fR\fR + .RS 4 +-Mail directory hash depth\. For example, a ++Mail directory hash depth\&. For example, a + \fIhashcount\fR + of 2 would make the mail file be +-\fI/var/spool/mail/u/s/user\fR\. ++\FC/var/spool/mail/u/s/user\F[]\&. + .RE + .PP + \fBnoenv\fR + .RS 4 + Do not set the + \fBMAIL\fR +-environment variable\. ++environment variable\&. + .RE + .PP + \fBnopen\fR + .RS 4 +-Don\'t print any mail information on login\. This flag is useful to get the ++Don\'t print any mail information on login\&. This flag is useful to get the + \fBMAIL\fR +-environment variable set, but to not display any information about it\. ++environment variable set, but to not display any information about it\&. + .RE + .PP + \fBquiet\fR + .RS 4 +-Only report when there is new mail\. ++Only report when there is new mail\&. + .RE + .PP + \fBstandard\fR + .RS 4 +-Old style "You have\.\.\." format which doesn\'t show the mail spool being used\. This also implies "empty"\. ++Old style "You have\&.\&.\&." format which doesn\'t show the mail spool being used\&. This also implies "empty"\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -917,11 +7192,67 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_mail/pam_mail.8 Linux-PAM-1.0.2/module -\fBaccount\fR -services are supported\. +\fBauth\fR -+(on establishment and deletion of credentials) module types are provided\. ++(on establishment and deletion of credentials) module types are provided\&. .SH "RETURN VALUES" .PP PAM_BUF_ERR -@@ -132,7 +132,7 @@ + .RS 4 +-Memory buffer error\. ++Memory buffer error\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-Badly formed arguments\. ++Badly formed arguments\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-Success\. ++Success\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-User not known\. ++User not known\&. + .RE + .SH "EXAMPLES" + .PP + Add the following line to +-\fI/etc/pam\.d/login\fR +-to indicate that the user has new mail when they login to the system\. ++\FC/etc/pam\&.d/login\F[] ++to indicate that the user has new mail when they login to the system\&. + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-session optional pam_mail\.so standard ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++session optional pam_mail\&.so standard + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -930,27 +7261,227 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_mail/pam_mail.8 Linux-PAM-1.0.2/module \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_mkhomedir/pam_mkhomedir.8 Linux-PAM-1.0.2/modules/pam_mkhomedir/pam_mkhomedir.8 ---- Linux-PAM-1.0.2-old/modules/pam_mkhomedir/pam_mkhomedir.8 2008-04-16 11:07:34.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_mkhomedir/pam_mkhomedir.8 2008-10-17 13:02:17.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_mail was written by Andrew G\. Morgan \. ++pam_mail was written by Andrew G\&. Morgan \&. +--- Linux-PAM-1.0.2-orig/modules/pam_mkhomedir/pam_mkhomedir.8 2008-04-16 11:07:34.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_mkhomedir/pam_mkhomedir.8 2009-01-20 11:59:15.000000000 +0100 +@@ -1,109 +1,285 @@ .\" Title: pam_mkhomedir - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_MKHOMEDIR" "8" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" -+.TH "PAM_MKHOMEDIR" "8" "10/17/2008" "Linux-PAM Manual" "Linux-PAM Manual" ++.TH "PAM_MKHOMEDIR" "8" "01/20/2009" "Linux-PAM Manual" "Linux-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -41,11 +41,11 @@ + .ad l +-.SH "NAME" +-pam_mkhomedir - PAM module to create users home directory +-.SH "SYNOPSIS" +-.HP 17 +-\fBpam_mkhomedir\.so\fR [silent] [umask=\fImode\fR] [skel=\fIskeldir\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_mkhomedir \- PAM module to create users home directory ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_mkhomedir\&.so\fR\ 'u ++\fBpam_mkhomedir\&.so\fR [silent] [umask=\fImode\fR] [skel=\fIskeldir\fR] ++.fam + .SH "DESCRIPTION" + .PP +-The pam_mkhomedir PAM module will create a users home directory if it does not exist when the session begins\. This allows users to be present in central database (such as NIS, kerberos or LDAP) without using a distributed file system or pre\-creating a large number of directories\. The skeleton directory (usually +-\fI/etc/skel/\fR) is used to copy default files and also set\'s a umask for the creation\. ++The pam_mkhomedir PAM module will create a users home directory if it does not exist when the session begins\&. This allows users to be present in central database (such as NIS, kerberos or LDAP) without using a distributed file system or pre\-creating a large number of directories\&. The skeleton directory (usually ++\FC/etc/skel/\F[]) is used to copy default files and also set\'s a umask for the creation\&. + .PP +-The new users home directory will not be removed after logout of the user\. ++The new users home directory will not be removed after logout of the user\&. + .SH "OPTIONS" + .PP + \fBsilent\fR + .RS 4 +-Don\'t print informative messages\. ++Don\'t print informative messages\&. + .RE + .PP + \fBumask=\fR\fB\fImask\fR\fR + .RS 4 + The user file\-creation mask is set to +-\fImask\fR\. The default value of mask is 0022\. ++\fImask\fR\&. The default value of mask is 0022\&. + .RE + .PP + \fBskel=\fR\fB\fI/path/to/skel/directory\fR\fR + .RS 4 + Indicate an alternative +-\fIskel\fR ++\FCskel\F[] directory to override the default - \fI/etc/skel\fR\. +-\fI/etc/skel\fR\. ++\FC/etc/skel\F[]\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -958,40 +7489,311 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_mkhomedir/pam_mkhomedir.8 Linux-PAM-1. Only the \fBsession\fR -service is supported\. -+module type is provided\. ++module type is provided\&. .SH "RETURN VALUES" .PP PAM_BUF_ERR -@@ -102,7 +102,7 @@ + .RS 4 +-Memory buffer error\. ++Memory buffer error\&. + .RE + .PP + PAM_CRED_INSUFFICIENT + .RS 4 +-Insufficient credentials to access authentication data\. ++Insufficient credentials to access authentication data\&. + .RE + .PP + PAM_PERM_DENIED + .RS 4 +-Not enough permissions to create the new directory or read the skel directory\. ++Not enough permissions to create the new directory or read the skel directory\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-User not known to the underlying authentication module\. ++User not known to the underlying authentication module\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-Environment variables were set\. ++Environment variables were set\&. + .RE + .SH "FILES" + .PP +-\fI/etc/skel\fR ++\FC/etc/skel\F[] + .RS 4 + Default skel directory + .RE + .SH "EXAMPLES" + .PP +-A sample /etc/pam\.d/login file: ++A sample /etc/pam\&.d/login file: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +- auth requisite pam_securetty\.so +- auth sufficient pam_ldap\.so +- auth required pam_unix\.so +- auth required pam_nologin\.so +- account sufficient pam_ldap\.so +- account required pam_unix\.so +- password required pam_unix\.so +- session required pam_mkhomedir\.so skel=/etc/skel/ umask=0022 +- session required pam_unix\.so +- session optional pam_lastlog\.so +- session optional pam_mail\.so standard ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++ auth requisite pam_securetty\&.so ++ auth sufficient pam_ldap\&.so ++ auth required pam_unix\&.so ++ auth required pam_nologin\&.so ++ account sufficient pam_ldap\&.so ++ account required pam_unix\&.so ++ password required pam_unix\&.so ++ session required pam_mkhomedir\&.so skel=/etc/skel/ umask=0022 ++ session required pam_unix\&.so ++ session optional pam_lastlog\&.so ++ session optional pam_mail\&.so standard + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp .SH "SEE ALSO" .PP -\fBpam.d\fR(8), +-\fBpam\fR(8)\. +\fBpam.d\fR(5), - \fBpam\fR(8)\. ++\fBpam\fR(8)\&. .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_motd/pam_motd.8 Linux-PAM-1.0.2/modules/pam_motd/pam_motd.8 ---- Linux-PAM-1.0.2-old/modules/pam_motd/pam_motd.8 2008-04-16 11:07:37.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_motd/pam_motd.8 2008-10-17 13:02:20.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_mkhomedir was written by Jason Gunthorpe \. ++pam_mkhomedir was written by Jason Gunthorpe \&. +--- Linux-PAM-1.0.2-orig/modules/pam_motd/pam_motd.8 2008-04-16 11:07:37.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_motd/pam_motd.8 2009-01-20 11:59:18.000000000 +0100 +@@ -1,64 +1,240 @@ .\" Title: pam_motd - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_MOTD" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_MOTD" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_MOTD" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -28,11 +28,11 @@ - \fI/path/filename\fR - file is displayed as message of the day\. + .ad l +-.SH "NAME" +-pam_motd - Display the motd file +-.SH "SYNOPSIS" +-.HP 12 +-\fBpam_motd\.so\fR [motd=\fI/path/filename\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_motd \- Display the motd file ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_motd\&.so\fR\ 'u ++\fBpam_motd\&.so\fR [motd=\fI/path/filename\fR] ++.fam + .SH "DESCRIPTION" + .PP +-pam_motd is a PAM module that can be used to display arbitrary motd (message of the day) files after a succesful login\. By default the +-\fI/etc/motd\fR +-file is shown\. The message size is limited to 64KB\. ++pam_motd is a PAM module that can be used to display arbitrary motd (message of the day) files after a succesful login\&. By default the ++\FC/etc/motd\F[] ++file is shown\&. The message size is limited to 64KB\&. + .SH "OPTIONS" + .PP + \fBmotd=\fR\fB\fI/path/filename\fR\fR + .RS 4 + The +-\fI/path/filename\fR +-file is displayed as message of the day\. ++\FC/path/filename\F[] ++file is displayed as message of the day\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -999,11 +7801,49 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_motd/pam_motd.8 Linux-PAM-1.0.2/module Only the \fBsession\fR -service is supported\. -+module type is provided\. ++module type is provided\&. .SH "RETURN VALUES" .PP PAM_IGNORE -@@ -57,7 +57,7 @@ + .RS 4 +-This is the only return value of this module\. ++This is the only return value of this module\&. + .RE + .SH "EXAMPLES" + .PP + The suggested usage for +-\fI/etc/pam\.d/login\fR ++\FC/etc/pam\&.d/login\F[] + is: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-session optional pam_motd\.so motd=/etc/motd ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++session optional pam_motd\&.so motd=/etc/motd + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" + .PP \fBmotd\fR(5), \fBpam.conf\fR(5), @@ -1012,63 +7852,615 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_motd/pam_motd.8 Linux-PAM-1.0.2/module \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_namespace/namespace.conf.5 Linux-PAM-1.0.2/modules/pam_namespace/namespace.conf.5 ---- Linux-PAM-1.0.2-old/modules/pam_namespace/namespace.conf.5 2008-04-16 11:09:13.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_namespace/namespace.conf.5 2008-10-17 13:02:24.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_motd was written by Ben Collins \. ++pam_motd was written by Ben Collins \&. +--- Linux-PAM-1.0.2-orig/modules/pam_namespace/namespace.conf.5 2008-04-16 11:09:13.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_namespace/namespace.conf.5 2009-01-20 11:59:23.000000000 +0100 +@@ -1,40 +1,196 @@ .\" Title: namespace.conf - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHORS" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "NAMESPACE\.CONF" "5" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "NAMESPACE\.CONF" "5" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "NAMESPACE\&.CONF" "5" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -18,7 +18,7 @@ - \fIpam_namespace\.so\fR - module allows setup of private namespaces with polyinstantiated directories\. Directories can be polyinstantiated based on user name or, in the case of SELinux, user name, sensitivity level or complete security context\. If an executable script - \fI/etc/security/namespace\.init\fR --exists, it is used to initialize the namespace every time a new instance directory is setup\. The script receives the polyinstantiated directory path and the instance directory path as its arguments\. -+exists, it is used to initialize the namespace every time an instance directory is set up and mounted\. The script receives the polyinstantiated directory path and the instance directory path as its arguments\. + .ad l +-.SH "NAME" +-namespace.conf - the namespace configuration file ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++namespace.conf \- the namespace configuration file + .SH "DESCRIPTION" .PP The - \fI/etc/security/namespace\.conf\fR -diff -urN Linux-PAM-1.0.2-old/modules/pam_namespace/pam_namespace.8 Linux-PAM-1.0.2/modules/pam_namespace/pam_namespace.8 ---- Linux-PAM-1.0.2-old/modules/pam_namespace/pam_namespace.8 2008-04-16 11:09:14.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_namespace/pam_namespace.8 2008-10-17 13:02:25.000000000 +0200 -@@ -1,11 +1,11 @@ +-\fIpam_namespace\.so\fR +-module allows setup of private namespaces with polyinstantiated directories\. Directories can be polyinstantiated based on user name or, in the case of SELinux, user name, sensitivity level or complete security context\. If an executable script +-\fI/etc/security/namespace\.init\fR +-exists, it is used to initialize the namespace every time a new instance directory is setup\. The script receives the polyinstantiated directory path and the instance directory path as its arguments\. ++\fIpam_namespace\&.so\fR ++module allows setup of private namespaces with polyinstantiated directories\&. Directories can be polyinstantiated based on user name or, in the case of SELinux, user name, sensitivity level or complete security context\&. If an executable script ++\FC/etc/security/namespace\&.init\F[] ++exists, it is used to initialize the namespace every time an instance directory is set up and mounted\&. The script receives the polyinstantiated directory path and the instance directory path as its arguments\&. + .PP + The +-\fI/etc/security/namespace\.conf\fR +-file specifies which directories are polyinstantiated, how they are polyinstantiated, how instance directories would be named, and any users for whom polyinstantiation would not be performed\. ++\FC/etc/security/namespace\&.conf\F[] ++file specifies which directories are polyinstantiated, how they are polyinstantiated, how instance directories would be named, and any users for whom polyinstantiation would not be performed\&. + .PP + When someone logs in, the file +-\fInamespace\.conf\fR +-is scanned\. Comments are marked by ++\FCnamespace\&.conf\F[] ++is scanned\&. Comments are marked by + \fI#\fR +-characters\. Each non comment line represents one polyinstantiated directory\. The fields are separated by spaces but can be quoted by ++characters\&. Each non comment line represents one polyinstantiated directory\&. The fields are separated by spaces but can be quoted by + \fI"\fR + characters also escape sequences + \fI\eb\fR, + \fI\en\fR, and + \fI\et\fR +-are recognized\. The fields are as follows: ++are recognized\&. The fields are as follows: + .PP + \fIpolydir\fR + \fIinstance_prefix\fR +@@ -42,92 +198,110 @@ + \fIlist_of_uids\fR + .PP + The first field, +-\fIpolydir\fR, is the absolute pathname of the directory to polyinstantiate\. The special string ++\fIpolydir\fR, is the absolute pathname of the directory to polyinstantiate\&. The special string + \fI$HOME\fR + is replaced with the user\'s home directory, and + \fI$USER\fR +-with the username\. This field cannot be blank\. ++with the username\&. This field cannot be blank\&. + .PP + The second field, + \fIinstance_prefix\fR +-is the string prefix used to build the pathname for the instantiation of \. Depending on the polyinstantiation ++is the string prefix used to build the pathname for the instantiation of \&. Depending on the polyinstantiation + \fImethod\fR +-it is then appended with "instance differentiation string" to generate the final instance directory path\. This directory is created if it did not exist already, and is then bind mounted on the to provide an instance of based on the column\. The special string ++it is then appended with "instance differentiation string" to generate the final instance directory path\&. This directory is created if it did not exist already, and is then bind mounted on the to provide an instance of based on the column\&. The special string + \fI$HOME\fR + is replaced with the user\'s home directory, and + \fI$USER\fR +-with the username\. This field cannot be blank\. ++with the username\&. This field cannot be blank\&. + .PP + The third field, +-\fImethod\fR, is the method used for polyinstantiation\. It can take these values; "user" for polyinstantiation based on user name, "level" for polyinstantiation based on process MLS level and user name, "context" for polyinstantiation based on process security context and user name, "tmpfs" for mounting tmpfs filesystem as an instance dir, and "tmpdir" for creating temporary directory as an instance dir which is removed when the user\'s session is closed\. Methods "context" and "level" are only available with SELinux\. This field cannot be blank\. ++\fImethod\fR, is the method used for polyinstantiation\&. It can take these values; "user" for polyinstantiation based on user name, "level" for polyinstantiation based on process MLS level and user name, "context" for polyinstantiation based on process security context and user name, "tmpfs" for mounting tmpfs filesystem as an instance dir, and "tmpdir" for creating temporary directory as an instance dir which is removed when the user\'s session is closed\&. Methods "context" and "level" are only available with SELinux\&. This field cannot be blank\&. + .PP + The fourth field, +-\fIlist_of_uids\fR, is a comma separated list of user names for whom the polyinstantiation is not performed\. If left blank, polyinstantiation will be performed for all users\. If the list is preceded with a single "~" character, polyinstantiation is performed only for users in the list\. ++\fIlist_of_uids\fR, is a comma separated list of user names for whom the polyinstantiation is not performed\&. If left blank, polyinstantiation will be performed for all users\&. If the list is preceded with a single "~" character, polyinstantiation is performed only for users in the list\&. + .PP + The + \fImethod\fR + field can contain also following optional flags separated by + \fI:\fR +-characters\. ++characters\&. + .PP + \fIcreate\fR=\fImode\fR,\fIowner\fR,\fIgroup\fR +-\- create the polyinstantiated directory\. The mode, owner and group parameters are optional\. The default for mode is determined by umask, the default owner is the user whose session is opened, the default group is the primary group of the user\. ++\- create the polyinstantiated directory\&. The mode, owner and group parameters are optional\&. The default for mode is determined by umask, the default owner is the user whose session is opened, the default group is the primary group of the user\&. + .PP + \fIiscript\fR=\fIpath\fR +-\- path to the instance directory init script\. The base directory for relative paths is +-\fI/etc/security/namespace\.d\fR\. ++\- path to the instance directory init script\&. The base directory for relative paths is ++\FC/etc/security/namespace\&.d\F[]\&. + .PP + \fInoinit\fR +-\- instance directory init script will not be executed\. ++\- instance directory init script will not be executed\&. + .PP + \fIshared\fR +-\- the instance directories for "context" and "level" methods will not contain the user name and will be shared among all users\. ++\- the instance directories for "context" and "level" methods will not contain the user name and will be shared among all users\&. + .PP +-The directory where polyinstantiated instances are to be created, must exist and must have, by default, the mode of 0000\. The requirement that the instance parent be of mode 0000 can be overridden with the command line option ++The directory where polyinstantiated instances are to be created, must exist and must have, by default, the mode of 0000\&. The requirement that the instance parent be of mode 0000 can be overridden with the command line option + \fIignore_instance_parent_mode\fR + .PP +-In case of context or level polyinstantiation the SELinux context which is used for polyinstantiation is the context used for executing a new process as obtained by getexeccon\. This context must be set by the calling application or +-\fIpam_selinux\.so\fR +-module\. If this context is not set the polyinstatiation will be based just on user name\. ++In case of context or level polyinstantiation the SELinux context which is used for polyinstantiation is the context used for executing a new process as obtained by getexeccon\&. This context must be set by the calling application or ++\FCpam_selinux\&.so\F[] ++module\&. If this context is not set the polyinstatiation will be based just on user name\&. + .PP +-The "instance differentiation string" is for "user" method and _ for "context" and "level" methods\. If the whole string is too long the end of it is replaced with md5sum of itself\. Also when command line option ++The "instance differentiation string" is for "user" method and _ for "context" and "level" methods\&. If the whole string is too long the end of it is replaced with md5sum of itself\&. Also when command line option + \fIgen_hash\fR +-is used the whole string is replaced with md5sum of itself\. ++is used the whole string is replaced with md5sum of itself\&. + .SH "EXAMPLES" + .PP + These are some example lines which might be specified in +-\fI/etc/security/namespace\.conf\fR\. ++\FC/etc/security/namespace\&.conf\F[]\&. + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ + # The following three lines will polyinstantiate /tmp, +- # /var/tmp and user\'s home directories\. /tmp and /var/tmp ++ # /var/tmp and user\'s home directories\&. /tmp and /var/tmp + # will be polyinstantiated based on the security level + # as well as user name, whereas home directory will be +- # polyinstantiated based on the full security context and user name\. ++ # polyinstantiated based on the full security context and user name\&. + # Polyinstantiation will not be performed for user root + # and adm for directories /tmp and /var/tmp, whereas home +- # directories will be polyinstantiated for all users\. ++ # directories will be polyinstantiated for all users\&. + # + # Note that instance directories do not have to reside inside +- # the polyinstantiated directory\. In the examples below, ++ # the polyinstantiated directory\&. In the examples below, + # instances of /tmp will be created in /tmp\-inst directory, + # where as instances of /var/tmp and users home directories + # will reside within the directories that are being +- # polyinstantiated\. ++ # polyinstantiated\&. + # + /tmp /tmp\-inst/ level root,adm + /var/tmp /var/tmp/tmp\-inst/ level root,adm +- $HOME $HOME/$USER\.inst/inst\- context ++ $HOME $HOME/$USER\&.inst/inst\- context + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .PP +-For the s you need polyinstantiation (login for example) put the following line in /etc/pam\.d/ as the last line for session group: ++For the s you need polyinstantiation (login for example) put the following line in /etc/pam\&.d/ as the last line for session group: + .PP +-session required pam_namespace\.so [arguments] ++session required pam_namespace\&.so [arguments] + .PP +-This module also depends on pam_selinux\.so setting the context\. ++This module also depends on pam_selinux\&.so setting the context\&. + .SH "SEE ALSO" + .PP + +@@ -136,4 +310,4 @@ + \fBpam\fR(8) + .SH "AUTHORS" + .PP +-The namespace\.conf manual page was written by Janak Desai \. More features added by Tomas Mraz \. ++The namespace\&.conf manual page was written by Janak Desai \&. More features added by Tomas Mraz \&. +--- Linux-PAM-1.0.2-orig/modules/pam_namespace/pam_namespace.8 2008-04-16 11:09:14.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_namespace/pam_namespace.8 2009-01-20 11:59:24.000000000 +0100 +@@ -1,27 +1,185 @@ .\" Title: pam_namespace - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHORS" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_NAMESPACE" "8" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" -+.TH "PAM_NAMESPACE" "8" "10/17/2008" "Linux-PAM Manual" "Linux-PAM Manual" ++.TH "PAM_NAMESPACE" "8" "01/20/2009" "Linux-PAM Manual" "Linux-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -19,7 +19,7 @@ + .ad l +-.SH "NAME" +-pam_namespace - PAM module for configuring namespace for a session +-.SH "SYNOPSIS" +-.HP 17 +-\fBpam_namespace\.so\fR [debug] [unmnt_remnt] [unmnt_only] [require_selinux] [gen_hash] [ignore_config_error] [ignore_instance_parent_mode] [no_unmount_on_close] [use_current_context] [use_default_context] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_namespace \- PAM module for configuring namespace for a session ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_namespace\&.so\fR\ 'u ++\fBpam_namespace\&.so\fR [debug] [unmnt_remnt] [unmnt_only] [require_selinux] [gen_hash] [ignore_config_error] [ignore_instance_parent_mode] [no_unmount_on_close] [use_current_context] [use_default_context] ++.fam + .SH "DESCRIPTION" .PP - The pam_namespace PAM module sets up a private namespace for a session with polyinstantiated directories\. A polyinstantiated directory provides a different instance of itself based on user name, or when using SELinux, user name, security context or both\. If an executable script - \fI/etc/security/namespace\.init\fR +-The pam_namespace PAM module sets up a private namespace for a session with polyinstantiated directories\. A polyinstantiated directory provides a different instance of itself based on user name, or when using SELinux, user name, security context or both\. If an executable script +-\fI/etc/security/namespace\.init\fR -exists, it is used to initialize the namespace every time a new instance directory is setup\. The script receives the polyinstantiated directory path, the instance directory path, flag whether the instance directory was newly created (0 for no, 1 for yes), and the user name as its arguments\. -+exists, it is used to initialize the instance directory after it is set up and mounted on the polyinstantiated direcory\. The script receives the polyinstantiated directory path, the instance directory path, flag whether the instance directory was newly created (0 for no, 1 for yes), and the user name as its arguments\. ++The pam_namespace PAM module sets up a private namespace for a session with polyinstantiated directories\&. A polyinstantiated directory provides a different instance of itself based on user name, or when using SELinux, user name, security context or both\&. If an executable script ++\FC/etc/security/namespace\&.init\F[] ++exists, it is used to initialize the instance directory after it is set up and mounted on the polyinstantiated direcory\&. The script receives the polyinstantiated directory path, the instance directory path, flag whether the instance directory was newly created (0 for no, 1 for yes), and the user name as its arguments\&. .PP - The pam_namespace module disassociates the session namespace from the parent namespace\. Any mounts/unmounts performed in the parent namespace, such as mounting of devices, are not reflected in the session namespace\. To propagate selected mount/unmount events from the parent namespace into the disassociated session namespace, an administrator may use the special shared\-subtree feature\. For additional information on shared\-subtree feature, please refer to the mount(8) man page and the shared\-subtree description at http://lwn\.net/Articles/159077 and http://lwn\.net/Articles/159092\. +-The pam_namespace module disassociates the session namespace from the parent namespace\. Any mounts/unmounts performed in the parent namespace, such as mounting of devices, are not reflected in the session namespace\. To propagate selected mount/unmount events from the parent namespace into the disassociated session namespace, an administrator may use the special shared\-subtree feature\. For additional information on shared\-subtree feature, please refer to the mount(8) man page and the shared\-subtree description at http://lwn\.net/Articles/159077 and http://lwn\.net/Articles/159092\. ++The pam_namespace module disassociates the session namespace from the parent namespace\&. Any mounts/unmounts performed in the parent namespace, such as mounting of devices, are not reflected in the session namespace\&. To propagate selected mount/unmount events from the parent namespace into the disassociated session namespace, an administrator may use the special shared\-subtree feature\&. For additional information on shared\-subtree feature, please refer to the mount(8) man page and the shared\-subtree description at http://lwn\&.net/Articles/159077 and http://lwn\&.net/Articles/159092\&. .SH "OPTIONS" -@@ -73,11 +73,11 @@ + .PP + \fBdebug\fR +@@ -31,7 +189,7 @@ + .PP + \fBunmnt_remnt\fR .RS 4 - Useful for services which do not use pam_selinux for changing the SELinux context with setexeccon call\. The module will use the default SELinux context of the user for the level and context polyinstantiation\. +-For programs such as su and newrole, the login session has already setup a polyinstantiated namespace\. For these programs, polyinstantiation is performed based on new user id or security context, however the command first needs to undo the polyinstantiation performed by login\. This argument instructs the command to first undo previous polyinstantiation before proceeding with new polyinstantiation based on new id/context ++For programs such as su and newrole, the login session has already setup a polyinstantiated namespace\&. For these programs, polyinstantiation is performed based on new user id or security context, however the command first needs to undo the polyinstantiation performed by login\&. This argument instructs the command to first undo previous polyinstantiation before proceeding with new polyinstantiation based on new id/context + .RE + .PP + \fBunmnt_only\fR +@@ -46,112 +204,130 @@ + .PP + \fBgen_hash\fR + .RS 4 +-Instead of using the security context string for the instance name, generate and use its md5 hash\. ++Instead of using the security context string for the instance name, generate and use its md5 hash\&. + .RE + .PP + \fBignore_config_error\fR + .RS 4 +-If a line in the configuration file corresponding to a polyinstantiated directory contains format error, skip that line process the next line\. Without this option, pam will return an error to the calling program resulting in termination of the session\. ++If a line in the configuration file corresponding to a polyinstantiated directory contains format error, skip that line process the next line\&. Without this option, pam will return an error to the calling program resulting in termination of the session\&. + .RE + .PP + \fBignore_instance_parent_mode\fR + .RS 4 +-Instance parent directories by default are expected to have the restrictive mode of 000\. Using this option, an administrator can choose to ignore the mode of the instance parent\. This option should be used with caution as it will reduce security and isolation goals of the polyinstantiation mechanism\. ++Instance parent directories by default are expected to have the restrictive mode of 000\&. Using this option, an administrator can choose to ignore the mode of the instance parent\&. This option should be used with caution as it will reduce security and isolation goals of the polyinstantiation mechanism\&. + .RE + .PP + \fBno_unmount_on_close\fR + .RS 4 +-For certain trusted programs such as newrole, open session is called from a child process while the parent perfoms close session and pam end functions\. For these commands use this option to instruct pam_close_session to not unmount the bind mounted polyinstantiated directory in the parent\. ++For certain trusted programs such as newrole, open session is called from a child process while the parent perfoms close session and pam end functions\&. For these commands use this option to instruct pam_close_session to not unmount the bind mounted polyinstantiated directory in the parent\&. + .RE + .PP + \fBuse_current_context\fR + .RS 4 +-Useful for services which do not change the SELinux context with setexeccon call\. The module will use the current SELinux context of the calling process for the level and context polyinstantiation\. ++Useful for services which do not change the SELinux context with setexeccon call\&. The module will use the current SELinux context of the calling process for the level and context polyinstantiation\&. + .RE + .PP + \fBuse_default_context\fR + .RS 4 +-Useful for services which do not use pam_selinux for changing the SELinux context with setexeccon call\. The module will use the default SELinux context of the user for the level and context polyinstantiation\. ++Useful for services which do not use pam_selinux for changing the SELinux context with setexeccon call\&. The module will use the default SELinux context of the user for the level and context polyinstantiation\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -1077,40 +8469,338 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_namespace/pam_namespace.8 Linux-PAM-1. +Only the \fBsession\fR -service is supported\. The module must not be called from multithreaded processes\. -+module type is provided\. The module must not be called from multithreaded processes\. ++module type is provided\&. The module must not be called from multithreaded processes\&. .SH "RETURN VALUES" .PP PAM_SUCCESS -@@ -149,7 +149,7 @@ + .RS 4 +-Namespace setup was successful\. ++Namespace setup was successful\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-Unexpected system error occurred while setting up namespace\. ++Unexpected system error occurred while setting up namespace\&. + .RE + .PP + PAM_SESSION_ERR + .RS 4 +-Unexpected namespace configuration error occurred\. ++Unexpected namespace configuration error occurred\&. + .RE + .SH "FILES" + .PP +-\fI/etc/security/namespace\.conf\fR ++\FC/etc/security/namespace\&.conf\F[] + .RS 4 + Main configuration file + .RE + .PP +-\fI/etc/security/namespace\.d\fR ++\FC/etc/security/namespace\&.d\F[] + .RS 4 + Directory for additional configuration files + .RE + .PP +-\fI/etc/security/namespace\.init\fR ++\FC/etc/security/namespace\&.init\F[] + .RS 4 + Init script for instance directories + .RE + .SH "EXAMPLES" + .PP +-For the s you need polyinstantiation (login for example) put the following line in /etc/pam\.d/ as the last line for session group: ++For the s you need polyinstantiation (login for example) put the following line in /etc/pam\&.d/ as the last line for session group: + .PP +-session required pam_namespace\.so [arguments] ++session required pam_namespace\&.so [arguments] + .PP + To use polyinstantiation with graphical display manager gdm, insert the following line, before exit 0, in /etc/gdm/PostSession/Default: + .PP + /usr/sbin/gdm\-safe\-restart + .PP +-This allows gdm to restart after each session and appropriately adjust namespaces of display manager and the X server\. If polyinstantiation of /tmp is desired along with the graphical environment, then additional configuration changes are needed to address the interaction of X server and font server namespaces with their use of /tmp to create communication sockets\. Please use the initialization script +-\fI/etc/security/namespace\.init\fR +-to ensure that the X server and its clients can appropriately access the communication socket X0\. Please refer to the sample instructions provided in the comment section of the instance initialization script +-\fI/etc/security/namespace\.init\fR\. In addition, perform the following changes to use graphical environment with polyinstantiation of /tmp: ++This allows gdm to restart after each session and appropriately adjust namespaces of display manager and the X server\&. If polyinstantiation of /tmp is desired along with the graphical environment, then additional configuration changes are needed to address the interaction of X server and font server namespaces with their use of /tmp to create communication sockets\&. Please use the initialization script ++\FC/etc/security/namespace\&.init\F[] ++to ensure that the X server and its clients can appropriately access the communication socket X0\&. Please refer to the sample instructions provided in the comment section of the instance initialization script ++\FC/etc/security/namespace\&.init\F[]\&. In addition, perform the following changes to use graphical environment with polyinstantiation of /tmp: + .PP + + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +- 1\. Disable the use of font server by commenting out "FontPath" +- line in /etc/X11/xorg\.conf\. If you do want to use the font server ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++ 1\&. Disable the use of font server by commenting out "FontPath" ++ line in /etc/X11/xorg\&.conf\&. If you do want to use the font server + then you will have to augment the instance initialization +- script to appropriately provide /tmp/\.font\-unix from the +- polyinstantiated /tmp\. +- 2\. Ensure that the gdm service is setup to use pam_namespace, +- as described above, by modifying /etc/pam\.d/gdm\. +- 3\. Ensure that the display manager is configured to restart X server +- with each new session\. This default setup can be verified by +- making sure that /usr/share/gdm/defaults\.conf contains ++ script to appropriately provide /tmp/\&.font\-unix from the ++ polyinstantiated /tmp\&. ++ 2\&. Ensure that the gdm service is setup to use pam_namespace, ++ as described above, by modifying /etc/pam\&.d/gdm\&. ++ 3\&. Ensure that the display manager is configured to restart X server ++ with each new session\&. This default setup can be verified by ++ making sure that /usr/share/gdm/defaults\&.conf contains + "AlwaysRestartServer=true", and it is not overridden by +- /etc/gdm/custom\.conf\. ++ /etc/gdm/custom\&.conf\&. + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" .PP \fBnamespace.conf\fR(5), -\fBpam.d\fR(8), +\fBpam.d\fR(5), \fBmount\fR(8), - \fBpam\fR(8)\. +-\fBpam\fR(8)\. ++\fBpam\fR(8)\&. .SH "AUTHORS" -diff -urN Linux-PAM-1.0.2-old/modules/pam_nologin/pam_nologin.8 Linux-PAM-1.0.2/modules/pam_nologin/pam_nologin.8 ---- Linux-PAM-1.0.2-old/modules/pam_nologin/pam_nologin.8 2008-04-16 11:07:40.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_nologin/pam_nologin.8 2008-10-17 13:02:27.000000000 +0200 -@@ -1,11 +1,11 @@ + .PP +-The namespace setup scheme was designed by Stephen Smalley, Janak Desai and Chad Sellers\. The pam_namespace PAM module was developed by Janak Desai , Chad Sellers and Steve Grubb \. Additional improvements by Xavier Toth and Tomas Mraz \. ++The namespace setup scheme was designed by Stephen Smalley, Janak Desai and Chad Sellers\&. The pam_namespace PAM module was developed by Janak Desai , Chad Sellers and Steve Grubb \&. Additional improvements by Xavier Toth and Tomas Mraz \&. +--- Linux-PAM-1.0.2-orig/modules/pam_nologin/pam_nologin.8 2008-04-16 11:07:40.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_nologin/pam_nologin.8 2009-01-20 11:59:26.000000000 +0100 +@@ -1,110 +1,286 @@ .\" Title: pam_nologin - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_NOLOGIN" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_NOLOGIN" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_NOLOGIN" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -34,13 +34,13 @@ + .ad l +-.SH "NAME" +-pam_nologin - Prevent non-root users from login +-.SH "SYNOPSIS" +-.HP 15 +-\fBpam_nologin\.so\fR [file=\fI/path/nologin\fR] [successok] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_nologin \- Prevent non\-root users from login ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_nologin\&.so\fR\ 'u ++\fBpam_nologin\&.so\fR [file=\fI/path/nologin\fR] [successok] ++.fam + .SH "DESCRIPTION" + .PP + pam_nologin is a PAM module that prevents users from logging into the system when +-\fI/etc/nologin\fR +-exists\. The contents of the +-\fI/etc/nologin\fR +-file are displayed to the user\. The pam_nologin module has no effect on the root user\'s ability to log in\. ++\FC/etc/nologin\F[] ++exists\&. The contents of the ++\FC/etc/nologin\F[] ++file are displayed to the user\&. The pam_nologin module has no effect on the root user\'s ability to log in\&. + .SH "OPTIONS" + .PP + \fBfile=\fR\fB\fI/path/nologin\fR\fR .RS 4 - Return PAM_SUCCESS if no file exists, the default is PAM_IGNORE\. + Use this file instead the default +-\fI/etc/nologin\fR\. ++\FC/etc/nologin\F[]\&. + .RE + .PP + \fBsuccessok\fR + .RS 4 +-Return PAM_SUCCESS if no file exists, the default is PAM_IGNORE\. ++Return PAM_SUCCESS if no file exists, the default is PAM_IGNORE\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -1120,11 +8810,96 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_nologin/pam_nologin.8 Linux-PAM-1.0.2/ and \fBacct\fR -services are supported\. -+module types are provided\. ++module types are provided\&. .SH "RETURN VALUES" .PP PAM_AUTH_ERR -@@ -103,7 +103,7 @@ + .RS 4 + The user is not root and +-\fI/etc/nologin\fR +-exists, so the user is not permitted to log in\. ++\FC/etc/nologin\F[] ++exists, so the user is not permitted to log in\&. + .RE + .PP + PAM_BUF_ERR + .RS 4 +-Memory buffer error\. ++Memory buffer error\&. + .RE + .PP + PAM_IGNORE + .RS 4 +-This is the default return value\. ++This is the default return value\&. + .RE + .PP + PAM_SUCCESS + .RS 4 + Success: either the user is root or the +-\fI/etc/nologin\fR +-file does not exist\. ++\FC/etc/nologin\F[] ++file does not exist\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-User not known to the underlying authentication module\. ++User not known to the underlying authentication module\&. + .RE + .SH "EXAMPLES" + .PP + The suggested usage for +-\fI/etc/pam\.d/login\fR ++\FC/etc/pam\&.d/login\F[] + is: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-auth required pam_nologin\.so ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++auth required pam_nologin\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "NOTES" + .PP +-In order to make this module effective, all login methods should be secured by it\. It should be used as a ++In order to make this module effective, all login methods should be secured by it\&. It should be used as a + \fIrequired\fR + method listed before any + \fIsufficient\fR +-methods in order to get standard Unix nologin semantics\. Note, the use of ++methods in order to get standard Unix nologin semantics\&. Note, the use of + \fBsuccessok\fR + module argument causes the module to return + \fIPAM_SUCCESS\fR + and as such would break such a configuration \- failing + \fIsufficient\fR + modules would lead to a successful login because the nologin module +-\fIsucceeded\fR\. ++\fIsucceeded\fR\&. + .SH "SEE ALSO" + .PP \fBnologin\fR(5), \fBpam.conf\fR(5), @@ -1133,29 +8908,212 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_nologin/pam_nologin.8 Linux-PAM-1.0.2/ \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_permit/pam_permit.8 Linux-PAM-1.0.2/modules/pam_permit/pam_permit.8 ---- Linux-PAM-1.0.2-old/modules/pam_permit/pam_permit.8 2008-04-16 11:07:43.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_permit/pam_permit.8 2008-10-17 13:02:30.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_nologin was written by Michael K\. Johnson \. ++pam_nologin was written by Michael K\&. Johnson \&. +--- Linux-PAM-1.0.2-orig/modules/pam_permit/pam_permit.8 2008-04-16 11:07:43.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_permit/pam_permit.8 2009-01-20 11:59:29.000000000 +0100 +@@ -1,64 +1,240 @@ .\" Title: pam_permit - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_PERMIT" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_PERMIT" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_PERMIT" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -27,15 +27,15 @@ + .ad l +-.SH "NAME" +-pam_permit - The promiscuous module +-.SH "SYNOPSIS" +-.HP 14 +-\fBpam_permit\.so\fR ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_permit \- The promiscuous module ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_permit\&.so\fR\ 'u ++\fBpam_permit\&.so\fR ++.fam + .SH "DESCRIPTION" + .PP +-pam_permit is a PAM module that always permit access\. It does nothing else\. ++pam_permit is a PAM module that always permit access\&. It does nothing else\&. + .PP + In the case of authentication, the user\'s name will be set to + \fInobody\fR +-if the application didn\'t set one\. Many applications and PAM modules become confused if this name is unknown\. ++if the application didn\'t set one\&. Many applications and PAM modules become confused if this name is unknown\&. + .PP +-This module is very dangerous\. It should be used with extreme caution\. ++This module is very dangerous\&. It should be used with extreme caution\&. .SH "OPTIONS" .PP - This module does not recognise any options\. +-This module does not recognise any options\. -.SH "MODULE SERVICES PROVIDED" ++This module does not recognise any options\&. +.SH "MODULE TYPES PROVIDED" .PP -The services @@ -1166,11 +9124,46 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_permit/pam_permit.8 Linux-PAM-1.0.2/mo and \fBsession\fR -are supported\. -+module types are provided\. ++module types are provided\&. .SH "RETURN VALUES" .PP PAM_SUCCESS -@@ -57,7 +57,7 @@ + .RS 4 +-This module always returns this value\. ++This module always returns this value\&. + .RE + .SH "EXAMPLES" + .PP +-Add this line to your other login entries to disable account management, but continue to permit users to log in\. ++Add this line to your other login entries to disable account management, but continue to permit users to log in\&. + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-account required pam_permit\.so ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++account required pam_permit\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -1179,10 +9172,11 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_permit/pam_permit.8 Linux-PAM-1.0.2/mo \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_pwhistory/README Linux-PAM-1.0.2/modules/pam_pwhistory/README ---- Linux-PAM-1.0.2-old/modules/pam_pwhistory/README 1970-01-01 01:00:00.000000000 +0100 -+++ Linux-PAM-1.0.2/modules/pam_pwhistory/README 2008-10-17 13:02:33.000000000 +0200 -@@ -0,0 +1,61 @@ +-pam_permit was written by Andrew G\. Morgan, \. ++pam_permit was written by Andrew G\&. Morgan, \&. +--- Linux-PAM-1.0.2-orig/modules/pam_pwhistory/README 1970-01-01 01:00:00.000000000 +0100 ++++ Linux-PAM-1.0.2/modules/pam_pwhistory/README 2009-01-20 11:59:33.000000000 +0100 +@@ -0,0 +1,67 @@ +pam_pwhistory — PAM module to remember last passwords + +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -1223,6 +9217,12 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_pwhistory/README Linux-PAM-1.0.2/modul + + Prompt user at most N times before returning with error. The default is 1. + ++type=STRING ++ ++ The default action is for the module to use the following prompts when ++ requesting passwords: "New UNIX password: " and "Retype UNIX password: ". ++ The default word UNIX can be replaced with this option. ++ +EXAMPLES + +An example password section would be: @@ -1244,27 +9244,240 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_pwhistory/README Linux-PAM-1.0.2/modul + +pam_pwhistory was written by Thorsten Kukuk + -diff -urN Linux-PAM-1.0.2-old/modules/pam_rhosts/pam_rhosts.8 Linux-PAM-1.0.2/modules/pam_rhosts/pam_rhosts.8 ---- Linux-PAM-1.0.2-old/modules/pam_rhosts/pam_rhosts.8 2008-04-16 11:07:46.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_rhosts/pam_rhosts.8 2008-10-17 13:02:34.000000000 +0200 -@@ -1,11 +1,11 @@ +--- Linux-PAM-1.0.2-orig/modules/pam_rhosts/pam_rhosts.8 2008-04-16 11:07:46.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_rhosts/pam_rhosts.8 2009-01-20 11:59:35.000000000 +0100 +@@ -1,98 +1,274 @@ .\" Title: pam_rhosts - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_RHOSTS" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_RHOSTS" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_RHOSTS" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -53,11 +53,11 @@ + .ad l +-.SH "NAME" +-pam_rhosts - The rhosts PAM module +-.SH "SYNOPSIS" +-.HP 14 +-\fBpam_rhosts\.so\fR ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_rhosts \- The rhosts PAM module ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_rhosts\&.so\fR\ 'u ++\fBpam_rhosts\&.so\fR ++.fam + .SH "DESCRIPTION" + .PP + This module performs the standard network authentication for services, as used by traditional implementations of + \fBrlogin\fR + and + \fBrsh\fR +-etc\. ++etc\&. + .PP + The authentication mechanism of this module is based on the contents of two files; +-\fI/etc/hosts\.equiv\fR ++\FC/etc/hosts\&.equiv\F[] + (or and +-\fI~/\.rhosts\fR\. Firstly, hosts listed in the former file are treated as equivalent to the localhost\. Secondly, entries in the user\'s own copy of the latter file is used to map "\fIremote\-host remote\-user\fR" pairs to that user\'s account on the current host\. Access is granted to the user if their host is present in +-\fI/etc/hosts\.equiv\fR +-and their remote account is identical to their local one, or if their remote account has an entry in their personal configuration file\. ++\FC~/\&.rhosts\F[]\&. Firstly, hosts listed in the former file are treated as equivalent to the localhost\&. Secondly, entries in the user\'s own copy of the latter file is used to map "\fIremote\-host remote\-user\fR" pairs to that user\'s account on the current host\&. Access is granted to the user if their host is present in ++\FC/etc/hosts\&.equiv\F[] ++and their remote account is identical to their local one, or if their remote account has an entry in their personal configuration file\&. + .PP + The module authenticates a remote user (internally specified by the item + \fIPAM_RUSER\fR + connecting from the remote host (internally specified by the item +-\fBPAM_RHOST\fR)\. Accordingly, for applications to be compatible this authentication module they must set these items prior to calling +-\fBpam_authenticate()\fR\. The module is not capable of independently probing the network connection for such information\. ++\fBPAM_RHOST\fR)\&. Accordingly, for applications to be compatible this authentication module they must set these items prior to calling ++\fBpam_authenticate()\fR\&. The module is not capable of independently probing the network connection for such information\&. + .SH "OPTIONS" + .PP + \fBdebug\fR + .RS 4 +-Print debug information\. ++Print debug information\&. + .RE + .PP + \fBsilent\fR + .RS 4 +-Don\'t print informative messages\. ++Don\'t print informative messages\&. + .RE + .PP + \fBsuperuser=\fR\fB\fIaccount\fR\fR + .RS 4 + Handle \fIaccount\fR - as root\. +-as root\. ++as root\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -1272,11 +9485,75 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_rhosts/pam_rhosts.8 Linux-PAM-1.0.2/mo Only the \fBauth\fR -service is supported\. -+module type is provided\. ++module type is provided\&. .SH "RETURN VALUES" .PP PAM_AUTH_ERR -@@ -101,7 +101,7 @@ + .RS 4 + The remote host, remote user name or the local user name couldn\'t be determined or access was denied by +-\fI\.rhosts\fR +-file\. ++\FC\&.rhosts\F[] ++file\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-User is not known to system\. ++User is not known to system\&. + .RE + .SH "EXAMPLES" + .PP + To grant a remote user access by +-\fI/etc/hosts\.equiv\fR ++\FC/etc/hosts\&.equiv\F[] + or +-\fI\.rhosts\fR ++\FC\&.rhosts\F[] + for + \fBrsh\fR + add the following lines to +-\fI/etc/pam\.d/rsh\fR: ++\FC/etc/pam\&.d/rsh\F[]: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-#%PAM\-1\.0 ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++#%PAM\-1\&.0 + # +-auth required pam_rhosts\.so +-auth required pam_nologin\.so +-auth required pam_env\.so +-auth required pam_unix\.so ++auth required pam_rhosts\&.so ++auth required pam_nologin\&.so ++auth required pam_env\&.so ++auth required pam_unix\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" + .PP +@@ -101,8 +277,8 @@ \fBhosts.equiv\fR(5), \fBrhosts\fR(5), \fBpam.conf\fR(5), @@ -1285,27 +9562,214 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_rhosts/pam_rhosts.8 Linux-PAM-1.0.2/mo \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_rootok/pam_rootok.8 Linux-PAM-1.0.2/modules/pam_rootok/pam_rootok.8 ---- Linux-PAM-1.0.2-old/modules/pam_rootok/pam_rootok.8 2008-04-16 11:07:49.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_rootok/pam_rootok.8 2008-10-17 13:02:37.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_rhosts was written by Thorsten Kukuk ++pam_rhosts was written by Thorsten Kukuk +--- Linux-PAM-1.0.2-orig/modules/pam_rootok/pam_rootok.8 2008-04-16 11:07:49.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_rootok/pam_rootok.8 2009-01-20 11:59:38.000000000 +0100 +@@ -1,41 +1,199 @@ .\" Title: pam_rootok - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_ROOTOK" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_ROOTOK" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_ROOTOK" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -31,11 +31,11 @@ + .ad l +-.SH "NAME" +-pam_rootok - Gain only root access +-.SH "SYNOPSIS" +-.HP 14 +-\fBpam_rootok\.so\fR [debug] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_rootok \- Gain only root access ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_rootok\&.so\fR\ 'u ++\fBpam_rootok\&.so\fR [debug] ++.fam + .SH "DESCRIPTION" + .PP + pam_rootok is a PAM module that authenticates the user if their + \fIUID\fR + is +-\fI0\fR\. Applications that are created setuid\-root generally retain the ++\fI0\fR\&. Applications that are created setuid\-root generally retain the + \fIUID\fR +-of the user but run with the authority of an enhanced effective\-UID\. It is the real ++of the user but run with the authority of an enhanced effective\-UID\&. It is the real + \fIUID\fR +-that is checked\. ++that is checked\&. + .SH "OPTIONS" + .PP + \fBdebug\fR .RS 4 - Print debug information\. +-Print debug information\. ++Print debug information\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -1313,11 +9777,68 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_rootok/pam_rootok.8 Linux-PAM-1.0.2/mo Only the \fBauth\fR -service is supported\. -+type is provided\. ++type is provided\&. .SH "RETURN VALUES" .PP PAM_SUCCESS -@@ -76,7 +76,7 @@ +@@ -43,7 +201,7 @@ + The + \fIUID\fR + is +-\fI0\fR\. ++\fI0\fR\&. + .RE + .PP + PAM_AUTH_ERR +@@ -52,32 +210,50 @@ + \fIUID\fR + is + \fBnot\fR +-\fI0\fR\. ++\fI0\fR\&. + .RE + .SH "EXAMPLES" + .PP + In the case of the + \fBsu\fR(1) +-application the historical usage is to permit the superuser to adopt the identity of a lesser user without the use of a password\. To obtain this behavior with PAM the following pair of lines are needed for the corresponding entry in the +-\fI/etc/pam\.d/su\fR ++application the historical usage is to permit the superuser to adopt the identity of a lesser user without the use of a password\&. To obtain this behavior with PAM the following pair of lines are needed for the corresponding entry in the ++\FC/etc/pam\&.d/su\F[] + configuration file: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-# su authentication\. Root is granted access by default\. +-auth sufficient pam_rootok\.so +-auth required pam_unix\.so ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++# su authentication\&. Root is granted access by default\&. ++auth sufficient pam_rootok\&.so ++auth required pam_unix\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" + .PP \fBsu\fR(1), \fBpam.conf\fR(5), @@ -1326,27 +9847,222 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_rootok/pam_rootok.8 Linux-PAM-1.0.2/mo \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_securetty/pam_securetty.8 Linux-PAM-1.0.2/modules/pam_securetty/pam_securetty.8 ---- Linux-PAM-1.0.2-old/modules/pam_securetty/pam_securetty.8 2008-04-16 11:07:52.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_securetty/pam_securetty.8 2008-10-17 13:02:40.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_rootok was written by Andrew G\. Morgan, \. ++pam_rootok was written by Andrew G\&. Morgan, \&. +--- Linux-PAM-1.0.2-orig/modules/pam_securetty/pam_securetty.8 2008-04-16 11:07:52.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_securetty/pam_securetty.8 2009-01-20 11:59:41.000000000 +0100 +@@ -1,97 +1,273 @@ .\" Title: pam_securetty - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_SECURETTY" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_SECURETTY" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_SECURETTY" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -37,11 +37,11 @@ + .ad l +-.SH "NAME" +-pam_securetty - Limit root login to special devices +-.SH "SYNOPSIS" +-.HP 17 +-\fBpam_securetty\.so\fR [debug] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_securetty \- Limit root login to special devices ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_securetty\&.so\fR\ 'u ++\fBpam_securetty\&.so\fR [debug] ++.fam + .SH "DESCRIPTION" + .PP + pam_securetty is a PAM module that allows root logins only if the user is logging in on a "secure" tty, as defined by the listing in +-\fI/etc/securetty\fR\. pam_securetty also checks to make sure that +-\fI/etc/securetty\fR +-is a plain file and not world writable\. ++\FC/etc/securetty\F[]\&. pam_securetty also checks to make sure that ++\FC/etc/securetty\F[] ++is a plain file and not world writable\&. + .PP + This module has no effect on non\-root users and requires that the application fills in the + \fBPAM_TTY\fR +-item correctly\. ++item correctly\&. + .PP + For canonical usage, should be listed as a + \fBrequired\fR + authentication method before any + \fBsufficient\fR +-authentication methods\. ++authentication methods\&. + .SH "OPTIONS" + .PP + \fBdebug\fR .RS 4 - Print debug information\. +-Print debug information\. ++Print debug information\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -1354,20 +10070,81 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_securetty/pam_securetty.8 Linux-PAM-1. Only the \fBauth\fR -service is supported\. -+module type is provided\. ++module type is provided\&. .SH "RETURN VALUES" .PP PAM_SUCCESS -@@ -67,7 +67,7 @@ - \fI/etc/securetty\fR\. + .RS 4 +-The user is allowed to continue authentication\. Either the user is not root, or the root user is trying to log in on an acceptable device\. ++The user is allowed to continue authentication\&. Either the user is not root, or the root user is trying to log in on an acceptable device\&. + .RE + .PP + PAM_AUTH_ERR + .RS 4 +-Authentication is rejected\. Either root is attempting to log in via an unacceptable device, or the +-\fI/etc/securetty\fR +-file is world writable or not a normal file\. ++Authentication is rejected\&. Either root is attempting to log in via an unacceptable device, or the ++\FC/etc/securetty\F[] ++file is world writable or not a normal file\&. + .RE + .PP + PAM_INCOMPLETE + .RS 4 +-An application error occurred\. pam_securetty was not able to get information it required from the application that called it\. ++An application error occurred\&. pam_securetty was not able to get information it required from the application that called it\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 + An error occurred while the module was determining the user\'s name or tty, or the module could not open +-\fI/etc/securetty\fR\. ++\FC/etc/securetty\F[]\&. .RE .PP -PAM_IGNORE +PAM_USER_UNKNOWN .RS 4 The module could not find the user name in the - \fI/etc/passwd\fR -@@ -90,7 +90,7 @@ +-\fI/etc/passwd\fR +-file to verify whether the user had a UID of 0\. Therefore, the results of running this module are ignored\. ++\FC/etc/passwd\F[] ++file to verify whether the user had a UID of 0\&. Therefore, the results of running this module are ignored\&. + .RE + .SH "EXAMPLES" + .PP + + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-auth required pam_securetty\.so +-auth required pam_unix\.so ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++auth required pam_securetty\&.so ++auth required pam_unix\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" + .PP \fBsecuretty\fR(5), \fBpam.conf\fR(5), @@ -1376,55 +10153,324 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_securetty/pam_securetty.8 Linux-PAM-1. \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_selinux/pam_selinux.8 Linux-PAM-1.0.2/modules/pam_selinux/pam_selinux.8 ---- Linux-PAM-1.0.2-old/modules/pam_selinux/pam_selinux.8 2008-04-16 11:07:56.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_selinux/pam_selinux.8 2008-10-17 13:02:43.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_securetty was written by Elliot Lee \. ++pam_securetty was written by Elliot Lee \&. +--- Linux-PAM-1.0.2-orig/modules/pam_selinux/pam_selinux.8 2008-04-16 11:07:56.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_selinux/pam_selinux.8 2009-01-20 11:59:45.000000000 +0100 +@@ -1,95 +1,279 @@ .\" Title: pam_selinux - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_SELINUX" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_SELINUX" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_SELINUX" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -14,7 +14,7 @@ - pam_selinux - PAM module to set the default security context - .SH "SYNOPSIS" - .HP 15 + .ad l +-.SH "NAME" +-pam_selinux - PAM module to set the default security context +-.SH "SYNOPSIS" +-.HP 15 -\fBpam_selinux\.so\fR [close] [debug] [open] [nottys] [verbose] [select_context] [use_current_range] -+\fBpam_selinux\.so\fR [close] [debug] [open] [nottys] [verbose] [select_context] [env_params] [use_current_range] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_selinux \- PAM module to set the default security context ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_selinux\&.so\fR\ 'u ++\fBpam_selinux\&.so\fR [close] [debug] [open] [nottys] [verbose] [select_context] [env_params] [use_current_range] ++.fam .SH "DESCRIPTION" .PP - In a nutshell, pam_selinux sets up the default security context for the next execed shell\. -@@ -55,9 +55,17 @@ - Attempt to ask the user for a custom security context role\. If MLS is on ask also for sensitivity level\. +-In a nutshell, pam_selinux sets up the default security context for the next execed shell\. ++In a nutshell, pam_selinux sets up the default security context for the next execed shell\&. + .PP +-When an application opens a session using pam_selinux, the shell that gets executed will be run in the default security context, or if the user chooses and the pam file allows the selected security context\. Also the controlling tty will have it\'s security context modified to match the users\. ++When an application opens a session using pam_selinux, the shell that gets executed will be run in the default security context, or if the user chooses and the pam file allows the selected security context\&. Also the controlling tty will have it\'s security context modified to match the users\&. + .PP +-Adding pam_selinux into a pam file could cause other pam modules to change their behavior if the exec another application\. The close and open option help mitigate this problem\. close option will only cause the close portion of the pam_selinux to execute, and open will only cause the open portion to run\. You can add pam_selinux to the config file twice\. Add the pam_selinux close as the executes the open pass through the modules, pam_selinux open_session will happen last\. When PAM executes the close pass through the modules pam_selinux close_session will happen first\. ++Adding pam_selinux into a pam file could cause other pam modules to change their behavior if the exec another application\&. The close and open option help mitigate this problem\&. close option will only cause the close portion of the pam_selinux to execute, and open will only cause the open portion to run\&. You can add pam_selinux to the config file twice\&. Add the pam_selinux close as the executes the open pass through the modules, pam_selinux open_session will happen last\&. When PAM executes the close pass through the modules pam_selinux close_session will happen first\&. + .SH "OPTIONS" + .PP + \fBclose\fR + .RS 4 +-Only execute the close_session portion of the module\. ++Only execute the close_session portion of the module\&. .RE .PP -+\fBenv_params\fR -+.RS 4 -+Attempt to obtain a custom security context role from PAM environment\. If MLS is on obtain also sensitivity level\. This option and the select_context option are mutually exclusive\. The respective PAM environment variables are -+\fISELINUX_ROLE_REQUESTED\fR, -+\fISELINUX_LEVEL_REQUESTED\fR, and -+\fISELINUX_USE_CURRENT_RANGE\fR\. The first two variables are self describing and the last one if set to 1 makes the PAM module behave as if the use_current_range was specified on the command line of the module\. + \fBdebug\fR + .RS 4 + Turns on debugging via +-\fBsyslog\fR(3)\. ++\fBsyslog\fR(3)\&. + .RE + .PP + \fBopen\fR + .RS 4 +-Only execute the open_session portion of the module\. ++Only execute the open_session portion of the module\&. + .RE + .PP + \fBnottys\fR + .RS 4 +-Do not try to setup the ttys security context\. ++Do not try to setup the ttys security context\&. + .RE + .PP + \fBverbose\fR + .RS 4 +-attempt to inform the user when security context is set\. ++attempt to inform the user when security context is set\&. + .RE + .PP + \fBselect_context\fR + .RS 4 +-Attempt to ask the user for a custom security context role\. If MLS is on ask also for sensitivity level\. ++Attempt to ask the user for a custom security context role\&. If MLS is on ask also for sensitivity level\&. +.RE +.PP ++\fBenv_params\fR ++.RS 4 ++Attempt to obtain a custom security context role from PAM environment\&. If MLS is on obtain also sensitivity level\&. This option and the select_context option are mutually exclusive\&. The respective PAM environment variables are ++\fISELINUX_ROLE_REQUESTED\fR, ++\fISELINUX_LEVEL_REQUESTED\fR, and ++\fISELINUX_USE_CURRENT_RANGE\fR\&. The first two variables are self describing and the last one if set to 1 makes the PAM module behave as if the use_current_range was specified on the command line of the module\&. + .RE + .PP \fBuse_current_range\fR .RS 4 -Use the sensitivity range of the process for the user context\. This option and the select_context option are mutually exclusive\. -+Use the sensitivity level of the current process for the user context instead of the default level\. Also supresses asking of the sensitivity level from the user or obtaining it from PAM environment\. ++Use the sensitivity level of the current process for the user context instead of the default level\&. Also supresses asking of the sensitivity level from the user or obtaining it from PAM environment\&. .RE .SH "MODULE SERVICES PROVIDED" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_selinux/README Linux-PAM-1.0.2/modules/pam_selinux/README ---- Linux-PAM-1.0.2-old/modules/pam_selinux/README 2008-04-16 11:07:55.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_selinux/README 2008-10-17 13:02:42.000000000 +0200 + Only the + \fBsession\fR +-service is supported\. ++service is supported\&. + .SH "RETURN VALUES" + .PP + PAM_AUTH_ERR + .RS 4 +-Unable to get or set a valid context\. ++Unable to get or set a valid context\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-The security context was set successfull\. ++The security context was set successfull\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-The user is not known to the system\. ++The user is not known to the system\&. + .RE + .SH "EXAMPLES" + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-auth required pam_unix\.so +-session required pam_permit\.so +-session optional pam_selinux\.so ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++auth required pam_unix\&.so ++session required pam_permit\&.so ++session optional pam_selinux\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .SH "SEE ALSO" + .PP + +@@ -98,4 +282,4 @@ + \fBpam\fR(8) + .SH "AUTHOR" + .PP +-pam_selinux was written by Dan Walsh \. ++pam_selinux was written by Dan Walsh \&. +--- Linux-PAM-1.0.2-orig/modules/pam_selinux/README 2008-04-16 11:07:55.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_selinux/README 2009-01-20 11:59:47.000000000 +0100 @@ -48,10 +48,21 @@ Attempt to ask the user for a custom security context role. If MLS is on ask also for sensitivity level. @@ -1449,27 +10495,235 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_selinux/README Linux-PAM-1.0.2/modules EXAMPLES -diff -urN Linux-PAM-1.0.2-old/modules/pam_sepermit/pam_sepermit.8 Linux-PAM-1.0.2/modules/pam_sepermit/pam_sepermit.8 ---- Linux-PAM-1.0.2-old/modules/pam_sepermit/pam_sepermit.8 2008-04-16 11:07:59.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_sepermit/pam_sepermit.8 2008-10-17 13:02:46.000000000 +0200 -@@ -1,11 +1,11 @@ +--- Linux-PAM-1.0.2-orig/modules/pam_sepermit/pam_sepermit.8 2008-04-16 11:07:59.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_sepermit/pam_sepermit.8 2009-01-20 11:59:49.000000000 +0100 +@@ -1,104 +1,280 @@ .\" Title: pam_sepermit - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_SEPERMIT" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_SEPERMIT" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_SEPERMIT" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -49,13 +49,13 @@ + .ad l +-.SH "NAME" +-pam_sepermit - PAM module to allow/deny login depending on SELinux enforcement state +-.SH "SYNOPSIS" +-.HP 16 +-\fBpam_sepermit\.so\fR [debug] [conf=\fI/path/to/config/file\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_sepermit \- PAM module to allow/deny login depending on SELinux enforcement state ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_sepermit\&.so\fR\ 'u ++\fBpam_sepermit\&.so\fR [debug] [conf=\fI/path/to/config/file\fR] ++.fam + .SH "DESCRIPTION" + .PP +-The pam_sepermit module allows or denies login depending on SELinux enforcement state\. ++The pam_sepermit module allows or denies login depending on SELinux enforcement state\&. + .PP +-When the user which is logging in matches an entry in the config file he is allowed access only when the SELinux is in enforcing mode\. Otherwise he is denied access\. For users not matching any entry in the config file the pam_sepermit module returns PAM_IGNORE return value\. ++When the user which is logging in matches an entry in the config file he is allowed access only when the SELinux is in enforcing mode\&. Otherwise he is denied access\&. For users not matching any entry in the config file the pam_sepermit module returns PAM_IGNORE return value\&. + .PP +-The config file contains a simple list of user names one per line\. If the ++The config file contains a simple list of user names one per line\&. If the + \fIname\fR + is prefixed with + \fI@\fR + character it means that all users in the group + \fIname\fR +-match\. If it is prefixed with a ++match\&. If it is prefixed with a + \fI%\fR + character the SELinux user is used to match against the + \fIname\fR +-instead of the account name\. Note that when SELinux is disabled the SELinux user assigned to the account cannot be determined\. This means that such entries are never matched when SELinux is disabled and pam_sepermit will return PAM_IGNORE\. ++instead of the account name\&. Note that when SELinux is disabled the SELinux user assigned to the account cannot be determined\&. This means that such entries are never matched when SELinux is disabled and pam_sepermit will return PAM_IGNORE\&. + .PP + Each user name in the configuration file can have optional arguments separated by + \fI:\fR +-character\. The only currently recognized argument is +-\fIexclusive\fR\. The pam_sepermit module will allow only single concurrent user session for the user with this argument specified and it will attempt to kill all processes of the user after logout\. ++character\&. The only currently recognized argument is ++\fIexclusive\fR\&. The pam_sepermit module will allow only single concurrent user session for the user with this argument specified and it will attempt to kill all processes of the user after logout\&. + .SH "OPTIONS" + .PP + \fBdebug\fR .RS 4 - Path to alternative config file overriding the default\. + Turns on debugging via +-\fBsyslog\fR(3)\. ++\fBsyslog\fR(3)\&. + .RE + .PP + \fBconf=\fR\fB\fI/path/to/config/file\fR\fR + .RS 4 +-Path to alternative config file overriding the default\. ++Path to alternative config file overriding the default\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -1480,33 +10734,290 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_sepermit/pam_sepermit.8 Linux-PAM-1.0. and \fBaccount\fR -services are supported\. -+module types are provided\. ++module types are provided\&. .SH "RETURN VALUES" .PP PAM_AUTH_ERR -diff -urN Linux-PAM-1.0.2-old/modules/pam_shells/pam_shells.8 Linux-PAM-1.0.2/modules/pam_shells/pam_shells.8 ---- Linux-PAM-1.0.2-old/modules/pam_shells/pam_shells.8 2008-04-16 11:08:01.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_shells/pam_shells.8 2008-10-17 13:02:48.000000000 +0200 -@@ -1,11 +1,11 @@ + .RS 4 +-SELinux is disabled or in the permissive mode and the user matches\. ++SELinux is disabled or in the permissive mode and the user matches\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-SELinux is in the enforcing mode and the user matches\. ++SELinux is in the enforcing mode and the user matches\&. + .RE + .PP + PAM_IGNORE + .RS 4 +-The user does not match any entry in the config file\. ++The user does not match any entry in the config file\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-The module was unable to determine the user\'s name\. ++The module was unable to determine the user\'s name\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-Error during reading or parsing the config file\. ++Error during reading or parsing the config file\&. + .RE + .SH "FILES" + .PP +-\fI/etc/security/sepermit\.conf\fR ++\FC/etc/security/sepermit\&.conf\F[] + .RS 4 + Default configuration file + .RE + .SH "EXAMPLES" + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-auth [success=done ignore=ignore default=bad] pam_sepermit\.so +-auth required pam_unix\.so +-account required pam_unix\.so +-session required pam_permit\.so ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++auth [success=done ignore=ignore default=bad] pam_sepermit\&.so ++auth required pam_unix\&.so ++account required pam_unix\&.so ++session required pam_permit\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .SH "SEE ALSO" + .PP + +@@ -107,4 +283,4 @@ + \fBpam\fR(8) + .SH "AUTHOR" + .PP +-pam_sepermit was written by Tomas Mraz \. ++pam_sepermit was written by Tomas Mraz \&. +--- Linux-PAM-1.0.2-orig/modules/pam_shells/pam_shells.8 2008-04-16 11:08:01.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_shells/pam_shells.8 2009-01-20 11:59:52.000000000 +0100 +@@ -1,73 +1,249 @@ .\" Title: pam_shells - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_SHELLS" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_SHELLS" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_SHELLS" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -26,13 +26,13 @@ + .ad l +-.SH "NAME" +-pam_shells - PAM module to check for valid login shell +-.SH "SYNOPSIS" +-.HP 14 +-\fBpam_shells\.so\fR ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_shells \- PAM module to check for valid login shell ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_shells\&.so\fR\ 'u ++\fBpam_shells\&.so\fR ++.fam + .SH "DESCRIPTION" + .PP + pam_shells is a PAM module that only allows access to the system if the users shell is listed in +-\fI/etc/shells\fR\. ++\FC/etc/shells\F[]\&. + .PP + It also checks if +-\fI/etc/shells\fR +-is a plain file and not world writable\. ++\FC/etc/shells\F[] ++is a plain file and not world writable\&. .SH "OPTIONS" .PP - This module does not recognise any options\. +-This module does not recognise any options\. -.SH "MODULE SERVICES PROVIDED" ++This module does not recognise any options\&. +.SH "MODULE TYPES PROVIDED" .PP -The services @@ -1515,11 +11026,59 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_shells/pam_shells.8 Linux-PAM-1.0.2/mo and \fBaccount\fR -are supported\. -+module types are provided\. ++module types are provided\&. .SH "RETURN VALUES" .PP PAM_AUTH_ERR -@@ -66,7 +66,7 @@ + .RS 4 +-Access to the system was denied\. ++Access to the system was denied\&. + .RE + .PP + PAM_SUCCESS + .RS 4 + The users login shell was listed as valid shell in +-\fI/etc/shells\fR\. ++\FC/etc/shells\F[]\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-The module was not able to get the name of the user\. ++The module was not able to get the name of the user\&. + .RE + .SH "EXAMPLES" + .PP + + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-auth required pam_shells\.so ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++auth required pam_shells\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" + .PP \fBshells\fR(5), \fBpam.conf\fR(5), @@ -1528,27 +11087,341 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_shells/pam_shells.8 Linux-PAM-1.0.2/mo \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_succeed_if/pam_succeed_if.8 Linux-PAM-1.0.2/modules/pam_succeed_if/pam_succeed_if.8 ---- Linux-PAM-1.0.2-old/modules/pam_succeed_if/pam_succeed_if.8 2008-04-16 11:08:05.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_succeed_if/pam_succeed_if.8 2008-10-17 13:02:51.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_shells was written by Erik Troan \. ++pam_shells was written by Erik Troan \&. +--- Linux-PAM-1.0.2-orig/modules/pam_succeed_if/pam_succeed_if.8 2008-04-16 11:08:05.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_succeed_if/pam_succeed_if.8 2009-01-20 11:59:56.000000000 +0100 +@@ -1,25 +1,183 @@ .\" Title: pam_succeed_if - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM .\" Source: Linux-PAM ++.\" Language: English .\" -.TH "PAM_SUCCEED_IF" "8" "04/16/2008" "Linux-PAM" "Linux\-PAM" -+.TH "PAM_SUCCEED_IF" "8" "10/17/2008" "Linux-PAM" "Linux\-PAM" ++.TH "PAM_SUCCEED_IF" "8" "01/20/2009" "Linux-PAM" "Linux\-PAM" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -141,9 +141,13 @@ + .ad l +-.SH "NAME" +-pam_succeed_if - test account characteristics +-.SH "SYNOPSIS" +-.HP 18 +-\fBpam_succeed_if\.so\fR [\fIflag\fR...] [\fIcondition\fR...] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_succeed_if \- test account characteristics ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_succeed_if\&.so\fR\ 'u ++\fBpam_succeed_if\&.so\fR [\fIflag\fR...] [\fIcondition\fR...] ++.fam + .SH "DESCRIPTION" + .PP +-pam_succeed_if\.so is designed to succeed or fail authentication based on characteristics of the account belonging to the user being authenticated\. One use is to select whether to load other modules based on this test\. ++pam_succeed_if\&.so is designed to succeed or fail authentication based on characteristics of the account belonging to the user being authenticated\&. One use is to select whether to load other modules based on this test\&. + .PP +-The module should be given one or more conditions as module arguments, and authentication will succeed only if all of the conditions are met\. ++The module should be given one or more conditions as module arguments, and authentication will succeed only if all of the conditions are met\&. + .SH "OPTIONS" + .PP + The following +@@ -27,31 +185,31 @@ + .PP + \fBdebug\fR .RS 4 - (user,host) is not in given netgroup\. +-Turns on debugging messages sent to syslog\. ++Turns on debugging messages sent to syslog\&. + .RE + .PP + \fBuse_uid\fR + .RS 4 +-Evaluate conditions using the account of the user whose UID the application is running under instead of the user being authenticated\. ++Evaluate conditions using the account of the user whose UID the application is running under instead of the user being authenticated\&. + .RE + .PP + \fBquiet\fR + .RS 4 +-Don\'t log failure or success to the system log\. ++Don\'t log failure or success to the system log\&. + .RE + .PP + \fBquiet_fail\fR + .RS 4 +-Don\'t log failure to the system log\. ++Don\'t log failure to the system log\&. + .RE + .PP + \fBquiet_success\fR + .RS 4 +-Don\'t log success to the system log\. ++Don\'t log success to the system log\&. + .RE + .PP + +-\fICondition\fRs are three words: a field, a test, and a value to test for\. ++\fICondition\fRs are three words: a field, a test, and a value to test for\&. + .PP + Available fields are + \fIuser\fR, +@@ -64,123 +222,163 @@ + .PP + \fBfield < number\fR + .RS 4 +-Field has a value numerically less than number\. ++Field has a value numerically less than number\&. + .RE + .PP + \fBfield <= number\fR + .RS 4 +-Field has a value numerically less than or equal to number\. ++Field has a value numerically less than or equal to number\&. + .RE + .PP + \fBfield eq number\fR + .RS 4 +-Field has a value numerically equal to number\. ++Field has a value numerically equal to number\&. + .RE + .PP + \fBfield >= number\fR + .RS 4 +-Field has a value numerically greater than or equal to number\. ++Field has a value numerically greater than or equal to number\&. + .RE + .PP + \fBfield > number\fR + .RS 4 +-Field has a value numerically greater than number\. ++Field has a value numerically greater than number\&. + .RE + .PP + \fBfield ne number\fR + .RS 4 +-Field has a value numerically different from number\. ++Field has a value numerically different from number\&. + .RE + .PP + \fBfield = string\fR + .RS 4 +-Field exactly matches the given string\. ++Field exactly matches the given string\&. + .RE + .PP + \fBfield != string\fR + .RS 4 +-Field does not match the given string\. ++Field does not match the given string\&. + .RE + .PP + \fBfield =~ glob\fR + .RS 4 +-Field matches the given glob\. ++Field matches the given glob\&. + .RE + .PP + \fBfield !~ glob\fR + .RS 4 +-Field does not match the given glob\. ++Field does not match the given glob\&. + .RE + .PP +-\fBfield in item:item:\.\.\.\fR ++\fBfield in item:item:\&.\&.\&.\fR + .RS 4 +-Field is contained in the list of items separated by colons\. ++Field is contained in the list of items separated by colons\&. + .RE + .PP +-\fBfield notin item:item:\.\.\.\fR ++\fBfield notin item:item:\&.\&.\&.\fR + .RS 4 +-Field is not contained in the list of items separated by colons\. ++Field is not contained in the list of items separated by colons\&. + .RE + .PP + \fBuser ingroup group\fR + .RS 4 +-User is in given group\. ++User is in given group\&. + .RE + .PP + \fBuser notingroup group\fR + .RS 4 +-User is not in given group\. ++User is not in given group\&. + .RE + .PP + \fBuser innetgr netgroup\fR + .RS 4 +-(user,host) is in given netgroup\. ++(user,host) is in given netgroup\&. + .RE + .PP + \fBuser notinnetgr group\fR + .RS 4 +-(user,host) is not in given netgroup\. ++(user,host) is not in given netgroup\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -1558,75 +11431,467 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_succeed_if/pam_succeed_if.8 Linux-PAM- +\fBauth\fR, +\fBpassword\fR +and -+\fBsession\fR) are provided\. ++\fBsession\fR) are provided\&. .SH "RETURN VALUES" .PP PAM_SUCCESS -@@ -158,7 +162,7 @@ + .RS 4 +-The condition was true\. ++The condition was true\&. + .RE + .PP + PAM_AUTH_ERR + .RS 4 +-The condition was false\. ++The condition was false\&. + .RE .PP PAM_SERVICE_ERR .RS 4 -A service error occured or the arguments can\'t be parsed as numbers\. -+A service error occured or the arguments can\'t be parsed correctly\. ++A service error occured or the arguments can\'t be parsed correctly\&. .RE .SH "EXAMPLES" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_tally/pam_tally.8 Linux-PAM-1.0.2/modules/pam_tally/pam_tally.8 ---- Linux-PAM-1.0.2-old/modules/pam_tally/pam_tally.8 2008-04-16 11:08:10.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_tally/pam_tally.8 2008-10-17 13:02:55.000000000 +0200 -@@ -1,11 +1,11 @@ + To emulate the behaviour of + \fIpam_wheel\fR, except there is no fallback to group 0: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-auth required pam_succeed_if\.so quiet user ingroup wheel ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++auth required pam_succeed_if\&.so quiet user ingroup wheel + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .PP +-Given that the type matches, only loads the othermodule rule if the UID is over 500\. Adjust the number after default to skip several rules\. ++Given that the type matches, only loads the othermodule rule if the UID is over 500\&. Adjust the number after default to skip several rules\&. + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-type [default=1 success=ignore] pam_succeed_if\.so quiet uid > 500 +-type required othermodule\.so arguments\.\.\. ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++type [default=1 success=ignore] pam_succeed_if\&.so quiet uid > 500 ++type required othermodule\&.so arguments\&.\&.\&. + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .SH "SEE ALSO" + .PP + +@@ -188,4 +386,4 @@ + \fBpam\fR(8) + .SH "AUTHOR" + .PP +-Nalin Dahyabhai ++Nalin Dahyabhai +--- Linux-PAM-1.0.2-orig/modules/pam_tally/pam_tally.8 2008-04-16 11:08:10.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_tally/pam_tally.8 2009-01-20 11:59:59.000000000 +0100 +@@ -1,34 +1,194 @@ .\" Title: pam_tally - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_TALLY" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_TALLY" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_TALLY" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -14,7 +14,7 @@ - pam_tally - The login counter (tallying) module - .SH "SYNOPSIS" - .HP 13 + .ad l +-.SH "NAME" +-pam_tally - The login counter (tallying) module +-.SH "SYNOPSIS" +-.HP 13 -\fBpam_tally\.so\fR [file=\fI/path/to/counter\fR] [onerr=[\fIfail\fR|\fIsucceed\fR]] [magic_root] [even_deny_root_account] [deny=\fIn\fR] [lock_time=\fIn\fR] [unlock_time=\fIn\fR] [per_user] [no_lock_time] [no_reset] [audit] -+\fBpam_tally\.so\fR [file=\fI/path/to/counter\fR] [onerr=[\fIfail\fR|\fIsucceed\fR]] [magic_root] [even_deny_root_account] [deny=\fIn\fR] [lock_time=\fIn\fR] [unlock_time=\fIn\fR] [per_user] [no_lock_time] [no_reset] [audit] [silent] [no_log_info] - .HP 10 +-.HP 10 ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_tally \- The login counter (tallying) module ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_tally\&.so\fR\ 'u ++\fBpam_tally\&.so\fR [file=\fI/path/to/counter\fR] [onerr=[\fIfail\fR|\fIsucceed\fR]] [magic_root] [even_deny_root_account] [deny=\fIn\fR] [lock_time=\fIn\fR] [unlock_time=\fIn\fR] [per_user] [no_lock_time] [no_reset] [audit] [silent] [no_log_info] ++.fam ++.fam C ++.HP \w'\fBpam_tally\fR\ 'u \fBpam_tally\fR [\-\-file\ \fI/path/to/counter\fR] [\-\-user\ \fIusername\fR] [\-\-reset[=\fIn\fR]] [\-\-quiet] ++.fam .SH "DESCRIPTION" -@@ -45,7 +45,7 @@ + .PP +-This module maintains a count of attempted accesses, can reset count on success, can deny access if too many attempts fail\. ++This module maintains a count of attempted accesses, can reset count on success, can deny access if too many attempts fail\&. + .PP + pam_tally comes in two parts: +-\fBpam_tally\.so\fR ++\fBpam_tally\&.so\fR + and +-\fBpam_tally\fR\. The former is the PAM module and the latter, a stand\-alone program\. ++\fBpam_tally\fR\&. The former is the PAM module and the latter, a stand\-alone program\&. + \fBpam_tally\fR +-is an (optional) application which can be used to interrogate and manipulate the counter file\. It can display users\' counts, set individual counts, or clear all counts\. Setting artificially high counts may be useful for blocking users without changing their passwords\. For example, one might find it useful to clear all counts every midnight from a cron job\. The ++is an (optional) application which can be used to interrogate and manipulate the counter file\&. It can display users\' counts, set individual counts, or clear all counts\&. Setting artificially high counts may be useful for blocking users without changing their passwords\&. For example, one might find it useful to clear all counts every midnight from a cron job\&. The + \fBfaillog\fR(8) +-command can be used instead of pam_tally to to maintain the counter file\. ++command can be used instead of pam_tally to to maintain the counter file\&. + .PP + Normally, failed attempts to access + \fIroot\fR +@@ -36,7 +196,7 @@ + \fBnot\fR + cause the root account to become blocked, to prevent denial\-of\-service: if your users aren\'t given shell accounts and root may only login via + \fBsu\fR +-or at the machine console (not telnet/rsh, etc), this is safe\. ++or at the machine console (not telnet/rsh, etc), this is safe\&. + .SH "OPTIONS" + .PP + GLOBAL OPTIONS +@@ -45,7 +205,7 @@ \fIauth\fR and \fIaccount\fR -services\. -+module types\. ++module types\&. .PP \fBonerr=[\fR\fB\fIfail\fR\fR\fB|\fR\fB\fIsucceed\fR\fR\fB]\fR .RS 4 -@@ -66,6 +66,17 @@ - .RS 4 - Will log the user name into the system log if the user is not found\. +@@ -53,85 +213,96 @@ + \fBPAM_SUCESS\fR + if + \fBonerr=\fR\fB\fIsucceed\fR\fR +-is given, else with the corresponding PAM error code\. ++is given, else with the corresponding PAM error code\&. .RE + .PP + \fBfile=\fR\fB\fI/path/to/counter\fR\fR + .RS 4 +-File where to keep counts\. Default is +-\fI/var/log/faillog\fR\. ++File where to keep counts\&. Default is ++\FC/var/log/faillog\F[]\&. + .RE + .PP + \fBaudit\fR + .RS 4 +-Will log the user name into the system log if the user is not found\. ++Will log the user name into the system log if the user is not found\&. ++.RE +.PP +\fBsilent\fR +.RS 4 -+Don\'t print informative messages\. ++Don\'t print informative messages\&. +.RE +.PP +\fBno_log_info\fR +.RS 4 +Don\'t log informative messages via -+\fBsyslog\fR(3)\. -+.RE ++\fBsyslog\fR(3)\&. + .RE .RE .PP AUTH OPTIONS -@@ -154,13 +165,13 @@ - Don\'t reset count on successful entry, only decrement\. + .RS 4 +-Authentication phase first checks if user should be denied access and if not it increments attempted login counter\. Then on call to ++Authentication phase first checks if user should be denied access and if not it increments attempted login counter\&. Then on call to + \fBpam_setcred\fR(3) +-it resets the attempts counter\. ++it resets the attempts counter\&. + .PP + \fBdeny=\fR\fB\fIn\fR\fR + .RS 4 + Deny access if tally for this user exceeds +-\fIn\fR\. ++\fIn\fR\&. + .RE + .PP + \fBlock_time=\fR\fB\fIn\fR\fR + .RS 4 + Always deny for + \fIn\fR +-seconds after failed attempt\. ++seconds after failed attempt\&. + .RE + .PP + \fBunlock_time=\fR\fB\fIn\fR\fR + .RS 4 + Allow access after + \fIn\fR +-seconds after failed attempt\. If this option is used the user will be locked out for the specified amount of time after he exceeded his maximum allowed attempts\. Otherwise the account is locked until the lock is removed by a manual intervention of the system administrator\. ++seconds after failed attempt\&. If this option is used the user will be locked out for the specified amount of time after he exceeded his maximum allowed attempts\&. Otherwise the account is locked until the lock is removed by a manual intervention of the system administrator\&. + .RE + .PP + \fBmagic_root\fR + .RS 4 +-If the module is invoked by a user with uid=0 the counter is not incremented\. The sys\-admin should use this for user launched services, like +-\fBsu\fR, otherwise this argument should be omitted\. ++If the module is invoked by a user with uid=0 the counter is not incremented\&. The sys\-admin should use this for user launched services, like ++\fBsu\fR, otherwise this argument should be omitted\&. + .RE + .PP + \fBno_lock_time\fR + .RS 4 +-Do not use the \.fail_locktime field in +-\fI/var/log/faillog\fR +-for this user\. ++Do not use the \&.fail_locktime field in ++\FC/var/log/faillog\F[] ++for this user\&. + .RE + .PP + \fBno_reset\fR + .RS 4 +-Don\'t reset count on successful entry, only decrement\. ++Don\'t reset count on successful entry, only decrement\&. + .RE + .PP + \fBeven_deny_root_account\fR + .RS 4 +-Root account can become unavailable\. ++Root account can become unavailable\&. + .RE + .PP + \fBper_user\fR + .RS 4 + If +-\fI/var/log/faillog\fR +-contains a non\-zero \.fail_max/\.fail_locktime field for this user then use it instead of ++\FC/var/log/faillog\F[] ++contains a non\-zero \&.fail_max/\&.fail_locktime field for this user then use it instead of + \fBdeny=\fR\fB\fIn\fR\fR/ + \fBlock_time=\fR\fB\fIn\fR\fR +-parameter\. ++parameter\&. + .RE + .PP + \fBno_lock_time\fR + .RS 4 +-Don\'t use \.fail_locktime filed in +-\fI/var/log/faillog\fR +-for this user\. ++Don\'t use \&.fail_locktime filed in ++\FC/var/log/faillog\F[] ++for this user\&. + .RE + .RE + .PP +@@ -139,73 +310,91 @@ + .RS 4 + Account phase resets attempts counter if the user is + \fBnot\fR +-magic root\. This phase can be used optionaly for services which don\'t call ++magic root\&. This phase can be used optionaly for services which don\'t call + \fBpam_setcred\fR(3) +-correctly or if the reset should be done regardless of the failure of the account phase of other modules\. ++correctly or if the reset should be done regardless of the failure of the account phase of other modules\&. + .PP + \fBmagic_root\fR + .RS 4 +-If the module is invoked by a user with uid=0 the counter is not incremented\. The sys\-admin should use this for user launched services, like +-\fBsu\fR, otherwise this argument should be omitted\. ++If the module is invoked by a user with uid=0 the counter is not incremented\&. The sys\-admin should use this for user launched services, like ++\fBsu\fR, otherwise this argument should be omitted\&. + .RE + .PP + \fBno_reset\fR + .RS 4 +-Don\'t reset count on successful entry, only decrement\. ++Don\'t reset count on successful entry, only decrement\&. .RE .RE -.SH "MODULE SERVICES PROVIDED" @@ -1637,11 +11902,93 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_tally/pam_tally.8 Linux-PAM-1.0.2/modu and \fBaccount\fR -services are supported\. -+module types are provided\. ++module types are provided\&. .SH "RETURN VALUES" .PP PAM_AUTH_ERR -@@ -214,7 +225,7 @@ + .RS 4 +-A invalid option was given, the module was not able to retrive the user name, no valid counter file was found, or too many failed logins\. ++A invalid option was given, the module was not able to retrive the user name, no valid counter file was found, or too many failed logins\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-Everything was successfull\. ++Everything was successfull\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-User not known\. ++User not known\&. + .RE + .SH "EXAMPLES" + .PP + Add the following line to +-\fI/etc/pam\.d/login\fR +-to lock the account after too many failed logins\. The number of allowed fails is specified by +-\fI/var/log/faillog\fR ++\FC/etc/pam\&.d/login\F[] ++to lock the account after too many failed logins\&. The number of allowed fails is specified by ++\FC/var/log/faillog\F[] + and needs to be set with pam_tally or + \fBfaillog\fR(8) +-before\. ++before\&. + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-auth required pam_securetty\.so +-auth required pam_tally\.so per_user +-auth required pam_env\.so +-auth required pam_unix\.so +-auth required pam_nologin\.so +-account required pam_unix\.so +-password required pam_unix\.so +-session required pam_limits\.so +-session required pam_unix\.so +-session required pam_lastlog\.so nowtmp +-session optional pam_mail\.so standard ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++auth required pam_securetty\&.so ++auth required pam_tally\&.so per_user ++auth required pam_env\&.so ++auth required pam_unix\&.so ++auth required pam_nologin\&.so ++account required pam_unix\&.so ++password required pam_unix\&.so ++session required pam_limits\&.so ++session required pam_unix\&.so ++session required pam_lastlog\&.so nowtmp ++session optional pam_mail\&.so standard + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .SH "FILES" + .PP +-\fI/var/log/faillog\fR ++\FC/var/log/faillog\F[] + .RS 4 + failure logging file + .RE +@@ -214,8 +403,8 @@ \fBfaillog\fR(8), \fBpam.conf\fR(5), @@ -1650,9 +11997,10 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_tally/pam_tally.8 Linux-PAM-1.0.2/modu \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_tally/README Linux-PAM-1.0.2/modules/pam_tally/README ---- Linux-PAM-1.0.2-old/modules/pam_tally/README 2008-04-16 11:08:11.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_tally/README 2008-10-17 13:02:56.000000000 +0200 +-pam_tally was written by Tim Baverstock and Tomas Mraz\. ++pam_tally was written by Tim Baverstock and Tomas Mraz\&. +--- Linux-PAM-1.0.2-orig/modules/pam_tally/README 2008-04-16 11:08:11.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_tally/README 2009-01-20 12:00:01.000000000 +0100 @@ -25,7 +25,7 @@ GLOBAL OPTIONS @@ -1677,39 +12025,198 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_tally/README Linux-PAM-1.0.2/modules/p AUTH OPTIONS Authentication phase first checks if user should be denied access and if -diff -urN Linux-PAM-1.0.2-old/modules/pam_tally2/pam_tally2.8 Linux-PAM-1.0.2/modules/pam_tally2/pam_tally2.8 ---- Linux-PAM-1.0.2-old/modules/pam_tally2/pam_tally2.8 1970-01-01 01:00:00.000000000 +0100 -+++ Linux-PAM-1.0.2/modules/pam_tally2/pam_tally2.8 2008-10-17 13:02:59.000000000 +0200 -@@ -0,0 +1,224 @@ +--- Linux-PAM-1.0.2-orig/modules/pam_tally2/pam_tally2.8 1970-01-01 01:00:00.000000000 +0100 ++++ Linux-PAM-1.0.2/modules/pam_tally2/pam_tally2.8 2009-01-20 12:00:03.000000000 +0100 +@@ -0,0 +1,402 @@ +.\" Title: pam_tally2 -+.\" Author: -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 +.\" Manual: Linux-PAM Manual +.\" Source: Linux-PAM Manual ++.\" Language: English +.\" -+.TH "PAM_TALLY2" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_TALLY2" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l -+.SH "NAME" -+pam_tally2 - The login counter (tallying) module -+.SH "SYNOPSIS" -+.HP 14 -+\fBpam_tally2\.so\fR [file=\fI/path/to/counter\fR] [onerr=[\fIfail\fR|\fIsucceed\fR]] [magic_root] [even_deny_root] [deny=\fIn\fR] [lock_time=\fIn\fR] [unlock_time=\fIn\fR] [root_unlock_time=\fIn\fR] [audit] [silent] [no_log_info] -+.HP 11 ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_tally2 \- The login counter (tallying) module ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_tally2\&.so\fR\ 'u ++\fBpam_tally2\&.so\fR [file=\fI/path/to/counter\fR] [onerr=[\fIfail\fR|\fIsucceed\fR]] [magic_root] [even_deny_root] [deny=\fIn\fR] [lock_time=\fIn\fR] [unlock_time=\fIn\fR] [root_unlock_time=\fIn\fR] [audit] [silent] [no_log_info] ++.fam ++.fam C ++.HP \w'\fBpam_tally2\fR\ 'u +\fBpam_tally2\fR [\-\-file\ \fI/path/to/counter\fR] [\-\-user\ \fIusername\fR] [\-\-reset[=\fIn\fR]] [\-\-quiet] ++.fam +.SH "DESCRIPTION" +.PP -+This module maintains a count of attempted accesses, can reset count on success, can deny access if too many attempts fail\. ++This module maintains a count of attempted accesses, can reset count on success, can deny access if too many attempts fail\&. +.PP +pam_tally2 comes in two parts: -+\fBpam_tally2\.so\fR ++\fBpam_tally2\&.so\fR +and -+\fBpam_tally2\fR\. The former is the PAM module and the latter, a stand\-alone program\. ++\fBpam_tally2\fR\&. The former is the PAM module and the latter, a stand\-alone program\&. +\fBpam_tally2\fR -+is an (optional) application which can be used to interrogate and manipulate the counter file\. It can display users\' counts, set individual counts, or clear all counts\. Setting artificially high counts may be useful for blocking users without changing their passwords\. For example, one might find it useful to clear all counts every midnight from a cron job\. ++is an (optional) application which can be used to interrogate and manipulate the counter file\&. It can display users\' counts, set individual counts, or clear all counts\&. Setting artificially high counts may be useful for blocking users without changing their passwords\&. For example, one might find it useful to clear all counts every midnight from a cron job\&. +.PP +Normally, failed attempts to access +\fIroot\fR @@ -1717,7 +12224,7 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_tally2/pam_tally2.8 Linux-PAM-1.0.2/mo +\fBnot\fR +cause the root account to become blocked, to prevent denial\-of\-service: if your users aren\'t given shell accounts and root may only login via +\fBsu\fR -+or at the machine console (not telnet/rsh, etc), this is safe\. ++or at the machine console (not telnet/rsh, etc), this is safe\&. +.SH "OPTIONS" +.PP +GLOBAL OPTIONS @@ -1726,7 +12233,7 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_tally2/pam_tally2.8 Linux-PAM-1.0.2/mo +\fIauth\fR +and +\fIaccount\fR -+module types\. ++module types\&. +.PP +\fBonerr=[\fR\fB\fIfail\fR\fR\fB|\fR\fB\fIsucceed\fR\fR\fB]\fR +.RS 4 @@ -1734,88 +12241,88 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_tally2/pam_tally2.8 Linux-PAM-1.0.2/mo +\fBPAM_SUCESS\fR +if +\fBonerr=\fR\fB\fIsucceed\fR\fR -+is given, else with the corresponding PAM error code\. ++is given, else with the corresponding PAM error code\&. +.RE +.PP +\fBfile=\fR\fB\fI/path/to/counter\fR\fR +.RS 4 -+File where to keep counts\. Default is -+\fI/var/log/tallylog\fR\. ++File where to keep counts\&. Default is ++\FC/var/log/tallylog\F[]\&. +.RE +.PP +\fBaudit\fR +.RS 4 -+Will log the user name into the system log if the user is not found\. ++Will log the user name into the system log if the user is not found\&. +.RE +.PP +\fBsilent\fR +.RS 4 -+Don\'t print informative messages\. ++Don\'t print informative messages\&. +.RE +.PP +\fBno_log_info\fR +.RS 4 +Don\'t log informative messages via -+\fBsyslog\fR(3)\. ++\fBsyslog\fR(3)\&. +.RE +.RE +.PP +AUTH OPTIONS +.RS 4 -+Authentication phase first increments attempted login counter and checks if user should be denied access\. If the user is authenticated and the login process continues on call to ++Authentication phase first increments attempted login counter and checks if user should be denied access\&. If the user is authenticated and the login process continues on call to +\fBpam_setcred\fR(3) -+it resets the attempts counter\. ++it resets the attempts counter\&. +.PP +\fBdeny=\fR\fB\fIn\fR\fR +.RS 4 +Deny access if tally for this user exceeds -+\fIn\fR\. ++\fIn\fR\&. +.RE +.PP +\fBlock_time=\fR\fB\fIn\fR\fR +.RS 4 +Always deny for +\fIn\fR -+seconds after failed attempt\. ++seconds after failed attempt\&. +.RE +.PP +\fBunlock_time=\fR\fB\fIn\fR\fR +.RS 4 +Allow access after +\fIn\fR -+seconds after failed attempt\. If this option is used the user will be locked out for the specified amount of time after he exceeded his maximum allowed attempts\. Otherwise the account is locked until the lock is removed by a manual intervention of the system administrator\. ++seconds after failed attempt\&. If this option is used the user will be locked out for the specified amount of time after he exceeded his maximum allowed attempts\&. Otherwise the account is locked until the lock is removed by a manual intervention of the system administrator\&. +.RE +.PP +\fBmagic_root\fR +.RS 4 -+If the module is invoked by a user with uid=0 the counter is not incremented\. The sys\-admin should use this for user launched services, like -+\fBsu\fR, otherwise this argument should be omitted\. ++If the module is invoked by a user with uid=0 the counter is not incremented\&. The sys\-admin should use this for user launched services, like ++\fBsu\fR, otherwise this argument should be omitted\&. +.RE +.PP +\fBno_lock_time\fR +.RS 4 -+Do not use the \.fail_locktime field in -+\fI/var/log/faillog\fR -+for this user\. ++Do not use the \&.fail_locktime field in ++\FC/var/log/faillog\F[] ++for this user\&. +.RE +.PP +\fBno_reset\fR +.RS 4 -+Don\'t reset count on successful entry, only decrement\. ++Don\'t reset count on successful entry, only decrement\&. +.RE +.PP +\fBeven_deny_root\fR +.RS 4 -+Root account can become unavailable\. ++Root account can become unavailable\&. +.RE +.PP +\fBroot_unlock_time=\fR\fB\fIn\fR\fR +.RS 4 +This option implies +\fBeven_deny_root\fR -+option\. Allow access after ++option\&. Allow access after +\fIn\fR -+seconds to root acccount after failed attempt\. If this option is used the root user will be locked out for the specified amount of time after he exceeded his maximum allowed attempts\. ++seconds to root acccount after failed attempt\&. If this option is used the root user will be locked out for the specified amount of time after he exceeded his maximum allowed attempts\&. +.RE +.RE +.PP @@ -1823,14 +12330,14 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_tally2/pam_tally2.8 Linux-PAM-1.0.2/mo +.RS 4 +Account phase resets attempts counter if the user is +\fBnot\fR -+magic root\. This phase can be used optionaly for services which don\'t call ++magic root\&. This phase can be used optionaly for services which don\'t call +\fBpam_setcred\fR(3) -+correctly or if the reset should be done regardless of the failure of the account phase of other modules\. ++correctly or if the reset should be done regardless of the failure of the account phase of other modules\&. +.PP +\fBmagic_root\fR +.RS 4 -+If the module is invoked by a user with uid=0 the counter is not changed\. The sys\-admin should use this for user launched services, like -+\fBsu\fR, otherwise this argument should be omitted\. ++If the module is invoked by a user with uid=0 the counter is not changed\&. The sys\-admin should use this for user launched services, like ++\fBsu\fR, otherwise this argument should be omitted\&. +.RE +.RE +.SH "MODULE TYPES PROVIDED" @@ -1839,60 +12346,78 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_tally2/pam_tally2.8 Linux-PAM-1.0.2/mo +\fBauth\fR +and +\fBaccount\fR -+module types are provided\. ++module types are provided\&. +.SH "RETURN VALUES" +.PP +PAM_AUTH_ERR +.RS 4 -+A invalid option was given, the module was not able to retrive the user name, no valid counter file was found, or too many failed logins\. ++A invalid option was given, the module was not able to retrive the user name, no valid counter file was found, or too many failed logins\&. +.RE +.PP +PAM_SUCCESS +.RS 4 -+Everything was successfull\. ++Everything was successfull\&. +.RE +.PP +PAM_USER_UNKNOWN +.RS 4 -+User not known\. ++User not known\&. +.RE +.SH "NOTES" +.PP -+pam_tally2 is not compatible with the old pam_tally faillog file format\. This is caused by requirement of compatibility of the tallylog file format between 32bit and 64bit architectures on multiarch systems\. ++pam_tally2 is not compatible with the old pam_tally faillog file format\&. This is caused by requirement of compatibility of the tallylog file format between 32bit and 64bit architectures on multiarch systems\&. +.PP +There is no setuid wrapper for access to the data file such as when the -+\fBpam_tally2\.so\fR -+module is called from xscreensaver\. As this would make it impossible to share PAM configuration with such services the following workaround is used: If the data file cannot be opened because of insufficient permissions (\fBEPERM\fR) the module returns -+\fBPAM_IGNORE\fR\. ++\fBpam_tally2\&.so\fR ++module is called from xscreensaver\&. As this would make it impossible to share PAM configuration with such services the following workaround is used: If the data file cannot be opened because of insufficient permissions (\fBEPERM\fR) the module returns ++\fBPAM_IGNORE\fR\&. +.SH "EXAMPLES" +.PP +Add the following line to -+\fI/etc/pam\.d/login\fR -+to lock the account after 4 failed logins\. Root account will be locked as well\. The accounts will be automatically unlocked after 20 minutes\. The module does not have to be called in the account phase because the ++\FC/etc/pam\&.d/login\F[] ++to lock the account after 4 failed logins\&. Root account will be locked as well\&. The accounts will be automatically unlocked after 20 minutes\&. The module does not have to be called in the account phase because the +\fBlogin\fR +calls +\fBpam_setcred\fR(3) -+correctly\. ++correctly\&. +.sp ++.if n \{\ +.RS 4 ++.\} ++.fam C ++.ps -1 +.nf -+auth required pam_securetty\.so -+auth required pam_tally2\.so deny=4 even_deny_root unlock_time=1200 -+auth required pam_env\.so -+auth required pam_unix\.so -+auth required pam_nologin\.so -+account required pam_unix\.so -+password required pam_unix\.so -+session required pam_limits\.so -+session required pam_unix\.so -+session required pam_lastlog\.so nowtmp -+session optional pam_mail\.so standard ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++auth required pam_securetty\&.so ++auth required pam_tally2\&.so deny=4 even_deny_root unlock_time=1200 ++auth required pam_env\&.so ++auth required pam_unix\&.so ++auth required pam_nologin\&.so ++account required pam_unix\&.so ++password required pam_unix\&.so ++session required pam_limits\&.so ++session required pam_unix\&.so ++session required pam_lastlog\&.so nowtmp ++session optional pam_mail\&.so standard + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} +.fi ++.fam ++.ps +1 ++.if n \{\ +.RE ++.\} +.SH "FILES" +.PP -+\fI/var/log/tallylog\fR ++\FC/var/log/tallylog\F[] +.RS 4 +failure count logging file +.RE @@ -1904,10 +12429,9 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_tally2/pam_tally2.8 Linux-PAM-1.0.2/mo +\fBpam\fR(8) +.SH "AUTHOR" +.PP -+pam_tally was written by Tim Baverstock and Tomas Mraz\. -diff -urN Linux-PAM-1.0.2-old/modules/pam_tally2/README Linux-PAM-1.0.2/modules/pam_tally2/README ---- Linux-PAM-1.0.2-old/modules/pam_tally2/README 1970-01-01 01:00:00.000000000 +0100 -+++ Linux-PAM-1.0.2/modules/pam_tally2/README 2008-10-17 13:03:00.000000000 +0200 ++pam_tally was written by Tim Baverstock and Tomas Mraz\&. +--- Linux-PAM-1.0.2-orig/modules/pam_tally2/README 1970-01-01 01:00:00.000000000 +0100 ++++ Linux-PAM-1.0.2/modules/pam_tally2/README 2009-01-20 12:00:06.000000000 +0100 @@ -0,0 +1,146 @@ +pam_tally2 — The login counter (tallying) module + @@ -2055,27 +12579,217 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_tally2/README Linux-PAM-1.0.2/modules/ + +pam_tally was written by Tim Baverstock and Tomas Mraz. + -diff -urN Linux-PAM-1.0.2-old/modules/pam_time/pam_time.8 Linux-PAM-1.0.2/modules/pam_time/pam_time.8 ---- Linux-PAM-1.0.2-old/modules/pam_time/pam_time.8 2008-04-16 11:08:15.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_time/pam_time.8 2008-10-17 13:03:02.000000000 +0200 -@@ -1,11 +1,11 @@ +--- Linux-PAM-1.0.2-orig/modules/pam_time/pam_time.8 2008-04-16 11:08:15.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_time/pam_time.8 2009-01-20 12:00:08.000000000 +0100 +@@ -1,95 +1,271 @@ .\" Title: pam_time - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_TIME" "8" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" -+.TH "PAM_TIME" "8" "10/17/2008" "Linux-PAM Manual" "Linux-PAM Manual" ++.TH "PAM_TIME" "8" "01/20/2009" "Linux-PAM Manual" "Linux-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -35,11 +35,11 @@ + .ad l +-.SH "NAME" +-pam_time - PAM module for time control access +-.SH "SYNOPSIS" +-.HP 12 +-\fBpam_time\.so\fR [debug] [noaudit] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_time \- PAM module for time control access ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_time\&.so\fR\ 'u ++\fBpam_time\&.so\fR [debug] [noaudit] ++.fam + .SH "DESCRIPTION" + .PP +-The pam_time PAM module does not authenticate the user, but instead it restricts access to a system and or specific applications at various times of the day and on specific days or over various terminal lines\. This module can be configured to deny access to (individual) users based on their name, the time of day, the day of week, the service they are applying for and their terminal from which they are making their request\. ++The pam_time PAM module does not authenticate the user, but instead it restricts access to a system and or specific applications at various times of the day and on specific days or over various terminal lines\&. This module can be configured to deny access to (individual) users based on their name, the time of day, the day of week, the service they are applying for and their terminal from which they are making their request\&. + .PP + By default rules for time/port access are taken from config file +-\fI/etc/security/time\.conf\fR\. ++\FC/etc/security/time\&.conf\F[]\&. + .PP +-If Linux PAM is compiled with audit support the module will report when it denies access\. ++If Linux PAM is compiled with audit support the module will report when it denies access\&. + .SH "OPTIONS" + .PP + \fBdebug\fR .RS 4 - Do not report logins at disallowed time to the audit subsystem\. + Some debug informations are printed with +-\fBsyslog\fR(3)\. ++\fBsyslog\fR(3)\&. + .RE + .PP + \fBnoaudit\fR + .RS 4 +-Do not report logins at disallowed time to the audit subsystem\. ++Do not report logins at disallowed time to the audit subsystem\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -2083,40 +12797,310 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_time/pam_time.8 Linux-PAM-1.0.2/module Only the \fBaccount\fR -service is supported\. -+type is provided\. ++type is provided\&. .SH "RETURN VALUES" .PP PAM_SUCCESS -@@ -88,7 +88,7 @@ + .RS 4 +-Access was granted\. ++Access was granted\&. + .RE + .PP + PAM_ABORT + .RS 4 +-Not all relevant data could be gotten\. ++Not all relevant data could be gotten\&. + .RE + .PP + PAM_BUF_ERR + .RS 4 +-Memory buffer error\. ++Memory buffer error\&. + .RE + .PP + PAM_PERM_DENIED + .RS 4 +-Access was not granted\. ++Access was not granted\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-The user is not known to the system\. ++The user is not known to the system\&. + .RE + .SH "FILES" + .PP +-\fI/etc/security/time\.conf\fR ++\FC/etc/security/time\&.conf\F[] + .RS 4 + Default configuration file + .RE + .SH "EXAMPLES" + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-#%PAM\-1\.0 ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++#%PAM\-1\&.0 + # + # apply pam_time accounting to login requests + # +-login account required pam_time\.so ++login account required pam_time\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .SH "SEE ALSO" .PP \fBtime.conf\fR(5), -\fBpam.d\fR(8), +-\fBpam\fR(8)\. +\fBpam.d\fR(5), - \fBpam\fR(8)\. ++\fBpam\fR(8)\&. .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_tty_audit/pam_tty_audit.8 Linux-PAM-1.0.2/modules/pam_tty_audit/pam_tty_audit.8 ---- Linux-PAM-1.0.2-old/modules/pam_tty_audit/pam_tty_audit.8 2008-04-16 11:08:21.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_tty_audit/pam_tty_audit.8 2008-10-17 13:03:05.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_time was written by Andrew G\. Morgan \. ++pam_time was written by Andrew G\&. Morgan \&. +--- Linux-PAM-1.0.2-orig/modules/pam_tty_audit/pam_tty_audit.8 2008-04-16 11:08:21.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_tty_audit/pam_tty_audit.8 2009-01-20 12:00:11.000000000 +0100 +@@ -1,80 +1,256 @@ .\" Title: pam_tty_audit - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_TTY_AUDIT" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_TTY_AUDIT" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_TTY_AUDIT" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -43,11 +43,11 @@ + .ad l +-.SH "NAME" +-pam_tty_audit - Enable or disable TTY auditing for specified users +-.SH "SYNOPSIS" +-.HP 17 +-\fBpam_tty_audit\.so\fR [disable=\fIpatterns\fR] [enable=\fIpatterns\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_tty_audit \- Enable or disable TTY auditing for specified users ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_tty_audit\&.so\fR\ 'u ++\fBpam_tty_audit\&.so\fR [disable=\fIpatterns\fR] [enable=\fIpatterns\fR] ++.fam + .SH "DESCRIPTION" + .PP +-The pam_tty_audit PAM module is used to enable or disable TTY auditing\. By default, the kernel does not audit input on any TTY\. ++The pam_tty_audit PAM module is used to enable or disable TTY auditing\&. By default, the kernel does not audit input on any TTY\&. + .SH "OPTIONS" + .PP + \fBdisable=\fR\fB\fIpatterns\fR\fR + .RS 4 + For each user matching one of comma\-separated glob +-\fB\fIpatterns\fR\fR, disable TTY auditing\. This overrides any previous ++\fB\fIpatterns\fR\fR, disable TTY auditing\&. This overrides any previous + \fBenable\fR +-option matchin the same user name on the command line\. ++option matchin the same user name on the command line\&. + .RE + .PP + \fBenable=\fR\fB\fIpatterns\fR\fR + .RS 4 + For each user matching one of comma\-separated glob +-\fB\fIpatterns\fR\fR, enable TTY auditing\. This overrides any previous ++\fB\fIpatterns\fR\fR, enable TTY auditing\&. This overrides any previous + \fBdisable\fR +-option matching the same user name on the command line\. ++option matching the same user name on the command line\&. + .RE + .PP + \fBopen_only\fR + .RS 4 +-Set the TTY audit flag when opening the session, but do not restore it when closing the session\. Using this option is necessary for some services that don\'t ++Set the TTY audit flag when opening the session, but do not restore it when closing the session\&. Using this option is necessary for some services that don\'t + \fBfork()\fR to run the authenticated session, such as - \fBsudo\fR\. +-\fBsudo\fR\. ++\fBsudo\fR\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -2124,31 +13108,355 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_tty_audit/pam_tty_audit.8 Linux-PAM-1. Only the \fBsession\fR -service is supported\. -+type is supported\. ++type is supported\&. .SH "RETURN VALUES" .PP PAM_SESSION_ERR -diff -urN Linux-PAM-1.0.2-old/modules/pam_umask/pam_umask.8 Linux-PAM-1.0.2/modules/pam_umask/pam_umask.8 ---- Linux-PAM-1.0.2-old/modules/pam_umask/pam_umask.8 2008-04-16 11:08:27.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_umask/pam_umask.8 2008-10-17 13:03:08.000000000 +0200 -@@ -1,11 +1,11 @@ + .RS 4 +-Error reading or modifying the TTY audit flag\. See the system log for more details\. ++Error reading or modifying the TTY audit flag\&. See the system log for more details\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-Success\. ++Success\&. + .RE + .SH "NOTES" + .PP +-When TTY auditing is enabled, it is inherited by all processes started by that user\. In particular, daemons restarted by an user will still have TTY auditing enabled, and audit TTY input even by other users unless auditing for these users is explicitly disabled\. Therefore, it is recommended to use ++When TTY auditing is enabled, it is inherited by all processes started by that user\&. In particular, daemons restarted by an user will still have TTY auditing enabled, and audit TTY input even by other users unless auditing for these users is explicitly disabled\&. Therefore, it is recommended to use + \fBdisable=*\fR +-as the first option for most daemons using PAM\. ++as the first option for most daemons using PAM\&. + .SH "EXAMPLES" + .PP +-Audit all administrative actions\. ++Audit all administrative actions\&. + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-session required pam_tty_audit\.so disable=* enable=root ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++session required pam_tty_audit\&.so disable=* enable=root + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "AUTHOR" + .PP +-pam_tty_audit was written by Miloslav Trmač \. ++pam_tty_audit was written by Miloslav Trmač \&. +--- Linux-PAM-1.0.2-orig/modules/pam_umask/pam_umask.8 2008-04-16 11:08:27.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_umask/pam_umask.8 2009-01-20 12:00:14.000000000 +0100 +@@ -1,48 +1,248 @@ .\" Title: pam_umask - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_UMASK" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_UMASK" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_UMASK" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -70,11 +70,11 @@ + .ad l +-.SH "NAME" +-pam_umask - PAM module to set the file mode creation mask +-.SH "SYNOPSIS" +-.HP 13 +-\fBpam_umask\.so\fR [debug] [silent] [usergroups] [umask=\fImask\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_umask \- PAM module to set the file mode creation mask ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_umask\&.so\fR\ 'u ++\fBpam_umask\&.so\fR [debug] [silent] [usergroups] [umask=\fImask\fR] ++.fam + .SH "DESCRIPTION" + .PP +-pam_umask is a PAM module to set the file mode creation mask of the current environment\. The umask affects the default permissions assigned to newly created files\. ++pam_umask is a PAM module to set the file mode creation mask of the current environment\&. The umask affects the default permissions assigned to newly created files\&. + .PP + The PAM module tries to get the umask value from the following places in the following order: + .sp + .RS 4 +-\h'-04'\(bu\h'+03'umask= argument ++.ie n \{\ ++\h'-04'\(bu\h'+03'\c ++.\} ++.el \{\ ++.sp -1 ++.IP \(bu 2.3 ++.\} ++umask= argument + .RE + .sp + .RS 4 +-\h'-04'\(bu\h'+03'umask= entry of the users GECOS field ++.ie n \{\ ++\h'-04'\(bu\h'+03'\c ++.\} ++.el \{\ ++.sp -1 ++.IP \(bu 2.3 ++.\} ++umask= entry of the users GECOS field + .RE + .sp + .RS 4 +-\h'-04'\(bu\h'+03'pri= entry of the users GECOS field ++.ie n \{\ ++\h'-04'\(bu\h'+03'\c ++.\} ++.el \{\ ++.sp -1 ++.IP \(bu 2.3 ++.\} ++pri= entry of the users GECOS field + .RE + .sp + .RS 4 +-\h'-04'\(bu\h'+03'ulimit= entry of the users GECOS field ++.ie n \{\ ++\h'-04'\(bu\h'+03'\c ++.\} ++.el \{\ ++.sp -1 ++.IP \(bu 2.3 ++.\} ++ulimit= entry of the users GECOS field + .RE + .sp + .RS 4 +-\h'-04'\(bu\h'+03'UMASK= entry from /etc/default/login ++.ie n \{\ ++\h'-04'\(bu\h'+03'\c ++.\} ++.el \{\ ++.sp -1 ++.IP \(bu 2.3 ++.\} ++UMASK= entry from /etc/default/login + .RE + .sp + .RS 4 +-\h'-04'\(bu\h'+03'UMASK entry from /etc/login\.defs ++.ie n \{\ ++\h'-04'\(bu\h'+03'\c ++.\} ++.el \{\ ++.sp -1 ++.IP \(bu 2.3 ++.\} ++UMASK entry from /etc/login\&.defs + .RE + .sp + .RE +@@ -51,66 +251,84 @@ + .PP + \fBdebug\fR + .RS 4 +-Print debug information\. ++Print debug information\&. + .RE + .PP + \fBsilent\fR + .RS 4 +-Don\'t print informative messages\. ++Don\'t print informative messages\&. + .RE + .PP + \fBusergroups\fR + .RS 4 +-If the user is not root, and the user ID is equal to the group ID, and the username is the same as primary group name, the umask group bits are set to be the same as owner bits (examples: 022 \-> 002, 077 \-> 007)\. ++If the user is not root, and the user ID is equal to the group ID, and the username is the same as primary group name, the umask group bits are set to be the same as owner bits (examples: 022 \-> 002, 077 \-> 007)\&. + .RE + .PP + \fBumask=\fR\fB\fImask\fR\fR + .RS 4 + Sets the calling process\'s file mode creation mask (umask) to \fBmask\fR - & 0777\. The value is interpreted as Octal\. +-& 0777\. The value is interpreted as Octal\. ++& 0777\&. The value is interpreted as Octal\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -2156,11 +13464,61 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_umask/pam_umask.8 Linux-PAM-1.0.2/modu Only the \fBsession\fR -service is supported\. -+type is provided\. ++type is provided\&. .SH "RETURN VALUES" .PP .PP -@@ -109,7 +109,7 @@ + PAM_SUCCESS + .RS 4 +-The new umask was set successfull\. ++The new umask was set successfull\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-No username was given\. ++No username was given\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-User not known\. ++User not known\&. + .RE + .SH "EXAMPLES" + .PP + Add the following line to +-\fI/etc/pam\.d/login\fR ++\FC/etc/pam\&.d/login\F[] + to set the user specific umask at login: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +- session optional pam_umask\.so umask=0022 ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++ session optional pam_umask\&.so umask=0022 + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -2169,29 +13527,362 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_umask/pam_umask.8 Linux-PAM-1.0.2/modu \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_unix/pam_unix.8 Linux-PAM-1.0.2/modules/pam_unix/pam_unix.8 ---- Linux-PAM-1.0.2-old/modules/pam_unix/pam_unix.8 2008-04-16 11:08:40.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_unix/pam_unix.8 2008-10-17 13:03:17.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_umask was written by Thorsten Kukuk \. ++pam_umask was written by Thorsten Kukuk \&. +--- Linux-PAM-1.0.2-orig/modules/pam_unix/pam_unix.8 2008-04-16 11:08:40.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_unix/pam_unix.8 2009-01-20 12:00:24.000000000 +0100 +@@ -1,85 +1,243 @@ .\" Title: pam_unix - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_UNIX" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_UNIX" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_UNIX" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -148,9 +148,13 @@ + .ad l +-.SH "NAME" +-pam_unix - Module for traditional password authentication +-.SH "SYNOPSIS" +-.HP 12 +-\fBpam_unix\.so\fR [\.\.\.] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_unix \- Module for traditional password authentication ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_unix\&.so\fR\ 'u ++\fBpam_unix\&.so\fR [\&.\&.\&.] ++.fam + .SH "DESCRIPTION" + .PP +-This is the standard Unix authentication module\. It uses standard calls from the system\'s libraries to retrieve and set account information as well as authentication\. Usually this is obtained from the /etc/passwd and the /etc/shadow file as well if shadow is enabled\. ++This is the standard Unix authentication module\&. It uses standard calls from the system\'s libraries to retrieve and set account information as well as authentication\&. Usually this is obtained from the /etc/passwd and the /etc/shadow file as well if shadow is enabled\&. + .PP + The account component performs the task of establishing the status of the user\'s account and password based on the following + \fIshadow\fR +-elements: expire, last_change, max_change, min_change, warn_change\. In the case of the latter, it may offer advice to the user on changing their password or, through the ++elements: expire, last_change, max_change, min_change, warn_change\&. In the case of the latter, it may offer advice to the user on changing their password or, through the + \fBPAM_AUTHTOKEN_REQD\fR +-return, delay giving service to the user until they have established a new password\. The entries listed above are documented in the ++return, delay giving service to the user until they have established a new password\&. The entries listed above are documented in the + \fBshadow\fR(5) +-manual page\. Should the user\'s record not contain one or more of these entries, the corresponding ++manual page\&. Should the user\'s record not contain one or more of these entries, the corresponding + \fIshadow\fR +-check is not performed\. ++check is not performed\&. + .PP +-The authentication component performs the task of checking the users credentials (password)\. The default action of this module is to not permit the user access to a service if their official password is blank\. ++The authentication component performs the task of checking the users credentials (password)\&. The default action of this module is to not permit the user access to a service if their official password is blank\&. + .PP + A helper binary, +-\fBunix_chkpwd\fR(8), is provided to check the user\'s password when it is stored in a read protected database\. This binary is very simple and will only check the password of the user invoking it\. It is called transparently on behalf of the user by the authenticating component of this module\. In this way it is possible for applications like ++\fBunix_chkpwd\fR(8), is provided to check the user\'s password when it is stored in a read protected database\&. This binary is very simple and will only check the password of the user invoking it\&. It is called transparently on behalf of the user by the authenticating component of this module\&. In this way it is possible for applications like + \fBxlock\fR(1) +-to work without being setuid\-root\. The module, by default, will temporarily turn off SIGCHLD handling for the duration of execution of the helper binary\. This is generally the right thing to do, as many applications are not prepared to handle this signal from a child they didn\'t know was +-\fBfork()\fRd\. The ++to work without being setuid\-root\&. The module, by default, will temporarily turn off SIGCHLD handling for the duration of execution of the helper binary\&. This is generally the right thing to do, as many applications are not prepared to handle this signal from a child they didn\'t know was ++\fBfork()\fRd\&. The + \fBnoreap\fR +-module argument can be used to suppress this temporary shielding and may be needed for use with certain applications\. ++module argument can be used to suppress this temporary shielding and may be needed for use with certain applications\&. + .PP +-The password component of this module performs the task of updating the user\'s password\. ++The password component of this module performs the task of updating the user\'s password\&. + .PP +-The session component of this module logs when a user logins or leave the system\. ++The session component of this module logs when a user logins or leave the system\&. + .PP +-Remaining arguments, supported by others functions of this module, are silently ignored\. Other arguments are logged as errors through +-\fBsyslog\fR(3)\. ++Remaining arguments, supported by others functions of this module, are silently ignored\&. Other arguments are logged as errors through ++\fBsyslog\fR(3)\&. + .SH "OPTIONS" + .PP + \fBdebug\fR + .RS 4 + Turns on debugging via +-\fBsyslog\fR(3)\. ++\fBsyslog\fR(3)\&. + .RE + .PP + \fBaudit\fR + .RS 4 +-A little more extreme than debug\. ++A little more extreme than debug\&. + .RE + .PP + \fBnullok\fR + .RS 4 +-The default action of this module is to not permit the user access to a service if their official password is blank\. The ++The default action of this module is to not permit the user access to a service if their official password is blank\&. The + \fBnullok\fR +-argument overrides this default\. ++argument overrides this default\&. + .RE + .PP + \fBtry_first_pass\fR + .RS 4 +-Before prompting the user for their password, the module first tries the previous stacked module\'s password in case that satisfies this module as well\. ++Before prompting the user for their password, the module first tries the previous stacked module\'s password in case that satisfies this module as well\&. + .RE + .PP + \fBuse_first_pass\fR + .RS 4 + The argument + \fBuse_first_pass\fR +-forces the module to use a previous stacked modules password and will never prompt the user \- if no password is available or the password is not appropriate, the user will be denied access\. ++forces the module to use a previous stacked modules password and will never prompt the user \- if no password is available or the password is not appropriate, the user will be denied access\&. + .RE + .PP + \fBnodelay\fR + .RS 4 +-This argument can be used to discourage the authentication component from requesting a delay should the authentication as a whole fail\. The default action is for the module to request a delay\-on\-failure of the order of two second\. ++This argument can be used to discourage the authentication component from requesting a delay should the authentication as a whole fail\&. The default action is for the module to request a delay\-on\-failure of the order of two second\&. + .RE + .PP + \fBuse_authtok\fR +@@ -88,17 +246,17 @@ + \fBpassword\fR + module (this is used in the example of the stacking of the + \fBpam_cracklib\fR +-module documented above)\. ++module documented above)\&. + .RE + .PP + \fBnot_set_pass\fR + .RS 4 +-This argument is used to inform the module that it is not to pay attention to/make available the old or new passwords from/to other (stacked) password modules\. ++This argument is used to inform the module that it is not to pay attention to/make available the old or new passwords from/to other (stacked) password modules\&. + .RE + .PP + \fBnis\fR + .RS 4 +-NIS RPC is used for setting new passwords\. ++NIS RPC is used for setting new passwords\&. + .RE + .PP + \fBremember=\fR\fB\fIn\fR\fR +@@ -106,84 +264,106 @@ + The last + \fIn\fR + passwords for each user are saved in +-\fI/etc/security/opasswd\fR +-in order to force password change history and keep the user from alternating between the same password too frequently\. ++\FC/etc/security/opasswd\F[] ++in order to force password change history and keep the user from alternating between the same password too frequently\&. + .RE + .PP + \fBshadow\fR + .RS 4 +-Try to maintain a shadow based system\. ++Try to maintain a shadow based system\&. + .RE + .PP + \fBmd5\fR + .RS 4 +-When a user changes their password next, encrypt it with the MD5 algorithm\. ++When a user changes their password next, encrypt it with the MD5 algorithm\&. + .RE + .PP + \fBbigcrypt\fR + .RS 4 +-When a user changes their password next, encrypt it with the DEC C2 algorithm\. ++When a user changes their password next, encrypt it with the DEC C2 algorithm\&. + .RE + .PP + \fBsha256\fR + .RS 4 +-When a user changes their password next, encrypt it with the SHA256 algorithm\. If the SHA256 algorithm is not known to the libcrypt, fall back to MD5\. ++When a user changes their password next, encrypt it with the SHA256 algorithm\&. If the SHA256 algorithm is not known to the libcrypt, fall back to MD5\&. + .RE + .PP + \fBsha512\fR + .RS 4 +-When a user changes their password next, encrypt it with the SHA512 algorithm\. If the SHA512 algorithm is not known to the libcrypt, fall back to MD5\. ++When a user changes their password next, encrypt it with the SHA512 algorithm\&. If the SHA512 algorithm is not known to the libcrypt, fall back to MD5\&. + .RE + .PP + \fBrounds=\fR\fB\fIn\fR\fR + .RS 4 + Set the optional number of rounds of the SHA256 and SHA512 password hashing algorithms to +-\fIn\fR\. ++\fIn\fR\&. + .RE + .PP + \fBbroken_shadow\fR + .RS 4 +-Ignore errors reading shadow inforation for users in the account management module\. ++Ignore errors reading shadow inforation for users in the account management module\&. + .RE .PP Invalid arguments are logged with - \fBsyslog\fR(3)\. +-\fBsyslog\fR(3)\. -.SH "MODULE SERVICES PROVIDED" ++\fBsyslog\fR(3)\&. +.SH "MODULE TYPES PROVIDED" .PP -All service are supported\. @@ -2199,11 +13890,60 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_unix/pam_unix.8 Linux-PAM-1.0.2/module +\fBauth\fR, +\fBpassword\fR +and -+\fBsession\fR) are provided\. ++\fBsession\fR) are provided\&. .SH "RETURN VALUES" .PP PAM_IGNORE -@@ -182,7 +186,7 @@ + .RS 4 +-Ignore this module\. ++Ignore this module\&. + .RE + .SH "EXAMPLES" + .PP + An example usage for +-\fI/etc/pam\.d/login\fR ++\FC/etc/pam\&.d/login\F[] + would be: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ + # Authenticate the user +-auth required pam_unix\.so ++auth required pam_unix\&.so + # Ensure users account and password are still active +-account required pam_unix\.so ++account required pam_unix\&.so + # Change the users password, but at first check the strength + # with pam_cracklib(8) +-password required pam_cracklib\.so retry=3 minlen=6 difok=3 +-password required pam_unix\.so use_authtok nullok md5 +-session required pam_unix\.so ++password required pam_cracklib\&.so retry=3 minlen=6 difok=3 ++password required pam_unix\&.so use_authtok nullok md5 ++session required pam_unix\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -2212,27 +13952,266 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_unix/pam_unix.8 Linux-PAM-1.0.2/module \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_userdb/pam_userdb.8 Linux-PAM-1.0.2/modules/pam_userdb/pam_userdb.8 ---- Linux-PAM-1.0.2-old/modules/pam_userdb/pam_userdb.8 2008-04-16 11:08:48.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_userdb/pam_userdb.8 2008-10-17 13:03:20.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_unix was written by various people\. ++pam_unix was written by various people\&. +--- Linux-PAM-1.0.2-orig/modules/pam_userdb/pam_userdb.8 2008-04-16 11:08:48.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_userdb/pam_userdb.8 2009-01-20 12:00:28.000000000 +0100 +@@ -1,136 +1,312 @@ .\" Title: pam_userdb - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_USERDB" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_USERDB" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_USERDB" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -73,13 +73,13 @@ + .ad l +-.SH "NAME" +-pam_userdb - PAM module to authenticate against a db database +-.SH "SYNOPSIS" +-.HP 14 +-\fBpam_userdb\.so\fR db=\fI/path/database\fR [debug] [crypt=[crypt|none]] [icase] [dump] [try_first_pass] [use_first_pass] [unknown_ok] [key_only] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_userdb \- PAM module to authenticate against a db database ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_userdb\&.so\fR\ 'u ++\fBpam_userdb\&.so\fR db=\fI/path/database\fR [debug] [crypt=[crypt|none]] [icase] [dump] [try_first_pass] [use_first_pass] [unknown_ok] [key_only] ++.fam + .SH "DESCRIPTION" + .PP +-The pam_userdb module is used to verify a username/password pair against values stored in a Berkeley DB database\. The database is indexed by the username, and the data fields corresponding to the username keys are the passwords\. ++The pam_userdb module is used to verify a username/password pair against values stored in a Berkeley DB database\&. The database is indexed by the username, and the data fields corresponding to the username keys are the passwords\&. + .SH "OPTIONS" + .PP + \fBcrypt=[crypt|none]\fR .RS 4 - The username and password are concatenated together in the database hash as \'username\-password\' with a random value\. if the concatenation of the username and password with a dash in the middle returns any result, the user is valid\. this is useful in cases where the username may not be unique but the username and password pair are\. +-Indicates whether encrypted or plaintext passwords are stored in the database\. If it is ++Indicates whether encrypted or plaintext passwords are stored in the database\&. If it is + \fBcrypt\fR, passwords should be stored in the database in + \fBcrypt\fR(3) +-form\. If ++form\&. If + \fBnone\fR +-is selected, passwords should be stored in the database as plaintext\. ++is selected, passwords should be stored in the database as plaintext\&. + .RE + .PP + \fBdb=\fR\fB\fI/path/database\fR\fR + .RS 4 + Use the +-\fI/path/database\fR +-database for performing lookup\. There is no default; the module will return ++\FC/path/database\F[] ++database for performing lookup\&. There is no default; the module will return + \fBPAM_IGNORE\fR +-if no database is provided\. ++if no database is provided\&. + .RE + .PP + \fBdebug\fR + .RS 4 +-Print debug information\. ++Print debug information\&. + .RE + .PP + \fBdump\fR + .RS 4 +-Dump all the entries in the database to the log\. Don\'t do this by default! ++Dump all the entries in the database to the log\&. Don\'t do this by default! + .RE + .PP + \fBicase\fR + .RS 4 +-Make the password verification to be case insensitive (ie when working with registration numbers and such)\. Only works with plaintext password storage\. ++Make the password verification to be case insensitive (ie when working with registration numbers and such)\&. Only works with plaintext password storage\&. + .RE + .PP + \fBtry_first_pass\fR + .RS 4 +-Use the authentication token previously obtained by another module that did the conversation with the application\. If this token can not be obtained then the module will try to converse\. This option can be used for stacking different modules that need to deal with the authentication tokens\. ++Use the authentication token previously obtained by another module that did the conversation with the application\&. If this token can not be obtained then the module will try to converse\&. This option can be used for stacking different modules that need to deal with the authentication tokens\&. + .RE + .PP + \fBuse_first_pass\fR + .RS 4 +-Use the authentication token previously obtained by another module that did the conversation with the application\. If this token can not be obtained then the module will fail\. This option can be used for stacking different modules that need to deal with the authentication tokens\. ++Use the authentication token previously obtained by another module that did the conversation with the application\&. If this token can not be obtained then the module will fail\&. This option can be used for stacking different modules that need to deal with the authentication tokens\&. + .RE + .PP + \fBunknown_ok\fR + .RS 4 +-Do not return error when checking for a user that is not in the database\. This can be used to stack more than one pam_userdb module that will check a username/password pair in more than a database\. ++Do not return error when checking for a user that is not in the database\&. This can be used to stack more than one pam_userdb module that will check a username/password pair in more than a database\&. + .RE + .PP + \fBkey_only\fR + .RS 4 +-The username and password are concatenated together in the database hash as \'username\-password\' with a random value\. if the concatenation of the username and password with a dash in the middle returns any result, the user is valid\. this is useful in cases where the username may not be unique but the username and password pair are\. ++The username and password are concatenated together in the database hash as \'username\-password\' with a random value\&. if the concatenation of the username and password with a dash in the middle returns any result, the user is valid\&. this is useful in cases where the username may not be unique but the username and password pair are\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -2243,11 +14222,79 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_userdb/pam_userdb.8 Linux-PAM-1.0.2/mo and \fBaccount\fR -are supported\. -+module types are provided\. ++module types are provided\&. .SH "RETURN VALUES" .PP PAM_AUTH_ERR -@@ -129,7 +129,7 @@ + .RS 4 +-Authentication failure\. ++Authentication failure\&. + .RE + .PP + PAM_AUTHTOK_RECOVERY_ERR + .RS 4 +-Authentication information cannot be recovered\. ++Authentication information cannot be recovered\&. + .RE + .PP + PAM_BUF_ERR + .RS 4 +-Memory buffer error\. ++Memory buffer error\&. + .RE + .PP + PAM_CONV_ERR + .RS 4 +-Conversation failure\. ++Conversation failure\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-Error in service module\. ++Error in service module\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-Success\. ++Success\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-User not known to the underlying authentication module\. ++User not known to the underlying authentication module\&. + .RE + .SH "EXAMPLES" + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-auth sufficient pam_userdb\.so icase db=/etc/dbtest\.db ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++auth sufficient pam_userdb\&.so icase db=/etc/dbtest\&.db + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .SH "SEE ALSO" + .PP \fBcrypt\fR(3), \fBpam.conf\fR(5), @@ -2256,29 +14303,207 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_userdb/pam_userdb.8 Linux-PAM-1.0.2/mo \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_warn/pam_warn.8 Linux-PAM-1.0.2/modules/pam_warn/pam_warn.8 ---- Linux-PAM-1.0.2-old/modules/pam_warn/pam_warn.8 2008-04-16 11:08:53.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_warn/pam_warn.8 2008-10-17 13:03:23.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_userdb was written by Cristian Gafton >gafton@redhat\.com<\. ++pam_userdb was written by Cristian Gafton >gafton@redhat\&.com<\&. +--- Linux-PAM-1.0.2-orig/modules/pam_warn/pam_warn.8 2008-04-16 11:08:53.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_warn/pam_warn.8 2009-01-20 12:00:31.000000000 +0100 +@@ -1,69 +1,245 @@ .\" Title: pam_warn - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_WARN" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_WARN" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_WARN" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -23,15 +23,15 @@ + .ad l +-.SH "NAME" +-pam_warn - PAM module which logs all PAM items if called +-.SH "SYNOPSIS" +-.HP 12 +-\fBpam_warn\.so\fR ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_warn \- PAM module which logs all PAM items if called ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_warn\&.so\fR\ 'u ++\fBpam_warn\&.so\fR ++.fam + .SH "DESCRIPTION" + .PP + pam_warn is a PAM module that logs the service, terminal, user, remote user and remote host to +-\fBsyslog\fR(3)\. The items are not probed for, but instead obtained from the standard PAM items\. The module always returns +-\fBPAM_IGNORE\fR, indicating that it does not want to affect the authentication process\. ++\fBsyslog\fR(3)\&. The items are not probed for, but instead obtained from the standard PAM items\&. The module always returns ++\fBPAM_IGNORE\fR, indicating that it does not want to affect the authentication process\&. .SH "OPTIONS" .PP - This module does not recognise any options\. +-This module does not recognise any options\. -.SH "MODULE SERVICES PROVIDED" ++This module does not recognise any options\&. +.SH "MODULE TYPES PROVIDED" .PP -The services @@ -2289,11 +14514,64 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_warn/pam_warn.8 Linux-PAM-1.0.2/module and \fBsession\fR -are supported\. -+module types are provided\. ++module types are provided\&. .SH "RETURN VALUES" .PP PAM_IGNORE -@@ -62,7 +62,7 @@ + .RS 4 +-This module always returns PAM_IGNORE\. ++This module always returns PAM_IGNORE\&. + .RE + .SH "EXAMPLES" + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-#%PAM\-1\.0 ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++#%PAM\-1\&.0 + # + # If we don\'t have config entries for a service, the +-# OTHER entries are used\. To be secure, warn and deny +-# access to everything\. +-other auth required pam_warn\.so +-other auth required pam_deny\.so +-other account required pam_warn\.so +-other account required pam_deny\.so +-other password required pam_warn\.so +-other password required pam_deny\.so +-other session required pam_warn\.so +-other session required pam_deny\.so ++# OTHER entries are used\&. To be secure, warn and deny ++# access to everything\&. ++other auth required pam_warn\&.so ++other auth required pam_deny\&.so ++other account required pam_warn\&.so ++other account required pam_deny\&.so ++other password required pam_warn\&.so ++other password required pam_deny\&.so ++other session required pam_warn\&.so ++other session required pam_deny\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -2302,27 +14580,249 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_warn/pam_warn.8 Linux-PAM-1.0.2/module \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_wheel/pam_wheel.8 Linux-PAM-1.0.2/modules/pam_wheel/pam_wheel.8 ---- Linux-PAM-1.0.2-old/modules/pam_wheel/pam_wheel.8 2008-04-16 11:08:57.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_wheel/pam_wheel.8 2008-10-17 13:03:26.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_warn was written by Andrew G\. Morgan \. ++pam_warn was written by Andrew G\&. Morgan \&. +--- Linux-PAM-1.0.2-orig/modules/pam_wheel/pam_wheel.8 2008-04-16 11:08:57.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_wheel/pam_wheel.8 2009-01-20 12:00:34.000000000 +0100 +@@ -1,127 +1,303 @@ .\" Title: pam_wheel - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_WHEEL" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_WHEEL" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_WHEEL" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -60,13 +60,13 @@ + .ad l +-.SH "NAME" +-pam_wheel - Only permit root access to members of group wheel +-.SH "SYNOPSIS" +-.HP 13 +-\fBpam_wheel\.so\fR [debug] [deny] [group=\fIname\fR] [root_only] [trust] [use_uid] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_wheel \- Only permit root access to members of group wheel ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_wheel\&.so\fR\ 'u ++\fBpam_wheel\&.so\fR [debug] [deny] [group=\fIname\fR] [root_only] [trust] [use_uid] ++.fam + .SH "DESCRIPTION" + .PP + The pam_wheel PAM module is used to enforce the so\-called + \fIwheel\fR +-group\. By default it permits root access to the system if the applicant user is a member of the ++group\&. By default it permits root access to the system if the applicant user is a member of the + \fIwheel\fR +-group\. If no group with this name exist, the module is using the group with the group\-ID +-\fB0\fR\. ++group\&. If no group with this name exist, the module is using the group with the group\-ID ++\fB0\fR\&. + .SH "OPTIONS" + .PP + \fBdebug\fR .RS 4 - The check for wheel membership will be done against the current uid instead of the original one (useful when jumping with su from one account to another for example)\. +-Print debug information\. ++Print debug information\&. + .RE + .PP + \fBdeny\fR + .RS 4 + Reverse the sense of the auth operation: if the user is trying to get UID 0 access and is a member of the wheel group (or the group of the + \fBgroup\fR +-option), deny access\. Conversely, if the user is not in the group, return PAM_IGNORE (unless ++option), deny access\&. Conversely, if the user is not in the group, return PAM_IGNORE (unless + \fBtrust\fR +-was also specified, in which case we return PAM_SUCCESS)\. ++was also specified, in which case we return PAM_SUCCESS)\&. + .RE + .PP + \fBgroup=\fR\fB\fIname\fR\fR + .RS 4 + Instead of checking the wheel or GID 0 groups, use the + \fB\fIname\fR\fR +-group to perform the authentication\. ++group to perform the authentication\&. + .RE + .PP + \fBroot_only\fR + .RS 4 +-The check for wheel membership is done only\. ++The check for wheel membership is done only\&. + .RE + .PP + \fBtrust\fR + .RS 4 +-The pam_wheel module will return PAM_SUCCESS instead of PAM_IGNORE if the user is a member of the wheel group (thus with a little play stacking the modules the wheel members may be able to su to root without being prompted for a passwd)\. ++The pam_wheel module will return PAM_SUCCESS instead of PAM_IGNORE if the user is a member of the wheel group (thus with a little play stacking the modules the wheel members may be able to su to root without being prompted for a passwd)\&. + .RE + .PP + \fBuse_uid\fR + .RS 4 +-The check for wheel membership will be done against the current uid instead of the original one (useful when jumping with su from one account to another for example)\. ++The check for wheel membership will be done against the current uid instead of the original one (useful when jumping with su from one account to another for example)\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -2332,11 +14832,86 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_wheel/pam_wheel.8 Linux-PAM-1.0.2/modu and \fBaccount\fR -services are supported\. -+module types are provided\. ++module types are provided\&. .SH "RETURN VALUES" .PP PAM_AUTH_ERR -@@ -120,7 +120,7 @@ + .RS 4 +-Authentication failure\. ++Authentication failure\&. + .RE + .PP + PAM_BUF_ERR + .RS 4 +-Memory buffer error\. ++Memory buffer error\&. + .RE + .PP + PAM_IGNORE + .RS 4 +-The return value should be ignored by PAM dispatch\. ++The return value should be ignored by PAM dispatch\&. + .RE + .PP + PAM_PERM_DENY + .RS 4 +-Permission denied\. ++Permission denied\&. + .RE + .PP + PAM_SERVICE_ERR + .RS 4 +-Cannot determine the user name\. ++Cannot determine the user name\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-Success\. ++Success\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-User not known\. ++User not known\&. + .RE + .SH "EXAMPLES" + .PP +-The root account gains access by default (rootok), only wheel members can become root (wheel) but Unix authenticate non\-root applicants\. ++The root account gains access by default (rootok), only wheel members can become root (wheel) but Unix authenticate non\-root applicants\&. + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-su auth sufficient pam_rootok\.so +-su auth required pam_wheel\.so +-su auth required pam_unix\.so ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++su auth sufficient pam_rootok\&.so ++su auth required pam_wheel\&.so ++su auth required pam_unix\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "SEE ALSO" .PP \fBpam.conf\fR(5), @@ -2345,27 +14920,286 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_wheel/pam_wheel.8 Linux-PAM-1.0.2/modu \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/modules/pam_xauth/pam_xauth.8 Linux-PAM-1.0.2/modules/pam_xauth/pam_xauth.8 ---- Linux-PAM-1.0.2-old/modules/pam_xauth/pam_xauth.8 2008-04-16 11:09:03.000000000 +0200 -+++ Linux-PAM-1.0.2/modules/pam_xauth/pam_xauth.8 2008-10-17 13:03:30.000000000 +0200 -@@ -1,11 +1,11 @@ +-pam_wheel was written by Cristian Gafton \. ++pam_wheel was written by Cristian Gafton \&. +--- Linux-PAM-1.0.2-orig/modules/pam_xauth/pam_xauth.8 2008-04-16 11:09:03.000000000 +0200 ++++ Linux-PAM-1.0.2/modules/pam_xauth/pam_xauth.8 2009-01-20 12:00:38.000000000 +0100 +@@ -1,154 +1,330 @@ .\" Title: pam_xauth - .\" Author: +-.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.1 -.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 ++.\" Author: [see the "AUTHOR" section] ++.\" Generator: DocBook XSL Stylesheets v1.74.0 ++.\" Date: 01/20/2009 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual ++.\" Language: English .\" -.TH "PAM_XAUTH" "8" "04/16/2008" "Linux-PAM Manual" "Linux\-PAM Manual" -+.TH "PAM_XAUTH" "8" "10/17/2008" "Linux-PAM Manual" "Linux\-PAM Manual" ++.TH "PAM_XAUTH" "8" "01/20/2009" "Linux-PAM Manual" "Linux\-PAM Manual" ++.\" ----------------------------------------------------------------- ++.\" * (re)Define some macros ++.\" ----------------------------------------------------------------- ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" toupper - uppercase a string (locale-aware) ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de toupper ++.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ ++\\$* ++.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH-xref - format a cross-reference to an SH section ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de SH-xref ++.ie n \{\ ++.\} ++.toupper \\$* ++.el \{\ ++\\$* ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SH - level-one heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SH ++.\" put an extra blank line of space above the head in non-TTY output ++.if t \{\ ++.sp 1 ++.\} ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[an-margin]u ++.ti 0 ++.HTML-TAG ".NH \\n[an-level]" ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++\." make the size of the head bigger ++.ps +3 ++.ft B ++.ne (2v + 1u) ++.ie n \{\ ++.\" if n (TTY output), use uppercase ++.toupper \\$* ++.\} ++.el \{\ ++.nr an-break-flag 0 ++.\" if not n (not TTY), use normal case (not uppercase) ++\\$1 ++.in \\n[an-margin]u ++.ti 0 ++.\" if not n (not TTY), put a border/line under subheading ++.sp -.6 ++\l'\n(.lu' ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" SS - level-two heading that works better for non-TTY output ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de1 SS ++.sp \\n[PD]u ++.nr an-level 1 ++.set-an-margin ++.nr an-prevailing-indent \\n[IN] ++.fi ++.in \\n[IN]u ++.ti \\n[SN]u ++.it 1 an-trap ++.nr an-no-space-flag 1 ++.nr an-break-flag 1 ++.ps \\n[PS-SS]u ++\." make the size of the head bigger ++.ps +2 ++.ft B ++.ne (2v + 1u) ++.if \\n[.$] \&\\$* ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BB/BE - put background/screen (filled box) around block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BB ++.if t \{\ ++.sp -.5 ++.br ++.in +2n ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EB ++.if t \{\ ++.if "\\$2"adjust-for-leading-newline" \{\ ++.sp -1 ++.\} ++.br ++.di ++.in ++.ll ++.gcolor ++.nr BW \\n(.lu-\\n(.i ++.nr BH \\n(dn+.5v ++.ne \\n(BHu+.5v ++.ie "\\$2"adjust-for-leading-newline" \{\ ++\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.el \{\ ++\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] ++.\} ++.in 0 ++.sp -.5v ++.nf ++.BX ++.in ++.sp .5v ++.fi ++.\} ++.. ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.\" BM/EM - put colored marker in margin next to block of text ++.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++.de BM ++.if t \{\ ++.br ++.ll -2n ++.gcolor red ++.di BX ++.\} ++.. ++.de EM ++.if t \{\ ++.br ++.di ++.ll ++.gcolor ++.nr BH \\n(dn ++.ne \\n(BHu ++\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] ++.in 0 ++.nf ++.BX ++.in ++.fi ++.\} ++.. ++.\" ----------------------------------------------------------------- ++.\" * set default formatting ++.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) -@@ -82,11 +82,11 @@ + .ad l +-.SH "NAME" +-pam_xauth - PAM module to forward xauth keys between users +-.SH "SYNOPSIS" +-.HP 13 +-\fBpam_xauth\.so\fR [debug] [xauthpath=\fI/path/to/xauth\fR] [systemuser=\fIUID\fR] [targetuser=\fIUID\fR] ++.\" ----------------------------------------------------------------- ++.\" * MAIN CONTENT STARTS HERE * ++.\" ----------------------------------------------------------------- ++.SH "Name" ++pam_xauth \- PAM module to forward xauth keys between users ++.SH "Synopsis" ++.fam C ++.HP \w'\fBpam_xauth\&.so\fR\ 'u ++\fBpam_xauth\&.so\fR [debug] [xauthpath=\fI/path/to/xauth\fR] [systemuser=\fIUID\fR] [targetuser=\fIUID\fR] ++.fam + .SH "DESCRIPTION" + .PP +-The pam_xauth PAM module is designed to forward xauth keys (sometimes referred to as "cookies") between users\. ++The pam_xauth PAM module is designed to forward xauth keys (sometimes referred to as "cookies") between users\&. + .PP + Without pam_xauth, when xauth is enabled and a user uses the + \fBsu\fR(1) +-command to assume another user\'s priviledges, that user is no longer able to access the original user\'s X display because the new user does not have the key needed to access the display\. pam_xauth solves the problem by forwarding the key from the user running su (the source user) to the user whose identity the source user is assuming (the target user) when the session is created, and destroying the key when the session is torn down\. ++command to assume another user\'s priviledges, that user is no longer able to access the original user\'s X display because the new user does not have the key needed to access the display\&. pam_xauth solves the problem by forwarding the key from the user running su (the source user) to the user whose identity the source user is assuming (the target user) when the session is created, and destroying the key when the session is torn down\&. + .PP + This means, for example, that when you run + \fBsu\fR(1) + from an xterm sesssion, you will be able to run X programs without explicitly dealing with the + \fBxauth\fR(1) +-xauth command or ~/\.Xauthority files\. ++xauth command or ~/\&.Xauthority files\&. + .PP +-pam_xauth will only forward keys if xauth can list a key connected to the $DISPLAY environment variable\. ++pam_xauth will only forward keys if xauth can list a key connected to the $DISPLAY environment variable\&. + .PP + Primitive access control is provided by +-\fI~/\.xauth/export\fR ++\FC~/\&.xauth/export\F[] + in the invoking user\'s home directory and +-\fI~/\.xauth/import\fR +-in the target user\'s home directory\. ++\FC~/\&.xauth/import\F[] ++in the target user\'s home directory\&. + .PP + If a user has a +-\fI~/\.xauth/import\fR +-file, the user will only receive cookies from users listed in the file\. If there is no +-\fI~/\.xauth/import\fR +-file, the user will accept cookies from any other user\. ++\FC~/\&.xauth/import\F[] ++file, the user will only receive cookies from users listed in the file\&. If there is no ++\FC~/\&.xauth/import\F[] ++file, the user will accept cookies from any other user\&. + .PP + If a user has a +-\fI\.xauth/export\fR +-file, the user will only forward cookies to users listed in the file\. If there is no +-\fI~/\.xauth/export\fR ++\FC\&.xauth/export\F[] ++file, the user will only forward cookies to users listed in the file\&. If there is no ++\FC~/\&.xauth/export\F[] + file, and the invoking user is not +-\fBroot\fR, the user will forward cookies to any other user\. If there is no +-\fI~/\.xauth/export\fR ++\fBroot\fR, the user will forward cookies to any other user\&. If there is no ++\FC~/\&.xauth/export\F[] + file, and the invoking user is + \fBroot\fR, the user will + \fInot\fR +-forward cookies to other users\. ++forward cookies to other users\&. + .PP + Both the import and export files support wildcards (such as +-\fI*\fR)\. Both the import and export files can be empty, signifying that no users are allowed\. ++\fI*\fR)\&. Both the import and export files can be empty, signifying that no users are allowed\&. + .SH "OPTIONS" + .PP + \fBdebug\fR .RS 4 - Specify a single target UID which is exempt from the systemuser check\. +-Print debug information\. ++Print debug information\&. + .RE + .PP + \fBxauthpath=\fR\fB\fI/path/to/xauth\fR\fR + .RS 4 + Specify the path the xauth program (it is expected in +-\fI/usr/X11R6/bin/xauth\fR, +-\fI/usr/bin/xauth\fR, or +-\fI/usr/bin/X11/xauth\fR +-by default)\. ++\FC/usr/X11R6/bin/xauth\F[], ++\FC/usr/bin/xauth\F[], or ++\FC/usr/bin/X11/xauth\F[] ++by default)\&. + .RE + .PP + \fBsystemuser=\fR\fB\fIUID\fR\fR + .RS 4 +-Specify the highest UID which will be assumed to belong to a "system" user\. pam_xauth will refuse to forward credentials to users with UID less than or equal to this number, except for root and the "targetuser", if specified\. ++Specify the highest UID which will be assumed to belong to a "system" user\&. pam_xauth will refuse to forward credentials to users with UID less than or equal to this number, except for root and the "targetuser", if specified\&. + .RE + .PP + \fBtargetuser=\fR\fB\fIUID\fR\fR + .RS 4 +-Specify a single target UID which is exempt from the systemuser check\. ++Specify a single target UID which is exempt from the systemuser check\&. .RE -.SH "MODULE SERVICES PROVIDED" +.SH "MODULE TYPES PROVIDED" @@ -2373,11 +15207,105 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_xauth/pam_xauth.8 Linux-PAM-1.0.2/modu Only the \fBsession\fR -service is supported\. -+type is provided\. ++type is provided\&. .SH "RETURN VALUES" .PP PAM_BUF_ERR -@@ -156,7 +156,7 @@ + .RS 4 +-Memory buffer error\. ++Memory buffer error\&. + .RE + .PP + PAM_PERM_DENIED + .RS 4 +-Permission denied by import/export file\. ++Permission denied by import/export file\&. + .RE + .PP + PAM_SESSION_ERR + .RS 4 +-Cannot determine user name, UID or access users home directory\. ++Cannot determine user name, UID or access users home directory\&. + .RE + .PP + PAM_SUCCESS + .RS 4 +-Success\. ++Success\&. + .RE + .PP + PAM_USER_UNKNOWN + .RS 4 +-User not known\. ++User not known\&. + .RE + .SH "EXAMPLES" + .PP + Add the following line to +-\fI/etc/pam\.d/su\fR ++\FC/etc/pam\&.d/su\F[] + to forward xauth keys between users when calling su: + .sp ++.if n \{\ + .RS 4 ++.\} ++.fam C ++.ps -1 + .nf +-session optional pam_xauth\.so ++.if t \{\ ++.sp -1 ++.\} ++.BB lightgray adjust-for-leading-newline ++.sp -1 ++ ++session optional pam_xauth\&.so + ++.EB lightgray adjust-for-leading-newline ++.if t \{\ ++.sp 1 ++.\} + .fi ++.fam ++.ps +1 ++.if n \{\ + .RE ++.\} + .sp + .SH "IMPLEMENTATION DETAILS" + .PP + pam_xauth will work + \fIonly\fR + if it is used from a setuid application in which the +-\fBgetuid\fR() call returns the id of the user running the application, and for which PAM can supply the name of the account that the user is attempting to assume\. The typical application of this type is +-\fBsu\fR(1)\. The application must call both ++\fBgetuid\fR() call returns the id of the user running the application, and for which PAM can supply the name of the account that the user is attempting to assume\&. The typical application of this type is ++\fBsu\fR(1)\&. The application must call both + \fBpam_open_session\fR() and +-\fBpam_close_session\fR() with the ruid set to the uid of the calling user and the euid set to root, and must have provided as the PAM_USER item the name of the target user\. ++\fBpam_close_session\fR() with the ruid set to the uid of the calling user and the euid set to root, and must have provided as the PAM_USER item the name of the target user\&. + .PP + pam_xauth calls + \fBxauth\fR(1) +-as the source user to extract the key for $DISPLAY, then calls xauth as the target user to merge the key into the a temporary database and later remove the database\. ++as the source user to extract the key for $DISPLAY, then calls xauth as the target user to merge the key into the a temporary database and later remove the database\&. + .PP +-pam_xauth cannot be told to not remove the keys when the session is closed\. ++pam_xauth cannot be told to not remove the keys when the session is closed\&. + .SH "FILES" + .PP +-\fI~/\.xauth/import\fR ++\FC~/\&.xauth/import\F[] + .RS 4 + XXX + .RE + .PP +-\fI~/\.xauth/export\fR ++\FC~/\&.xauth/export\F[] + .RS 4 + XXX + .RE +@@ -156,8 +332,8 @@ .PP \fBpam.conf\fR(5), @@ -2386,62 +15314,5 @@ diff -urN Linux-PAM-1.0.2-old/modules/pam_xauth/pam_xauth.8 Linux-PAM-1.0.2/modu \fBpam\fR(8) .SH "AUTHOR" .PP -diff -urN Linux-PAM-1.0.2-old/doc/man//pam_getenv.3 Linux-PAM-1.0.2/doc/man//pam_getenv.3 ---- Linux-PAM-1.0.2-old/doc/man//pam_getenv.3 2008-04-16 11:09:52.000000000 +0200 -+++ Linux-PAM-1.0.2/doc/man//pam_getenv.3 2008-10-17 13:03:34.000000000 +0200 -@@ -1,11 +1,11 @@ - .\" Title: pam_getenv - .\" Author: --.\" Generator: DocBook XSL Stylesheets v1.73.1 --.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 - .\" Manual: Linux-PAM Manual - .\" Source: Linux-PAM Manual - .\" --.TH "PAM_GETENV" "3" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" -+.TH "PAM_GETENV" "3" "10/17/2008" "Linux-PAM Manual" "Linux-PAM Manual" - .\" disable hyphenation - .nh - .\" disable justification (adjust text to left margin only) -@@ -27,8 +27,9 @@ - \fBpam_getenv\fR - function searches the PAM environment list as associated with the handle - \fIpamh\fR --for a string that matches the string pointed to by --\fIname\fR\. The return values are of the form: "\fIname=value\fR"\. -+for an item that matches the string pointed to by -+\fIname\fR -+and returns the value of the environment variable\. - .SH "RETURN VALUES" - .PP - The -diff -urN Linux-PAM-1.0.2-old/doc/man//pam_prompt.3 Linux-PAM-1.0.2/doc/man//pam_prompt.3 ---- Linux-PAM-1.0.2-old/doc/man//pam_prompt.3 2008-04-16 11:09:59.000000000 +0200 -+++ Linux-PAM-1.0.2/doc/man//pam_prompt.3 2008-10-17 13:03:35.000000000 +0200 -@@ -1,11 +1,11 @@ - .\" Title: pam_prompt - .\" Author: --.\" Generator: DocBook XSL Stylesheets v1.73.1 --.\" Date: 04/16/2008 -+.\" Generator: DocBook XSL Stylesheets v1.73.2 -+.\" Date: 10/17/2008 - .\" Manual: Linux-PAM Manual - .\" Source: Linux-PAM Manual - .\" --.TH "PAM_PROMPT" "3" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" -+.TH "PAM_PROMPT" "3" "10/17/2008" "Linux-PAM Manual" "Linux-PAM Manual" - .\" disable hyphenation - .nh - .\" disable justification (adjust text to left margin only) -@@ -27,7 +27,9 @@ - .PP - The - \fBpam_prompt\fR --function constructs a message from the specified format string and arguments and passes it to -+function constructs a message from the specified format string and arguments and passes it to the conversation function as set by the service\. Upon successful return, -+\fIresponse\fR -+is set to point to a string returned from the conversation function\. This string is allocated on heap and should be freed\. - .SH "RETURN VALUES" - .PP - PAM_BUF_ERR +-pam_xauth was written by Nalin Dahyabhai , based on original version by Michael K\. Johnson \. ++pam_xauth was written by Nalin Dahyabhai , based on original version by Michael K\&. Johnson \&. diff --git a/libpam-password-requisite.diff b/libpam-password-requisite.diff new file mode 100644 index 0000000..9fc0e8d --- /dev/null +++ b/libpam-password-requisite.diff @@ -0,0 +1,49 @@ +--- libpam/pam_dispatch.c 3 Dec 2008 14:16:33 -0000 1.13 ++++ libpam/pam_dispatch.c 4 Feb 2009 13:48:02 -0000 +@@ -132,11 +132,10 @@ + } + + /* +- * use_cached_chain is how we ensure that the setcred/close_session +- * and chauthtok(2) modules are called in the same order as they did +- * when they were invoked as auth/open_session/chauthtok(1). This +- * feature was added in 0.75 to make the behavior of pam_setcred +- * sane. It was debugged by release 0.76. ++ * use_cached_chain is how we ensure that the setcred and ++ * close_session modules are called in the same order as they did ++ * when they were invoked as auth/open_session. This feature was ++ * added in 0.75 to make the behavior of pam_setcred sane. + */ + if (use_cached_chain != _PAM_PLEASE_FREEZE) { + +@@ -358,9 +357,6 @@ + break; + case PAM_CHAUTHTOK: + h = pamh->handlers.conf.chauthtok; +- if (flags & PAM_UPDATE_AUTHTOK) { +- use_cached_chain = _PAM_MUST_BE_FROZEN; +- } + break; + default: + pam_syslog(pamh, LOG_ERR, "undefined fn choice; %d", choice); +--- libpam/pam_password.c 24 Jul 2006 15:47:40 -0000 1.5 ++++ libpam/pam_password.c 4 Feb 2009 13:48:02 -0000 +@@ -24,6 +24,13 @@ + return PAM_SYSTEM_ERR; + } + ++ /* applications are not allowed to set this flags */ ++ if (flags & (PAM_PRELIM_CHECK | PAM_UPDATE_AUTHTOK)) { ++ syslog(LOG_ERR, _PAM_SYSTEM_LOG_PREFIX ++ "PAM_PRELIM_CHECK or PAM_UPDATE_AUTHTOK set by application"); ++ return PAM_SYSTEM_ERR; ++ } ++ + if (pamh->former.choice == PAM_NOT_STACKED) { + _pam_start_timer(pamh); /* we try to make the time for a failure + independent of the time it takes to +@@ -58,4 +67,3 @@ + + return retval; + } +- diff --git a/pam.changes b/pam.changes index 0596ab9..229b807 100644 --- a/pam.changes +++ b/pam.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Feb 5 17:01:56 CET 2009 - kukuk@suse.de + +- Log failures of setrlimit in pam_limits [bnc#448314] +- Fix using of requisite in password stack [bnc#470337] + +------------------------------------------------------------------- +Tue Jan 20 12:21:08 CET 2009 - kukuk@suse.de + +- Regenerate documentation [bnc#448314] + ------------------------------------------------------------------- Wed Dec 10 12:34:56 CET 2008 - olh@suse.de diff --git a/pam.spec b/pam.spec index 3d3cd9c..e4ab3e3 100644 --- a/pam.spec +++ b/pam.spec @@ -1,7 +1,7 @@ # # spec file for package pam (Version 1.0.2) # -# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -40,7 +40,7 @@ Obsoletes: pam-64bit %endif # Version: 1.0.2 -Release: 15 +Release: 18 Summary: A Security Tool that Provides Authentication for Applications Source: Linux-PAM-%{version}.tar.bz2 Source1: Linux-PAM-%{version}-SUSE-docs.tar.bz2 @@ -69,6 +69,8 @@ Patch13: pam_xauth-XAUTHLOCALHOSTNAME.diff Patch14: pam_pwhistory-type.diff Patch15: pam_time.diff Patch16: pam_limits-doc.diff +Patch17: pam_limits-logging.diff +Patch18: libpam-password-requisite.diff %description PAM (Pluggable Authentication Modules) is a system security tool that @@ -134,6 +136,8 @@ chmod 755 modules/pam_tally2/tst-pam_tally2 %patch14 -p0 %patch15 -p0 %patch16 -p0 +%patch17 -p0 +%patch18 -p0 %build aclocal -I m4 --install --force @@ -342,6 +346,11 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpam_misc.so %changelog +* Thu Feb 05 2009 kukuk@suse.de +- Log failures of setrlimit in pam_limits [bnc#448314] +- Fix using of requisite in password stack [bnc#470337] +* Tue Jan 20 2009 kukuk@suse.de +- Regenerate documentation [bnc#448314] * Wed Dec 10 2008 olh@suse.de - use Obsoletes: -XXbit only for ppc64 to help solver during distupgrade (bnc#437293) diff --git a/pam_limits-logging.diff b/pam_limits-logging.diff new file mode 100644 index 0000000..51e304d --- /dev/null +++ b/pam_limits-logging.diff @@ -0,0 +1,125 @@ +--- modules/pam_limits/pam_limits.c 7 Dec 2007 15:40:02 -0000 1.46 ++++ modules/pam_limits/pam_limits.c 5 Feb 2009 15:48:49 -0000 +@@ -42,7 +42,7 @@ + #include + + #ifdef HAVE_LIBAUDIT +-#include ++#include + #endif + + /* Module defines */ +@@ -141,6 +141,73 @@ + return ctrl; + } + ++static const char * ++i2str (int i) ++{ ++ switch (i) { ++ case RLIMIT_CPU: ++ return "cpu"; ++ break; ++ case RLIMIT_FSIZE: ++ return "fsize"; ++ break; ++ case RLIMIT_DATA: ++ return "data"; ++ break; ++ case RLIMIT_STACK: ++ return "stack"; ++ break; ++ case RLIMIT_CORE: ++ return "core"; ++ break; ++ case RLIMIT_RSS: ++ return "rss"; ++ break; ++ case RLIMIT_NPROC: ++ return "nproc"; ++ break; ++ case RLIMIT_NOFILE: ++ return "nofile"; ++ break; ++ case RLIMIT_MEMLOCK: ++ return "memlock"; ++ break; ++#ifdef RLIMIT_AS ++ case RLIMIT_AS: ++ return "as"; ++ break; ++#endif ++#ifdef RLIMIT_LOCKS ++ case RLIMIT_LOCKS: ++ return "locks"; ++ break; ++#endif ++#ifdef RLIMIT_SIGPENDING ++ case RLIMIT_SIGPENDING: ++ return "sigpending"; ++ break; ++#endif ++#ifdef RLIMIT_MSGQUEUE ++ case RLIMIT_MSGQUEUE: ++ return "msgqueue"; ++ break; ++#endif ++#ifdef RLIMIT_NICE ++ case RLIMIT_NICE: ++ return "nice"; ++ break; ++#endif ++#ifdef RLIMIT_RTPRIO ++ case RLIMIT_RTPRIO: ++ return "rtprio"; ++ break; ++#endif ++ default: ++ return "UNKNOWN"; ++ break; ++ } ++} ++ + + #define LIMITED_OK 0 /* limit setting appeared to work */ + #define LIMIT_ERR 1 /* error setting a limit */ +@@ -416,8 +483,8 @@ + if (int_value < -20) + int_value = -20; + rlimit_value = 20 - int_value; +-#endif + break; ++#endif + } + + if ( (limit_item != LIMIT_LOGIN) +@@ -575,6 +642,8 @@ + int retval = LIMITED_OK; + + for (i=0, status=LIMITED_OK; ilimits[i].supported) { + /* skip it if its not known to the system */ + continue; +@@ -586,7 +655,11 @@ + } + if (pl->limits[i].limit.rlim_cur > pl->limits[i].limit.rlim_max) + pl->limits[i].limit.rlim_cur = pl->limits[i].limit.rlim_max; +- status |= setrlimit(i, &pl->limits[i].limit); ++ res = setrlimit(i, &pl->limits[i].limit); ++ if (res != 0) ++ pam_syslog(pamh, LOG_ERR, "Could not set limit for '%s': %m", ++ i2str(i)); ++ status |= res; + } + + if (status) { +@@ -595,6 +668,7 @@ + + status = setpriority(PRIO_PROCESS, 0, pl->priority); + if (status != 0) { ++ pam_syslog(pamh, LOG_ERR, "Could not set limit for PRIO_PROCESS: %m"); + retval = LIMIT_ERR; + } +