From 6b49cfcfe626ccbd06f4944dc11427735524ba9b Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Wed, 15 Feb 2023 14:51:35 +0100 Subject: manual pages: enhance pam.d documentation Make /usr/lib/pam.d and /pam.d more visible in the standard manual pages, so that people don't assume there is only /etc/pam.d * doc/man/pam.8.xml: Don't always speak about /etc/pam.d only * doc/man/pam.conf-desc.xml: Don't always speak about /etc/pam.d only * doc/man/pam.conf-dir.xml: Explain search path for pam config files * doc/man/pam.conf.5.xml: Add filelist with all pam.d directories --- doc/man/pam.8.xml | 16 ++++++++-------- doc/man/pam.conf-desc.xml | 11 ++++++----- doc/man/pam.conf-dir.xml | 20 +++++++++++++++----- doc/man/pam.conf.5.xml | 45 ++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 73 insertions(+), 19 deletions(-) (limited to 'doc') diff --git a/doc/man/pam.8.xml b/doc/man/pam.8.xml index 20cd19d9..7f3b051c 100644 --- a/doc/man/pam.8.xml +++ b/doc/man/pam.8.xml @@ -41,9 +41,9 @@ service-providing applications will authenticate users. This dynamic configuration is set by the contents of the single Linux-PAM configuration file - /etc/pam.conf. Alternatively, the configuration - can be set by individual configuration files located in the - /etc/pam.d/ directory. The presence of this + /etc/pam.conf. Alternatively and preferably, + the configuration can be set by individual configuration files + located in a pam.d directory. The presence of this directory will cause Linux-PAM to ignore /etc/pam.conf. @@ -159,10 +159,10 @@ closing hook for modules to affect the services available to a user. %vendordir%/pam.d - the Linux-PAM vendor configuration - directory. Files in /etc/pam.d and - /usr/lib/pam.d override files with the same - name in this directory. + additional Linux-PAM vendor + configuration directory. Files in /etc/pam.d + and /usr/lib/pam.d override files with the + same name in this directory. @@ -209,4 +209,4 @@ closing hook for modules to affect the services available to a user. - \ No newline at end of file + diff --git a/doc/man/pam.conf-desc.xml b/doc/man/pam.conf-desc.xml index 5dca89fe..60c2d71d 100644 --- a/doc/man/pam.conf-desc.xml +++ b/doc/man/pam.conf-desc.xml @@ -4,10 +4,11 @@ is started, it activates its attachment to the PAM-API. This activation performs a number of tasks, the most important being the reading of the configuration file(s): /etc/pam.conf. - Alternatively, this may be the contents of the - /etc/pam.d/ directory. The presence of this - directory will cause Linux-PAM to ignore - /etc/pam.conf. + Alternatively and preferably, the configuration can be set by individual + configuration files located in a pam.d directory. + The presence of this directory will cause + Linux-PAM to + ignore /etc/pam.conf. These files list the PAMs that will do the @@ -15,4 +16,4 @@ behavior of the PAM-API in the event that individual PAMs fail. - \ No newline at end of file + diff --git a/doc/man/pam.conf-dir.xml b/doc/man/pam.conf-dir.xml index 8272337b..57b2991c 100644 --- a/doc/man/pam.conf-dir.xml +++ b/doc/man/pam.conf-dir.xml @@ -1,15 +1,25 @@
More flexible than the single configuration file is it to - configure libpam via the contents of the - /etc/pam.d/ directory. In this case the - directory is filled with files each of which has a filename + configure libpam via the contents of + pam.d directories. In this case the + directories are filled with files each of which has a filename equal to a service-name (in lower-case): it is the personal configuration file for the named service. - The syntax of each file in /etc/pam.d/ is similar to that of the + Vendor-supplied PAM configuration files might be installed in + the system directory /usr/lib/pam.d/ or + a configurable vendor specific directory instead + of the machine configuration directory /etc/pam.d/. + If no machine configuration file is found, the vendor-supplied file + is used. All files in /etc/pam.d/ override + files with the same name in other directories. + + + + The syntax of each file in pam.d is similar to that of the /etc/pam.conf file and is made up of lines of the following form: @@ -24,4 +34,4 @@ type control module-path module-arguments For example, /etc/pam.d/login contains the configuration for the login service. -
\ No newline at end of file + diff --git a/doc/man/pam.conf.5.xml b/doc/man/pam.conf.5.xml index 62a2b410..997776bb 100644 --- a/doc/man/pam.conf.5.xml +++ b/doc/man/pam.conf.5.xml @@ -24,6 +24,49 @@ + + FILES + + + /etc/pam.conf + + the configuration file + + + + /etc/pam.d + + + the Linux-PAM configuration + directory. Generally, if this directory is present, the + /etc/pam.conf file is ignored. + + + + + /usr/lib/pam.d + + + the Linux-PAM vendor configuration + directory. Files in /etc/pam.d override + files with the same name in this directory. + + + + + %vendordir%/pam.d + + + additional Linux-PAM vendor + configuration directory. Files in /etc/pam.d + and /usr/lib/pam.d override files with the + same name in this directory. + + + + + + SEE ALSO @@ -39,4 +82,4 @@ - \ No newline at end of file + -- cgit v1.2.3