19.4 Configuring PAM Using pam-config
The pam-config tool helps you configure the global PAM configuration
files under /etc/pam.d/common-*-pc as well as
several selected application configurations. For a list of supported
modules, use the command pam-config --list-modules.
Use the pam-config command to maintain your PAM
configuration files. Add new modules to your PAM configurations, delete
other modules or modify options to these modules. When changing global
PAM configuration files, no manual tweaking of the PAM setup for
individual applications is required.
A simple real-world use case for pam-config would involve the following:
When you create your PAM configuration files from scratch using the
pam-config --create command, it creates symbolic links
from the common-* to the
common-*-pc files. pam-config only modifies the
common-*-pc configuration files. Removing these
symbolic links effectively disable pam-config, because pam-config only
operates on the common-*-pc files and these files
are not put into effect without the symbolic links.
For more information on the pam-config command and the
options available, refer to the manual page of
pam-config, pam-config(8).