Book Image

Pluggable Authentication Modules: The Definitive Guide to PAM for Linux SysAdmins and C Developers

By : Kenneth Geisshirt
Book Image

Pluggable Authentication Modules: The Definitive Guide to PAM for Linux SysAdmins and C Developers

By: Kenneth Geisshirt

Overview of this book

<p>PAM-aware applications reduce the complexity of authentication. With PAM you can use the same user database for every login process. PAM also supports different authentication processes as required. Moreover, PAM is a well-defined API, and PAM-aware applications will not break if you change the underlying authentication configuration.<br /><br />The PAM framework is widely used by most Linux distributions for authentication purposes. Originating from Solaris 2.6 ten years ago, PAM is used today by most proprietary and free UNIX operating systems including GNU/Linux, FreeBSD, and Solaris, following both the design concept and the practical details. PAM is thus a unifying technology for authentication mechanisms in UNIX. <br /><br />PAM is a modular and flexible authentication management layer that sits between Linux applications and the native underlying authentication system. PAM can be implemented with various applications without having to recompile the applications to specifically support PAM.</p>
Table of Contents (13 chapters)

Where to Test?


My very first advice is that you should never try out new PAM configurations on a production system; use either a test computer or a virtual computer (VMware, Xen, etc.). The reason is obvious — if you make any mistakes in the PAM configuration, you might leave a production server in a state where the system administrator cannot log in.

Using VMware or any virtualization system is of great advantage. With VMware Server, a free product, it is possible to take snapshots of the entire computer, which can be used to recover from fatal mistakes. A fatal mistake in this context is that you cannot log in. If you are using a physical computer to test your PAM configuration, you might have to boot it using a live or rescue CD to correct a fatal mistake. And your test computer can be located in a server room far from your office, so correcting a mistake can take much longer than expected.

Of course, the major disadvantage of using VMware is that the host computer has to be able to run...