[b4b71892] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[b4b71892] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[6603f8b] | 7 | <!ENTITY linux-pam-download-http "http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-&linux-pam-version;.tar.bz2">
|
---|
[ccb8b2d] | 8 | <!ENTITY linux-pam-download-ftp "ftp://ftp.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-&linux-pam-version;.tar.bz2">
|
---|
[1ad238d8] | 9 | <!ENTITY linux-pam-md5sum "267ea71253615342261f9fc486d06647">
|
---|
| 10 | <!ENTITY linux-pam-size "783 KB">
|
---|
| 11 | <!ENTITY linux-pam-buildsize "19.8 MB">
|
---|
[ccb8b2d] | 12 | <!ENTITY linux-pam-time "0.5 SBU">
|
---|
| 13 | <!ENTITY linux-pam-docs-download "http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-&linux-pam-version;-docs.tar.bz2">
|
---|
[b4b71892] | 14 | ]>
|
---|
| 15 |
|
---|
[6603f8b] | 16 | <sect1 id="linux-pam" xreflabel="Linux-PAM-&linux-pam-version;">
|
---|
| 17 | <?dbhtml filename="linux-pam.html"?>
|
---|
[c7eb655] | 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
[e19ad480] | 22 | <keywordset>
|
---|
| 23 | <keyword role="package">Linux-PAM-&linux-pam-version;.tar</keyword>
|
---|
[9084c2eb] | 24 | <keyword role="ftpdir">Linux-PAM</keyword>
|
---|
[e19ad480] | 25 | </keywordset>
|
---|
[c7eb655] | 26 | </sect1info>
|
---|
| 27 |
|
---|
[6603f8b] | 28 | <title>Linux-PAM-&linux-pam-version;</title>
|
---|
[c7eb655] | 29 |
|
---|
[6603f8b] | 30 | <indexterm zone="linux-pam">
|
---|
| 31 | <primary sortas="a-Linux-PAM">Linux-PAM</primary>
|
---|
[c7eb655] | 32 | </indexterm>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="package">
|
---|
| 35 | <title>Introduction to Linux-PAM</title>
|
---|
| 36 |
|
---|
| 37 | <para>The <application>Linux-PAM</application> package contains
|
---|
| 38 | Pluggable Authentication Modules. This is useful to enable the
|
---|
| 39 | local system administrator to choose how applications authenticate
|
---|
| 40 | users.</para>
|
---|
| 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
[6603f8b] | 45 | <para>Download (HTTP): <ulink url="&linux-pam-download-http;"/></para>
|
---|
[c7eb655] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[6603f8b] | 48 | <para>Download (FTP): <ulink url="&linux-pam-download-ftp;"/></para>
|
---|
[c7eb655] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[6603f8b] | 51 | <para>Download MD5 sum: &linux-pam-md5sum;</para>
|
---|
[c7eb655] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[6603f8b] | 54 | <para>Download size: &linux-pam-size;</para>
|
---|
[c7eb655] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[6603f8b] | 57 | <para>Estimated disk space required: &linux-pam-buildsize;</para>
|
---|
[c7eb655] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[6603f8b] | 60 | <para>Estimated build time: &linux-pam-time;</para>
|
---|
[c7eb655] | 61 | </listitem>
|
---|
| 62 | </itemizedlist>
|
---|
| 63 |
|
---|
| 64 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 65 | <itemizedlist spacing='compact'>
|
---|
| 66 | <listitem>
|
---|
[ccb8b2d] | 67 | <para>Optional documentation:
|
---|
| 68 | <ulink url="&linux-pam-docs-download;"/></para>
|
---|
[6576f3e] | 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
[c7eb655] | 72 | <bridgehead renderas="sect3">Linux-PAM Dependencies</bridgehead>
|
---|
| 73 |
|
---|
[85feb93] | 74 | <!-- Moved to optional after discussion on BLFS-Dev
|
---|
| 75 |
|
---|
[c7eb655] | 76 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[e19ad480] | 77 | <para role="recommended"><xref linkend="cracklib"/></para>
|
---|
[c7eb655] | 78 |
|
---|
[85feb93] | 79 | -->
|
---|
| 80 |
|
---|
[c7eb655] | 81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[85feb93] | 82 | <para role="optional"><xref linkend="cracklib"/>,
|
---|
[3f87e4a] | 83 | <!-- <xref linkend="db"/> (for the pam_userdb module), -->
|
---|
[85feb93] | 84 | <ulink url="http://www.prelude-ids.org/">Prelude</ulink>, and
|
---|
[3f87e4a] | 85 | <ulink url="http://sourceforge.net/projects/sgmltools-lite/">sgmltools-lite</ulink></para>
|
---|
[c7eb655] | 86 |
|
---|
[3597eb6] | 87 | <para condition="html" role="usernotes">User Notes:
|
---|
| 88 | <ulink url="&blfs-wiki;/linux-pam"/></para>
|
---|
| 89 |
|
---|
[c7eb655] | 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2 role="installation">
|
---|
| 93 | <title>Installation of Linux-PAM</title>
|
---|
| 94 |
|
---|
[ccb8b2d] | 95 | <para>If you downloaded the documentation, unpack the tarball into the
|
---|
| 96 | <filename class='directory'>doc</filename> directory of the source
|
---|
| 97 | tree:</para>
|
---|
| 98 |
|
---|
| 99 | <screen><userinput>tar -xf ../Linux-PAM-&linux-pam-version;-docs.tar.bz2 -C doc</userinput></screen>
|
---|
| 100 |
|
---|
[c7eb655] | 101 | <para>Install <application>Linux-PAM</application> by
|
---|
| 102 | running the following commands:</para>
|
---|
| 103 |
|
---|
[ccb8b2d] | 104 | <screen><userinput>./configure --libdir=/usr/lib \
|
---|
| 105 | --sbindir=/lib/security \
|
---|
| 106 | --enable-securedir=/lib/security \
|
---|
| 107 | --enable-docdir=/usr/share/doc/Linux-PAM-&linux-pam-version; \
|
---|
| 108 | --enable-read-both-confs &&
|
---|
[c7eb655] | 109 | make</userinput></screen>
|
---|
[17fb537e] | 110 |
|
---|
[1ad238d8] | 111 | <para>The test suite will not provide meaningful results until the package
|
---|
| 112 | has been installed and configured. If, after installing the package and
|
---|
| 113 | creating a minimum configuration as shown below in the 'other' example,
|
---|
| 114 | you wish to run the tests, issue <command>make check</command>.</para>
|
---|
| 115 |
|
---|
| 116 | <tip>
|
---|
| 117 | <para>Don't delete the <application>Linux-PAM</application> source tree
|
---|
| 118 | until after you reinstall the <application>Shadow</application> package.
|
---|
| 119 | The reinstallation of the Shadow package includes much more stringent
|
---|
| 120 | security for the PAM configuration, and you can run the
|
---|
| 121 | <application>Linux-PAM</application> test suite after completing the
|
---|
| 122 | <application>Shadow</application> instructions to test the new setup. All
|
---|
| 123 | the tests should pass.</para>
|
---|
| 124 | </tip>
|
---|
[f691f2b] | 125 |
|
---|
[c7eb655] | 126 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[17fb537e] | 127 |
|
---|
[c7eb655] | 128 | <screen role="root"><userinput>make install &&
|
---|
[ccb8b2d] | 129 | mv -v /lib/security/pam_tally /sbin &&
|
---|
| 130 | mv -v /usr/lib/libpam*.so.0* /lib &&
|
---|
[1ad238d8] | 131 | ln -v -sf ../../lib/libpam.so.0.81.3 /usr/lib/libpam.so &&
|
---|
[ccb8b2d] | 132 | ln -v -sf ../../lib/libpamc.so.0.81.0 /usr/lib/libpamc.so &&
|
---|
[85feb93] | 133 | ln -v -sf ../../lib/libpam_misc.so.0.81.2 /usr/lib/libpam_misc.so</userinput></screen>
|
---|
[b4b71892] | 134 |
|
---|
[ccb8b2d] | 135 | <para>If you downloaded the documentation, install it using the following
|
---|
| 136 | command:</para>
|
---|
[f691f2b] | 137 |
|
---|
[ccb8b2d] | 138 | <screen role="root"><userinput>for DOCTYPE in html pdf ps txts
|
---|
[f691f2b] | 139 | do
|
---|
[6603f8b] | 140 | cp -v -R doc/$DOCTYPE /usr/share/doc/Linux-PAM-&linux-pam-version;
|
---|
[c7eb655] | 141 | done</userinput></screen>
|
---|
[f691f2b] | 142 |
|
---|
[c7eb655] | 143 | </sect2>
|
---|
[b4b71892] | 144 |
|
---|
[c7eb655] | 145 | <sect2 role="commands">
|
---|
| 146 | <title>Command Explanations</title>
|
---|
[b4b71892] | 147 |
|
---|
[ccb8b2d] | 148 | <para><parameter>--libdir=/usr/lib</parameter>: This parameter results in
|
---|
| 149 | the libraries being installed in
|
---|
| 150 | <filename class='directory'>/usr/lib</filename>.</para>
|
---|
[b4b71892] | 151 |
|
---|
[ccb8b2d] | 152 | <para><parameter>--sbindir=/lib/security</parameter>: This parameter
|
---|
| 153 | results in two executables, one which is not intended to be run from the
|
---|
| 154 | command line, being installed in the same directory as the PAM modules.
|
---|
| 155 | One of the executables is later moved to the
|
---|
| 156 | <filename class='directory'>/sbin</filename> directory.</para>
|
---|
[b4b71892] | 157 |
|
---|
[ccb8b2d] | 158 | <para><parameter>--enable-securedir=/lib/security</parameter>: This
|
---|
| 159 | parameter results in the PAM modules being installed in
|
---|
| 160 | <filename class='directory'>/lib/security</filename>.</para>
|
---|
[b4b71892] | 161 |
|
---|
[ccb8b2d] | 162 | <para><parameter>--enable-docdir=...</parameter>: This parameter results in
|
---|
| 163 | the documentation being installed in a versioned directory name.</para>
|
---|
[b4b71892] | 164 |
|
---|
[ccb8b2d] | 165 | <para><parameter>--enable-read-both-confs</parameter>: This parameter
|
---|
| 166 | allows the local administrator to choose which configuration file setup to
|
---|
| 167 | use.</para>
|
---|
[b4b71892] | 168 |
|
---|
[ccb8b2d] | 169 | <para><command>mv -v /lib/security/pam_tally /sbin</command>: The
|
---|
| 170 | <command>pam_tally</command> program is designed to be run by the system
|
---|
| 171 | administrator, possibly in single-user mode, so it is moved to the
|
---|
| 172 | appropriate directory.</para>
|
---|
| 173 |
|
---|
| 174 | <para><command>mv -v /usr/lib/libpam*.so.0* /lib</command>: This command
|
---|
| 175 | moves the dynamic libraries to <filename class='directory'>/lib</filename>
|
---|
| 176 | as they may be required in single user mode.</para>
|
---|
| 177 |
|
---|
| 178 | <para><command>ln -v -sf ...</command>: These commands recreate the
|
---|
| 179 | <filename class='symlink'>.so</filename> symlinks as the libraries they
|
---|
| 180 | pointed to were moved to <filename class='directory'>/lib</filename>.</para>
|
---|
[aadd9ef] | 181 |
|
---|
[c7eb655] | 182 | </sect2>
|
---|
[b4b71892] | 183 |
|
---|
[c7eb655] | 184 | <sect2 role="configuration">
|
---|
| 185 | <title>Configuring Linux-PAM</title>
|
---|
[b4b71892] | 186 |
|
---|
[c7eb655] | 187 | <sect3 id="pam-config">
|
---|
| 188 | <title>Config Files</title>
|
---|
[b4b71892] | 189 |
|
---|
[c7eb655] | 190 | <para><filename>/etc/security/*</filename> and
|
---|
| 191 | <filename>/etc/pam.d/*</filename> or
|
---|
| 192 | <filename>/etc/pam.conf</filename></para>
|
---|
[b4b71892] | 193 |
|
---|
[6603f8b] | 194 | <indexterm zone="linux-pam pam-config">
|
---|
[c7eb655] | 195 | <primary sortas="e-etc-security">/etc/security/*</primary>
|
---|
| 196 | </indexterm>
|
---|
[b4b71892] | 197 |
|
---|
[6603f8b] | 198 | <indexterm zone="linux-pam pam-config">
|
---|
[c7eb655] | 199 | <primary sortas="e-etc-pam.d">/etc/pam.d/*</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 |
|
---|
[6603f8b] | 202 | <indexterm zone="linux-pam pam-config">
|
---|
[c7eb655] | 203 | <primary sortas="e-etc-pam.conf">/etc/pam.conf</primary>
|
---|
| 204 | </indexterm>
|
---|
| 205 |
|
---|
| 206 | </sect3>
|
---|
| 207 |
|
---|
| 208 | <sect3>
|
---|
| 209 | <title>Configuration Information</title>
|
---|
| 210 |
|
---|
| 211 | <para>Configuration information is placed in
|
---|
| 212 | <filename class='directory'>/etc/pam.d/</filename> or
|
---|
[ccb8b2d] | 213 | <filename>/etc/pam.conf</filename> depending on system administrator
|
---|
| 214 | preference. Below are example files of each type:</para>
|
---|
[c7eb655] | 215 |
|
---|
| 216 | <screen><literal># Begin /etc/pam.d/other
|
---|
[b4b71892] | 217 |
|
---|
| 218 | auth required pam_unix.so nullok
|
---|
| 219 | account required pam_unix.so
|
---|
| 220 | session required pam_unix.so
|
---|
| 221 | password required pam_unix.so nullok
|
---|
| 222 |
|
---|
| 223 | # End /etc/pam.d/other
|
---|
| 224 |
|
---|
| 225 | # Begin /etc/pam.conf
|
---|
| 226 |
|
---|
| 227 | other auth required pam_unix.so nullok
|
---|
| 228 | other account required pam_unix.so
|
---|
| 229 | other session required pam_unix.so
|
---|
| 230 | other password required pam_unix.so nullok
|
---|
| 231 |
|
---|
[c7eb655] | 232 | # End /etc/pam.conf</literal></screen>
|
---|
| 233 |
|
---|
| 234 | <para>The <application>PAM</application> man page
|
---|
| 235 | (<command>man pam</command>) provides a good starting point for
|
---|
| 236 | descriptions of fields and allowable entries. The <ulink
|
---|
| 237 | url="http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam.html">
|
---|
[ccb8b2d] | 238 | Linux-PAM System Administrators' Guide</ulink>
|
---|
| 239 | is recommended for additional information.</para>
|
---|
[c7eb655] | 240 |
|
---|
| 241 | <para>Refer to <ulink
|
---|
| 242 | url="http://www.kernel.org/pub/linux/libs/pam/modules.html"/>
|
---|
| 243 | for a list of various modules available.</para>
|
---|
| 244 |
|
---|
[ccb8b2d] | 245 | <important>
|
---|
[c7eb655] | 246 | <para>You should now reinstall the <xref linkend="shadow"/>
|
---|
| 247 | package.</para>
|
---|
[ccb8b2d] | 248 | </important>
|
---|
[c7eb655] | 249 |
|
---|
| 250 | </sect3>
|
---|
| 251 |
|
---|
| 252 | </sect2>
|
---|
| 253 |
|
---|
| 254 | <sect2 role="content">
|
---|
| 255 | <title>Contents</title>
|
---|
| 256 |
|
---|
| 257 | <segmentedlist>
|
---|
[ccb8b2d] | 258 | <segtitle>Installed Program</segtitle>
|
---|
[c7eb655] | 259 | <segtitle>Installed Libraries</segtitle>
|
---|
| 260 | <segtitle>Installed Directories</segtitle>
|
---|
| 261 |
|
---|
| 262 | <seglistitem>
|
---|
[ccb8b2d] | 263 | <seg>pam_tally</seg>
|
---|
[3597eb6] | 264 | <seg>libpam.{so,a}, libpamc.{so,a}, and libpam_misc.{so,a}</seg>
|
---|
[ccb8b2d] | 265 | <seg>/etc/pam.d, /etc/security, /lib/security and
|
---|
[c7eb655] | 266 | /usr/include/security</seg>
|
---|
| 267 | </seglistitem>
|
---|
| 268 | </segmentedlist>
|
---|
| 269 |
|
---|
| 270 | <variablelist>
|
---|
| 271 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 272 | <?dbfo list-presentation="list"?>
|
---|
| 273 | <?dbhtml list-presentation="table"?>
|
---|
| 274 |
|
---|
| 275 | <varlistentry id="pam_tally">
|
---|
| 276 | <term><command>pam_tally</command></term>
|
---|
| 277 | <listitem>
|
---|
| 278 | <para>is used to view or manipulate the <filename>faillog</filename>
|
---|
| 279 | file.</para>
|
---|
[6603f8b] | 280 | <indexterm zone="linux-pam pam_tally">
|
---|
[c7eb655] | 281 | <primary sortas="b-pam_tally">pam_tally</primary>
|
---|
| 282 | </indexterm>
|
---|
| 283 | </listitem>
|
---|
| 284 | </varlistentry>
|
---|
| 285 |
|
---|
| 286 | <varlistentry id="libpam">
|
---|
[3597eb6] | 287 | <term><filename class='libraryfile'>libpam.{so,a}</filename></term>
|
---|
[c7eb655] | 288 | <listitem>
|
---|
| 289 | <para>provides the interfaces between applications and the
|
---|
| 290 | PAM modules.</para>
|
---|
[6603f8b] | 291 | <indexterm zone="linux-pam libpam">
|
---|
[3597eb6] | 292 | <primary sortas="c-libpam">libpam.{so,a}</primary>
|
---|
[c7eb655] | 293 | </indexterm>
|
---|
| 294 | </listitem>
|
---|
| 295 | </varlistentry>
|
---|
| 296 |
|
---|
| 297 | </variablelist>
|
---|
| 298 |
|
---|
| 299 | </sect2>
|
---|
[b4b71892] | 300 |
|
---|
[3c52f859] | 301 | </sect1>
|
---|