[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">
|
---|
[85feb93] | 9 | <!ENTITY linux-pam-md5sum "aabed0543f57dc3e4eebbb0779daf898">
|
---|
| 10 | <!ENTITY linux-pam-size "728 KB">
|
---|
| 11 | <!ENTITY linux-pam-buildsize "17.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 |
|
---|
[ccb8b2d] | 111 | <para>This package does not come with a test suite.</para>
|
---|
[f691f2b] | 112 |
|
---|
[c7eb655] | 113 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[17fb537e] | 114 |
|
---|
[c7eb655] | 115 | <screen role="root"><userinput>make install &&
|
---|
[ccb8b2d] | 116 | mv -v /lib/security/pam_tally /sbin &&
|
---|
| 117 | mv -v /usr/lib/libpam*.so.0* /lib &&
|
---|
[85feb93] | 118 | ln -v -sf ../../lib/libpam.so.0.81.2 /usr/lib/libpam.so &&
|
---|
[ccb8b2d] | 119 | ln -v -sf ../../lib/libpamc.so.0.81.0 /usr/lib/libpamc.so &&
|
---|
[85feb93] | 120 | ln -v -sf ../../lib/libpam_misc.so.0.81.2 /usr/lib/libpam_misc.so</userinput></screen>
|
---|
[b4b71892] | 121 |
|
---|
[ccb8b2d] | 122 | <para>If you downloaded the documentation, install it using the following
|
---|
| 123 | command:</para>
|
---|
[f691f2b] | 124 |
|
---|
[ccb8b2d] | 125 | <screen role="root"><userinput>for DOCTYPE in html pdf ps txts
|
---|
[f691f2b] | 126 | do
|
---|
[6603f8b] | 127 | cp -v -R doc/$DOCTYPE /usr/share/doc/Linux-PAM-&linux-pam-version;
|
---|
[c7eb655] | 128 | done</userinput></screen>
|
---|
[f691f2b] | 129 |
|
---|
[c7eb655] | 130 | </sect2>
|
---|
[b4b71892] | 131 |
|
---|
[c7eb655] | 132 | <sect2 role="commands">
|
---|
| 133 | <title>Command Explanations</title>
|
---|
[b4b71892] | 134 |
|
---|
[ccb8b2d] | 135 | <para><parameter>--libdir=/usr/lib</parameter>: This parameter results in
|
---|
| 136 | the libraries being installed in
|
---|
| 137 | <filename class='directory'>/usr/lib</filename>.</para>
|
---|
[b4b71892] | 138 |
|
---|
[ccb8b2d] | 139 | <para><parameter>--sbindir=/lib/security</parameter>: This parameter
|
---|
| 140 | results in two executables, one which is not intended to be run from the
|
---|
| 141 | command line, being installed in the same directory as the PAM modules.
|
---|
| 142 | One of the executables is later moved to the
|
---|
| 143 | <filename class='directory'>/sbin</filename> directory.</para>
|
---|
[b4b71892] | 144 |
|
---|
[ccb8b2d] | 145 | <para><parameter>--enable-securedir=/lib/security</parameter>: This
|
---|
| 146 | parameter results in the PAM modules being installed in
|
---|
| 147 | <filename class='directory'>/lib/security</filename>.</para>
|
---|
[b4b71892] | 148 |
|
---|
[ccb8b2d] | 149 | <para><parameter>--enable-docdir=...</parameter>: This parameter results in
|
---|
| 150 | the documentation being installed in a versioned directory name.</para>
|
---|
[b4b71892] | 151 |
|
---|
[ccb8b2d] | 152 | <para><parameter>--enable-read-both-confs</parameter>: This parameter
|
---|
| 153 | allows the local administrator to choose which configuration file setup to
|
---|
| 154 | use.</para>
|
---|
[b4b71892] | 155 |
|
---|
[ccb8b2d] | 156 | <para><command>mv -v /lib/security/pam_tally /sbin</command>: The
|
---|
| 157 | <command>pam_tally</command> program is designed to be run by the system
|
---|
| 158 | administrator, possibly in single-user mode, so it is moved to the
|
---|
| 159 | appropriate directory.</para>
|
---|
| 160 |
|
---|
| 161 | <para><command>mv -v /usr/lib/libpam*.so.0* /lib</command>: This command
|
---|
| 162 | moves the dynamic libraries to <filename class='directory'>/lib</filename>
|
---|
| 163 | as they may be required in single user mode.</para>
|
---|
| 164 |
|
---|
| 165 | <para><command>ln -v -sf ...</command>: These commands recreate the
|
---|
| 166 | <filename class='symlink'>.so</filename> symlinks as the libraries they
|
---|
| 167 | pointed to were moved to <filename class='directory'>/lib</filename>.</para>
|
---|
[aadd9ef] | 168 |
|
---|
[c7eb655] | 169 | </sect2>
|
---|
[b4b71892] | 170 |
|
---|
[c7eb655] | 171 | <sect2 role="configuration">
|
---|
| 172 | <title>Configuring Linux-PAM</title>
|
---|
[b4b71892] | 173 |
|
---|
[c7eb655] | 174 | <sect3 id="pam-config">
|
---|
| 175 | <title>Config Files</title>
|
---|
[b4b71892] | 176 |
|
---|
[c7eb655] | 177 | <para><filename>/etc/security/*</filename> and
|
---|
| 178 | <filename>/etc/pam.d/*</filename> or
|
---|
| 179 | <filename>/etc/pam.conf</filename></para>
|
---|
[b4b71892] | 180 |
|
---|
[6603f8b] | 181 | <indexterm zone="linux-pam pam-config">
|
---|
[c7eb655] | 182 | <primary sortas="e-etc-security">/etc/security/*</primary>
|
---|
| 183 | </indexterm>
|
---|
[b4b71892] | 184 |
|
---|
[6603f8b] | 185 | <indexterm zone="linux-pam pam-config">
|
---|
[c7eb655] | 186 | <primary sortas="e-etc-pam.d">/etc/pam.d/*</primary>
|
---|
| 187 | </indexterm>
|
---|
| 188 |
|
---|
[6603f8b] | 189 | <indexterm zone="linux-pam pam-config">
|
---|
[c7eb655] | 190 | <primary sortas="e-etc-pam.conf">/etc/pam.conf</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 |
|
---|
| 193 | </sect3>
|
---|
| 194 |
|
---|
| 195 | <sect3>
|
---|
| 196 | <title>Configuration Information</title>
|
---|
| 197 |
|
---|
| 198 | <para>Configuration information is placed in
|
---|
| 199 | <filename class='directory'>/etc/pam.d/</filename> or
|
---|
[ccb8b2d] | 200 | <filename>/etc/pam.conf</filename> depending on system administrator
|
---|
| 201 | preference. Below are example files of each type:</para>
|
---|
[c7eb655] | 202 |
|
---|
| 203 | <screen><literal># Begin /etc/pam.d/other
|
---|
[b4b71892] | 204 |
|
---|
| 205 | auth required pam_unix.so nullok
|
---|
| 206 | account required pam_unix.so
|
---|
| 207 | session required pam_unix.so
|
---|
| 208 | password required pam_unix.so nullok
|
---|
| 209 |
|
---|
| 210 | # End /etc/pam.d/other
|
---|
| 211 |
|
---|
| 212 | # Begin /etc/pam.conf
|
---|
| 213 |
|
---|
| 214 | other auth required pam_unix.so nullok
|
---|
| 215 | other account required pam_unix.so
|
---|
| 216 | other session required pam_unix.so
|
---|
| 217 | other password required pam_unix.so nullok
|
---|
| 218 |
|
---|
[c7eb655] | 219 | # End /etc/pam.conf</literal></screen>
|
---|
| 220 |
|
---|
| 221 | <para>The <application>PAM</application> man page
|
---|
| 222 | (<command>man pam</command>) provides a good starting point for
|
---|
| 223 | descriptions of fields and allowable entries. The <ulink
|
---|
| 224 | url="http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam.html">
|
---|
[ccb8b2d] | 225 | Linux-PAM System Administrators' Guide</ulink>
|
---|
| 226 | is recommended for additional information.</para>
|
---|
[c7eb655] | 227 |
|
---|
| 228 | <para>Refer to <ulink
|
---|
| 229 | url="http://www.kernel.org/pub/linux/libs/pam/modules.html"/>
|
---|
| 230 | for a list of various modules available.</para>
|
---|
| 231 |
|
---|
[ccb8b2d] | 232 | <important>
|
---|
[c7eb655] | 233 | <para>You should now reinstall the <xref linkend="shadow"/>
|
---|
| 234 | package.</para>
|
---|
[ccb8b2d] | 235 | </important>
|
---|
[c7eb655] | 236 |
|
---|
| 237 | </sect3>
|
---|
| 238 |
|
---|
| 239 | </sect2>
|
---|
| 240 |
|
---|
| 241 | <sect2 role="content">
|
---|
| 242 | <title>Contents</title>
|
---|
| 243 |
|
---|
| 244 | <segmentedlist>
|
---|
[ccb8b2d] | 245 | <segtitle>Installed Program</segtitle>
|
---|
[c7eb655] | 246 | <segtitle>Installed Libraries</segtitle>
|
---|
| 247 | <segtitle>Installed Directories</segtitle>
|
---|
| 248 |
|
---|
| 249 | <seglistitem>
|
---|
[ccb8b2d] | 250 | <seg>pam_tally</seg>
|
---|
[3597eb6] | 251 | <seg>libpam.{so,a}, libpamc.{so,a}, and libpam_misc.{so,a}</seg>
|
---|
[ccb8b2d] | 252 | <seg>/etc/pam.d, /etc/security, /lib/security and
|
---|
[c7eb655] | 253 | /usr/include/security</seg>
|
---|
| 254 | </seglistitem>
|
---|
| 255 | </segmentedlist>
|
---|
| 256 |
|
---|
| 257 | <variablelist>
|
---|
| 258 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 259 | <?dbfo list-presentation="list"?>
|
---|
| 260 | <?dbhtml list-presentation="table"?>
|
---|
| 261 |
|
---|
| 262 | <varlistentry id="pam_tally">
|
---|
| 263 | <term><command>pam_tally</command></term>
|
---|
| 264 | <listitem>
|
---|
| 265 | <para>is used to view or manipulate the <filename>faillog</filename>
|
---|
| 266 | file.</para>
|
---|
[6603f8b] | 267 | <indexterm zone="linux-pam pam_tally">
|
---|
[c7eb655] | 268 | <primary sortas="b-pam_tally">pam_tally</primary>
|
---|
| 269 | </indexterm>
|
---|
| 270 | </listitem>
|
---|
| 271 | </varlistentry>
|
---|
| 272 |
|
---|
| 273 | <varlistentry id="libpam">
|
---|
[3597eb6] | 274 | <term><filename class='libraryfile'>libpam.{so,a}</filename></term>
|
---|
[c7eb655] | 275 | <listitem>
|
---|
| 276 | <para>provides the interfaces between applications and the
|
---|
| 277 | PAM modules.</para>
|
---|
[6603f8b] | 278 | <indexterm zone="linux-pam libpam">
|
---|
[3597eb6] | 279 | <primary sortas="c-libpam">libpam.{so,a}</primary>
|
---|
[c7eb655] | 280 | </indexterm>
|
---|
| 281 | </listitem>
|
---|
| 282 | </varlistentry>
|
---|
| 283 |
|
---|
| 284 | </variablelist>
|
---|
| 285 |
|
---|
| 286 | </sect2>
|
---|
[b4b71892] | 287 |
|
---|
[3c52f859] | 288 | </sect1>
|
---|