Linux-PAM Guides. As there are many different implementations for how PAM is implemented on Linux, but; this is a good place to start.
More Information#There might be more information for this subject on one of the following:
Add new attachment
Only authorized users are allowed to upload new attachments.