[b4b71892] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY Linux_PAM-download-http "http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-&Linux_PAM-version;.tar.bz2">
|
---|
| 8 | <!ENTITY Linux_PAM-download-ftp "ftp://ftp.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-&Linux_PAM-version;.tar.bz2">
|
---|
[8f9c9862] | 9 | <!ENTITY Linux_PAM-size "364 KB">
|
---|
[ad176f9] | 10 | <!ENTITY Linux_PAM-buildsize "6.1 MB">
|
---|
[b4b71892] | 11 | <!ENTITY Linux_PAM-time "0.07 SBU">
|
---|
| 12 | ]>
|
---|
| 13 |
|
---|
[04a28bc] | 14 | <sect1 id="Linux_PAM" xreflabel="Linux-PAM-&Linux_PAM-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[bae6e15] | 19 | <?dbhtml filename="linux_pam.html"?>
|
---|
[04a28bc] | 20 | <title>Linux-PAM-&Linux_PAM-version;</title>
|
---|
[3c52f859] | 21 |
|
---|
[b4b71892] | 22 | <sect2>
|
---|
| 23 | <title>Introduction to <application>Linux-<acronym>PAM</acronym></application>
|
---|
| 24 | </title>
|
---|
| 25 |
|
---|
| 26 | <para>The <application>Linux-<acronym>PAM</acronym></application> package
|
---|
| 27 | contains Pluggable Authentication Modules. This is useful to enable the local
|
---|
| 28 | system administrator to choose how applications authenticate users.</para>
|
---|
| 29 |
|
---|
| 30 | <sect3><title>Package information</title>
|
---|
| 31 | <itemizedlist spacing='compact'>
|
---|
| 32 | <listitem><para>Download (HTTP): <ulink
|
---|
| 33 | url="&Linux_PAM-download-http;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download (FTP): <ulink
|
---|
| 35 | url="&Linux_PAM-download-ftp;"/></para></listitem>
|
---|
| 36 | <listitem><para>Download size: &Linux_PAM-size;</para></listitem>
|
---|
| 37 | <listitem><para>Estimated Disk space required:
|
---|
| 38 | &Linux_PAM-buildsize;</para></listitem>
|
---|
| 39 | <listitem><para>Estimated build time:
|
---|
| 40 | &Linux_PAM-time;</para></listitem></itemizedlist>
|
---|
| 41 | </sect3>
|
---|
| 42 |
|
---|
| 43 | <sect3><title>Additional download</title>
|
---|
| 44 | <itemizedlist spacing='compact'>
|
---|
[07b157f4] | 45 | <listitem><para>Required Patch: <ulink
|
---|
[8f9c9862] | 46 | url="&patch-root;/Linux-PAM-&Linux_PAM-version;-linkage-1.patch"/></para>
|
---|
[ad176f9] | 47 | </listitem></itemizedlist>
|
---|
[b4b71892] | 48 | </sect3>
|
---|
| 49 |
|
---|
[ad176f9] | 50 | <sect3><title><application>Linux-<acronym>PAM</acronym></application>
|
---|
| 51 | dependencies</title>
|
---|
[b4b71892] | 52 | <sect4><title>Optional</title>
|
---|
[8abd5653] | 53 | <para><xref linkend="cracklib"/> and <ulink
|
---|
| 54 | url="http://sourceforge.net/projects/sgmltools-lite/">sgmltools-lite</ulink>
|
---|
| 55 | </para></sect4>
|
---|
[b4b71892] | 56 | </sect3>
|
---|
| 57 |
|
---|
| 58 | </sect2>
|
---|
| 59 |
|
---|
| 60 | <sect2>
|
---|
| 61 | <title>Installation of <application>Linux-<acronym>PAM</acronym></application>
|
---|
| 62 | </title>
|
---|
| 63 |
|
---|
| 64 | <para>Install <application>Linux-<acronym>PAM</acronym></application> by
|
---|
| 65 | running the following commands:</para>
|
---|
| 66 |
|
---|
[8f9c9862] | 67 | <screen><userinput><command>patch -Np1 -i ../Linux-PAM-&Linux_PAM-version;-linkage-1.patch &&
|
---|
[b4b71892] | 68 | autoconf &&
|
---|
| 69 | ./configure --enable-static-libpam --with-mailspool=/var/mail \
|
---|
| 70 | --enable-read-both-confs --sysconfdir=/etc &&
|
---|
| 71 | make &&
|
---|
| 72 | make install &&
|
---|
| 73 | mv /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a /usr/lib &&
|
---|
| 74 | ln -sf ../../lib/libpam.so.&Linux_PAM-version; /usr/lib/libpam.so &&
|
---|
| 75 | ln -sf ../../lib/libpam_misc.so.&Linux_PAM-version; /usr/lib/libpam_misc.so &&
|
---|
| 76 | ln -sf ../../lib/libpamc.so.&Linux_PAM-version; /usr/lib/libpamc.so</command></userinput></screen>
|
---|
| 77 |
|
---|
| 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2>
|
---|
| 81 | <title>Command explanations</title>
|
---|
| 82 |
|
---|
[d140e26] | 83 | <para><command>autoconf</command>: This is necessary because the patch
|
---|
[2197589] | 84 | changes where <acronym>PAM</acronym> looks for the
|
---|
| 85 | <application>cracklib</application> libraries, requiring regeneration of the
|
---|
| 86 | configure script.</para>
|
---|
[b4b71892] | 87 |
|
---|
| 88 | <para><option>--enable-static-libpam</option>: This switch builds
|
---|
| 89 | static <acronym>PAM</acronym> libraries as well as the dynamic libraries.</para>
|
---|
| 90 |
|
---|
| 91 | <para><parameter>--with-mailspool=/var/mail</parameter>: This switch makes
|
---|
| 92 | the mailspool directory <acronym>FHS</acronym> compliant.</para>
|
---|
| 93 |
|
---|
| 94 | <para><option>--enable-read-both-confs</option>: This switch lets the local
|
---|
| 95 | administrator choose which configuration file setup to use.</para>
|
---|
| 96 |
|
---|
| 97 | <para><command>mv /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a
|
---|
| 98 | /usr/lib</command>: This command moves the static libraries to
|
---|
[d140e26] | 99 | <filename>/usr/lib</filename> to comply with <acronym>FHS</acronym>
|
---|
| 100 | guidelines.</para>
|
---|
[b4b71892] | 101 |
|
---|
| 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | <sect2>
|
---|
| 105 | <title>Configuring <application>Linux-<acronym>PAM</acronym></application>
|
---|
| 106 | </title>
|
---|
| 107 |
|
---|
| 108 | <sect3><title>Config files</title>
|
---|
[2197589] | 109 | <para><filename>/etc/pam.d/*</filename> or <filename>/etc/pam.conf</filename>
|
---|
[b4b71892] | 110 | </para></sect3>
|
---|
| 111 |
|
---|
| 112 | <sect3><title>Configuration Information</title>
|
---|
| 113 |
|
---|
[2197589] | 114 | <para>Configuration information is placed in
|
---|
| 115 | <filename class='directory'>/etc/pam.d/</filename> or
|
---|
[b4b71892] | 116 | <filename>/etc/pam.conf</filename> depending on user preference. Below are
|
---|
| 117 | example files of each type:</para>
|
---|
| 118 |
|
---|
| 119 | <screen># Begin /etc/pam.d/other
|
---|
| 120 |
|
---|
| 121 | auth required pam_unix.so nullok
|
---|
| 122 | account required pam_unix.so
|
---|
| 123 | session required pam_unix.so
|
---|
| 124 | password required pam_unix.so nullok
|
---|
| 125 |
|
---|
| 126 | # End /etc/pam.d/other
|
---|
| 127 |
|
---|
| 128 | # Begin /etc/pam.conf
|
---|
| 129 |
|
---|
| 130 | other auth required pam_unix.so nullok
|
---|
| 131 | other account required pam_unix.so
|
---|
| 132 | other session required pam_unix.so
|
---|
| 133 | other password required pam_unix.so nullok
|
---|
| 134 |
|
---|
| 135 | # End /etc/pam.conf</screen>
|
---|
| 136 |
|
---|
| 137 | <para>The <application><acronym>PAM</acronym></application> man page
|
---|
| 138 | (<command>man pam</command>) provides a good starting point for descriptions
|
---|
| 139 | of fields and allowable entries. The
|
---|
| 140 | <ulink url="http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam.html">
|
---|
| 141 | Linux-PAM guide for system administrators</ulink>
|
---|
| 142 | is recommended for further reading.</para>
|
---|
| 143 |
|
---|
[14d6b3e0] | 144 | <para>Refer to
|
---|
| 145 | <ulink url="http://www.kernel.org/pub/linux/libs/pam/modules.html"/>
|
---|
[b4b71892] | 146 | for a list of various modules available.</para>
|
---|
| 147 |
|
---|
| 148 | </sect3>
|
---|
| 149 |
|
---|
| 150 | </sect2>
|
---|
| 151 |
|
---|
| 152 | <sect2>
|
---|
| 153 | <title>Contents</title>
|
---|
| 154 |
|
---|
| 155 | <para>The <application>Linux-<acronym>PAM</acronym></application> package
|
---|
[ad176f9] | 156 | contains <command>unix_chkpwd</command>,
|
---|
[2197589] | 157 | <filename class="libraryfile">libpam</filename> libraries and
|
---|
| 158 | <acronym>PAM</acronym> modules.</para>
|
---|
[b4b71892] | 159 |
|
---|
| 160 | </sect2>
|
---|
| 161 |
|
---|
| 162 | <sect2><title>Description</title>
|
---|
| 163 |
|
---|
| 164 | <sect3><title>unix-chkpwd</title>
|
---|
[ad176f9] | 165 | <para><command>unix_chkpwd</command> checks user passwords that are stored
|
---|
[d140e26] | 166 | in read protected databases.</para></sect3>
|
---|
[b4b71892] | 167 |
|
---|
| 168 | <sect3><title>libpam libraries</title>
|
---|
[14d6b3e0] | 169 | <para><filename class="libraryfile">libpam</filename> libraries provide the
|
---|
[2197589] | 170 | interfaces between applications and the <acronym>PAM</acronym> modules.</para>
|
---|
| 171 | </sect3>
|
---|
| 172 |
|
---|
| 173 | <sect3><title><acronym>PAM</acronym> modules</title>
|
---|
| 174 | <para><acronym>PAM</acronym> modules are the Pluggable Authentication Modules
|
---|
| 175 | installed in <filename class='directory'>/lib/security/</filename>.</para>
|
---|
| 176 | </sect3>
|
---|
[b4b71892] | 177 |
|
---|
| 178 | </sect2>
|
---|
| 179 |
|
---|
[3c52f859] | 180 | </sect1>
|
---|
| 181 |
|
---|