System Administration Guide

How to Add a PAM Module

  1. Become superuser.

  2. Determine which control flags and other options should be used.

    Refer to "PAM Modules" information on the module.

  3. Copy the new module to /usr/lib/security.

  4. Set the permissions so that the module file is owned by root and permissions are 555.

  5. Edit the PAM configuration file, /etc/pam.conf, and add this module to the appropriate services.

Verification

It is very important to do some testing before the system is rebooted in case the configuration file is misconfigured. Run rlogin, su, and telnet before rebooting the system. If the service is a daemon spawned only once when the system is booted, it may be necessary to reboot the system before you can verify that the module has been added.