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