[b4b71892] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[b4b71892] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[1ae6204] | 7 | <!ENTITY linux-pam-download-http "https://fedorahosted.org/releases/l/i/linux-pam/Linux-PAM-&linux-pam-version;.tar.bz2">
|
---|
| 8 | <!ENTITY linux-pam-download-ftp " ">
|
---|
| 9 | <!ENTITY linux-pam-md5sum "927ee5585bdec5256c75117e9348aa47">
|
---|
[a263ccb3] | 10 | <!ENTITY linux-pam-size "1.1 MB">
|
---|
[1ae6204] | 11 | <!ENTITY linux-pam-buildsize "28 MB (includes installing the optional documentation)">
|
---|
| 12 | <!ENTITY linux-pam-time "0.3 SBU">
|
---|
[903f671] | 13 |
|
---|
[1ae6204] | 14 | <!ENTITY linux-pam-docs-download "https://fedorahosted.org/releases/l/i/linux-pam/Linux-PAM-&linux-pam-version;-docs.tar.bz2">
|
---|
| 15 | <!ENTITY linux-pam-docs-md5sum "987e14ddce375ec7ddd2b91fbc2bd46d">
|
---|
| 16 | <!ENTITY linux-pam-docs-size "487 KB">
|
---|
| 17 | <!ENTITY debian-pam-docs "http://debian.securedservers.com/kernel/pub/linux/libs/pam">
|
---|
[b4b71892] | 18 | ]>
|
---|
| 19 |
|
---|
[6603f8b] | 20 | <sect1 id="linux-pam" xreflabel="Linux-PAM-&linux-pam-version;">
|
---|
| 21 | <?dbhtml filename="linux-pam.html"?>
|
---|
[c7eb655] | 22 |
|
---|
| 23 | <sect1info>
|
---|
| 24 | <othername>$LastChangedBy$</othername>
|
---|
| 25 | <date>$Date$</date>
|
---|
| 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 |
|
---|
[1ae6204] | 42 | &lfs70_checked;
|
---|
[f4797d2] | 43 |
|
---|
[c7eb655] | 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
[6603f8b] | 47 | <para>Download (HTTP): <ulink url="&linux-pam-download-http;"/></para>
|
---|
[c7eb655] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[6603f8b] | 50 | <para>Download (FTP): <ulink url="&linux-pam-download-ftp;"/></para>
|
---|
[c7eb655] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[6603f8b] | 53 | <para>Download MD5 sum: &linux-pam-md5sum;</para>
|
---|
[c7eb655] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[6603f8b] | 56 | <para>Download size: &linux-pam-size;</para>
|
---|
[c7eb655] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[6603f8b] | 59 | <para>Estimated disk space required: &linux-pam-buildsize;</para>
|
---|
[c7eb655] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[6603f8b] | 62 | <para>Estimated build time: &linux-pam-time;</para>
|
---|
[c7eb655] | 63 | </listitem>
|
---|
| 64 | </itemizedlist>
|
---|
| 65 |
|
---|
| 66 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 67 | <itemizedlist spacing='compact'>
|
---|
[07f0c976] | 68 | <title>Optional Documentation</title>
|
---|
[c7eb655] | 69 | <listitem>
|
---|
[07f0c976] | 70 | <para>Download (HTTP): <ulink url="&linux-pam-docs-download;"/></para>
|
---|
[903f671] | 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
[07f0c976] | 73 | <para>Download MD5 sum: &linux-pam-docs-md5sum;</para>
|
---|
[903f671] | 74 | </listitem>
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>Download size &linux-pam-docs-size;</para>
|
---|
[6576f3e] | 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
| 79 |
|
---|
[c7eb655] | 80 | <bridgehead renderas="sect3">Linux-PAM Dependencies</bridgehead>
|
---|
| 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[903f671] | 83 | <para role="optional"><xref linkend="cracklib"/>,
|
---|
[9ce4c50c] | 84 | <xref linkend="libtirpc"/>, <xref linkend="x-window-system"/>,
|
---|
[de7f20e] | 85 | <xref linkend="db"/> (for the pam_userdb module), and
|
---|
[c03a8bd] | 86 | <ulink url="http://www.prelude-ids.org/">Prelude</ulink></para>
|
---|
| 87 |
|
---|
| 88 | <bridgehead renderas="sect4">Optional (To {,Re}build the Documentation)</bridgehead>
|
---|
| 89 | <para role="optional"><xref linkend="libxslt"/>,
|
---|
| 90 | <xref linkend="DocBook"/>,
|
---|
| 91 | <xref linkend="docbook-xsl"/>,
|
---|
| 92 | <xref linkend="w3m"/>, and
|
---|
| 93 | <xref linkend="fop"/></para>
|
---|
[c7eb655] | 94 |
|
---|
[3597eb6] | 95 | <para condition="html" role="usernotes">User Notes:
|
---|
| 96 | <ulink url="&blfs-wiki;/linux-pam"/></para>
|
---|
[c7eb655] | 97 | </sect2>
|
---|
| 98 |
|
---|
| 99 | <sect2 role="installation">
|
---|
| 100 | <title>Installation of Linux-PAM</title>
|
---|
| 101 |
|
---|
[903f671] | 102 | <para>If you downloaded the documentation, unpack the tarball by issuing
|
---|
| 103 | the following command.</para>
|
---|
| 104 |
|
---|
[651ec29] | 105 | <screen><userinput>tar -xf ../Linux-PAM-&linux-pam-version;-docs.tar.bz2 --strip-components=1</userinput></screen>
|
---|
[ccb8b2d] | 106 |
|
---|
[c7eb655] | 107 | <para>Install <application>Linux-PAM</application> by
|
---|
| 108 | running the following commands:</para>
|
---|
| 109 |
|
---|
[903f671] | 110 | <screen><userinput>./configure --sbindir=/lib/security \
|
---|
[c03a8bd] | 111 | --docdir=/usr/share/doc/Linux-PAM-&linux-pam-version; \
|
---|
[dcf7f5bf] | 112 | --disable-nis \
|
---|
[903f671] | 113 | --enable-read-both-confs &&
|
---|
[c7eb655] | 114 | make</userinput></screen>
|
---|
[17fb537e] | 115 |
|
---|
[903f671] | 116 | <para>To test the results, a configuration file must be created. This file
|
---|
| 117 | will be removed after the tests have completed. Ensure there are no errors
|
---|
| 118 | produced by the tests before continuing the installation. First create the
|
---|
| 119 | configuration file by issuing the following commands as the
|
---|
| 120 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 121 |
|
---|
| 122 | <screen role="root"><userinput>install -v -m755 -d /etc/pam.d &&
|
---|
[c03a8bd] | 123 |
|
---|
[903f671] | 124 | cat > /etc/pam.d/other << "EOF"
|
---|
| 125 | auth required pam_deny.so
|
---|
| 126 | account required pam_deny.so
|
---|
| 127 | password required pam_deny.so
|
---|
| 128 | session required pam_deny.so
|
---|
| 129 | EOF</userinput></screen>
|
---|
[1ad238d8] | 130 |
|
---|
[903f671] | 131 | <para>Now run the tests by issuing <command>make check</command>.</para>
|
---|
| 132 |
|
---|
| 133 | <para>Remove the configuration file created earlier by issuing the
|
---|
| 134 | following command as the
|
---|
| 135 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 136 |
|
---|
| 137 | <screen role="root"><userinput>rm -rfv /etc/pam.d</userinput></screen>
|
---|
[f691f2b] | 138 |
|
---|
[fd5612b] | 139 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 140 | user:</para>
|
---|
[17fb537e] | 141 |
|
---|
[c7eb655] | 142 | <screen role="root"><userinput>make install &&
|
---|
[ee05358] | 143 | chmod -v 4755 /lib/security/unix_chkpwd &&
|
---|
[fd5612b] | 144 | mv -v /lib/security/pam_tally /sbin</userinput></screen>
|
---|
[c7eb655] | 145 | </sect2>
|
---|
[b4b71892] | 146 |
|
---|
[c7eb655] | 147 | <sect2 role="commands">
|
---|
| 148 | <title>Command Explanations</title>
|
---|
[b4b71892] | 149 |
|
---|
[ccb8b2d] | 150 | <para><parameter>--sbindir=/lib/security</parameter>: This parameter
|
---|
[903f671] | 151 | results in three executables, two of which are not intended to be run from
|
---|
| 152 | the command line, being installed in the same directory as the PAM modules.
|
---|
[6869595] | 153 | The other executable is later moved to the
|
---|
[9ce4c50c] | 154 | <filename class="directory">/sbin</filename> directory.</para>
|
---|
[b4b71892] | 155 |
|
---|
[c03a8bd] | 156 | <para><parameter>--docdir=...</parameter>: This parameter results in
|
---|
[ccb8b2d] | 157 | the documentation being installed in a versioned directory name.</para>
|
---|
[b4b71892] | 158 |
|
---|
[dcf7f5bf] | 159 | <para><parameter>--disable-nis</parameter>: This option disables building
|
---|
[9ce4c50c] | 160 | Network Information Service/Yellow Pages support in pam_unix and pam_access.
|
---|
| 161 | The RPC implementation in glibc (on which NIS/YP depends) is deprecated. However, the same functionality is provided by
|
---|
| 162 | <application>Libtirpc</application> so if you've installed
|
---|
| 163 | <xref linkend="libtirpc"/> you can remove the
|
---|
| 164 | <parameter>--disable-nis</parameter> option.</para>
|
---|
[dcf7f5bf] | 165 |
|
---|
[ccb8b2d] | 166 | <para><parameter>--enable-read-both-confs</parameter>: This parameter
|
---|
| 167 | allows the local administrator to choose which configuration file setup to
|
---|
| 168 | use.</para>
|
---|
[b4b71892] | 169 |
|
---|
[ee05358] | 170 | <para><command>chmod -v 4755 /lib/security/unix_chkpwd</command>:
|
---|
| 171 | The <command>unix_chkpwd</command> password-helper program must be setuid
|
---|
| 172 | so that non-<systemitem class="username">root</systemitem> processes can
|
---|
| 173 | access the shadow-password file.</para>
|
---|
| 174 |
|
---|
[ccb8b2d] | 175 | <para><command>mv -v /lib/security/pam_tally /sbin</command>: The
|
---|
| 176 | <command>pam_tally</command> program is designed to be run by the system
|
---|
| 177 | administrator, possibly in single-user mode, so it is moved to the
|
---|
| 178 | appropriate directory.</para>
|
---|
[c7eb655] | 179 | </sect2>
|
---|
[b4b71892] | 180 |
|
---|
[c7eb655] | 181 | <sect2 role="configuration">
|
---|
| 182 | <title>Configuring Linux-PAM</title>
|
---|
[b4b71892] | 183 |
|
---|
[c7eb655] | 184 | <sect3 id="pam-config">
|
---|
| 185 | <title>Config Files</title>
|
---|
[b4b71892] | 186 |
|
---|
[c7eb655] | 187 | <para><filename>/etc/security/*</filename> and
|
---|
| 188 | <filename>/etc/pam.d/*</filename> or
|
---|
| 189 | <filename>/etc/pam.conf</filename></para>
|
---|
[b4b71892] | 190 |
|
---|
[6603f8b] | 191 | <indexterm zone="linux-pam pam-config">
|
---|
[c7eb655] | 192 | <primary sortas="e-etc-security">/etc/security/*</primary>
|
---|
| 193 | </indexterm>
|
---|
[b4b71892] | 194 |
|
---|
[6603f8b] | 195 | <indexterm zone="linux-pam pam-config">
|
---|
[c7eb655] | 196 | <primary sortas="e-etc-pam.d">/etc/pam.d/*</primary>
|
---|
| 197 | </indexterm>
|
---|
| 198 |
|
---|
[6603f8b] | 199 | <indexterm zone="linux-pam pam-config">
|
---|
[c7eb655] | 200 | <primary sortas="e-etc-pam.conf">/etc/pam.conf</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </sect3>
|
---|
| 203 |
|
---|
| 204 | <sect3>
|
---|
| 205 | <title>Configuration Information</title>
|
---|
| 206 |
|
---|
| 207 | <para>Configuration information is placed in
|
---|
[9ce4c50c] | 208 | <filename class="directory">/etc/pam.d/</filename> or
|
---|
[ccb8b2d] | 209 | <filename>/etc/pam.conf</filename> depending on system administrator
|
---|
| 210 | preference. Below are example files of each type:</para>
|
---|
[c7eb655] | 211 |
|
---|
| 212 | <screen><literal># Begin /etc/pam.d/other
|
---|
[b4b71892] | 213 |
|
---|
| 214 | auth required pam_unix.so nullok
|
---|
| 215 | account required pam_unix.so
|
---|
| 216 | session required pam_unix.so
|
---|
| 217 | password required pam_unix.so nullok
|
---|
| 218 |
|
---|
| 219 | # End /etc/pam.d/other
|
---|
| 220 |
|
---|
| 221 | # Begin /etc/pam.conf
|
---|
| 222 |
|
---|
| 223 | other auth required pam_unix.so nullok
|
---|
| 224 | other account required pam_unix.so
|
---|
| 225 | other session required pam_unix.so
|
---|
| 226 | other password required pam_unix.so nullok
|
---|
| 227 |
|
---|
[c7eb655] | 228 | # End /etc/pam.conf</literal></screen>
|
---|
| 229 |
|
---|
[1ae6204] | 230 | <para>The <application>PAM</application> man page (<command>man
|
---|
| 231 | pam</command>) provides a good starting point for descriptions of fields
|
---|
| 232 | and allowable entries. The <ulink
|
---|
| 233 | url="&debian-pam-docs;/Linux-PAM-html/Linux-PAM_SAG.html"> Linux-PAM
|
---|
| 234 | System Administrators' Guide</ulink> is recommended for additional
|
---|
| 235 | information.</para>
|
---|
[c7eb655] | 236 |
|
---|
[1ae6204] | 237 | <para>Refer to <ulink url="&debian-pam-docs;/modules.html"/> for a list
|
---|
| 238 | of various third-party modules available.</para>
|
---|
[c7eb655] | 239 |
|
---|
[ccb8b2d] | 240 | <important>
|
---|
[c7eb655] | 241 | <para>You should now reinstall the <xref linkend="shadow"/>
|
---|
| 242 | package.</para>
|
---|
[ccb8b2d] | 243 | </important>
|
---|
[c7eb655] | 244 | </sect3>
|
---|
| 245 | </sect2>
|
---|
| 246 |
|
---|
| 247 | <sect2 role="content">
|
---|
| 248 | <title>Contents</title>
|
---|
| 249 |
|
---|
| 250 | <segmentedlist>
|
---|
[ccb8b2d] | 251 | <segtitle>Installed Program</segtitle>
|
---|
[c7eb655] | 252 | <segtitle>Installed Libraries</segtitle>
|
---|
| 253 | <segtitle>Installed Directories</segtitle>
|
---|
| 254 |
|
---|
| 255 | <seglistitem>
|
---|
[ccb8b2d] | 256 | <seg>pam_tally</seg>
|
---|
[903f671] | 257 | <seg>libpam.{so,a}, libpamc.{so,a}, libpam_misc.{so,a} and
|
---|
| 258 | numerous PAM modules</seg>
|
---|
[3c9d219] | 259 | <seg>/etc/security, /lib/security, /usr/include/security,
|
---|
| 260 | /usr/share/doc/Linux-PAM-&linux-pam-version;,
|
---|
[903f671] | 261 | and /var/run/sepermit</seg>
|
---|
[c7eb655] | 262 | </seglistitem>
|
---|
| 263 | </segmentedlist>
|
---|
| 264 |
|
---|
| 265 | <variablelist>
|
---|
| 266 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 267 | <?dbfo list-presentation="list"?>
|
---|
| 268 | <?dbhtml list-presentation="table"?>
|
---|
| 269 |
|
---|
| 270 | <varlistentry id="pam_tally">
|
---|
| 271 | <term><command>pam_tally</command></term>
|
---|
| 272 | <listitem>
|
---|
| 273 | <para>is used to view or manipulate the <filename>faillog</filename>
|
---|
| 274 | file.</para>
|
---|
[6603f8b] | 275 | <indexterm zone="linux-pam pam_tally">
|
---|
[c7eb655] | 276 | <primary sortas="b-pam_tally">pam_tally</primary>
|
---|
| 277 | </indexterm>
|
---|
| 278 | </listitem>
|
---|
| 279 | </varlistentry>
|
---|
| 280 |
|
---|
| 281 | <varlistentry id="libpam">
|
---|
[9ce4c50c] | 282 | <term><filename class="libraryfile">libpam.{so,a}</filename></term>
|
---|
[c7eb655] | 283 | <listitem>
|
---|
| 284 | <para>provides the interfaces between applications and the
|
---|
| 285 | PAM modules.</para>
|
---|
[6603f8b] | 286 | <indexterm zone="linux-pam libpam">
|
---|
[3597eb6] | 287 | <primary sortas="c-libpam">libpam.{so,a}</primary>
|
---|
[c7eb655] | 288 | </indexterm>
|
---|
| 289 | </listitem>
|
---|
| 290 | </varlistentry>
|
---|
| 291 | </variablelist>
|
---|
| 292 | </sect2>
|
---|
[3c52f859] | 293 | </sect1>
|
---|