[b4b71892] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[86af98a] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
[b4b71892] | 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">
|
---|
[5f084a2] | 9 | <!ENTITY Linux_PAM-md5sum "34938b4f2449d4d3b2ffdbf354257205">
|
---|
[8f9c9862] | 10 | <!ENTITY Linux_PAM-size "364 KB">
|
---|
[f691f2b] | 11 | <!ENTITY Linux_PAM-buildsize "11.4 MB">
|
---|
[71e0d63d] | 12 | <!ENTITY Linux_PAM-time "0.17 SBU">
|
---|
[b4b71892] | 13 | ]>
|
---|
| 14 |
|
---|
[04a28bc] | 15 | <sect1 id="Linux_PAM" xreflabel="Linux-PAM-&Linux_PAM-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[bae6e15] | 20 | <?dbhtml filename="linux_pam.html"?>
|
---|
[04a28bc] | 21 | <title>Linux-PAM-&Linux_PAM-version;</title>
|
---|
[4ede7d3] | 22 | <indexterm zone="Linux_PAM">
|
---|
[d5d6554] | 23 | <primary sortas="a-PAM_linux">PAM(Linux)</primary></indexterm>
|
---|
[3c52f859] | 24 |
|
---|
[b4b71892] | 25 | <sect2>
|
---|
| 26 | <title>Introduction to <application>Linux-<acronym>PAM</acronym></application>
|
---|
| 27 | </title>
|
---|
| 28 |
|
---|
| 29 | <para>The <application>Linux-<acronym>PAM</acronym></application> package
|
---|
| 30 | contains Pluggable Authentication Modules. This is useful to enable the local
|
---|
| 31 | system administrator to choose how applications authenticate users.</para>
|
---|
| 32 |
|
---|
| 33 | <sect3><title>Package information</title>
|
---|
| 34 | <itemizedlist spacing='compact'>
|
---|
| 35 | <listitem><para>Download (HTTP): <ulink
|
---|
| 36 | url="&Linux_PAM-download-http;"/></para></listitem>
|
---|
| 37 | <listitem><para>Download (FTP): <ulink
|
---|
| 38 | url="&Linux_PAM-download-ftp;"/></para></listitem>
|
---|
[5f084a2] | 39 | <listitem><para>Download MD5 sum: &Linux_PAM-md5sum;</para></listitem>
|
---|
[b4b71892] | 40 | <listitem><para>Download size: &Linux_PAM-size;</para></listitem>
|
---|
[518538f] | 41 | <listitem><para>Estimated disk space required:
|
---|
[b4b71892] | 42 | &Linux_PAM-buildsize;</para></listitem>
|
---|
| 43 | <listitem><para>Estimated build time:
|
---|
| 44 | &Linux_PAM-time;</para></listitem></itemizedlist>
|
---|
| 45 | </sect3>
|
---|
| 46 |
|
---|
[f691f2b] | 47 | <sect3><title>Additional downloads</title>
|
---|
| 48 | <sect4><title>Patches</title>
|
---|
[b4b71892] | 49 | <itemizedlist spacing='compact'>
|
---|
[f691f2b] | 50 | <listitem><para>Required patch: <ulink
|
---|
[c2688a0] | 51 | url="&patch-root;/Linux-PAM-&Linux_PAM-version;-linkage-2.patch"/></para>
|
---|
[ad176f9] | 52 | </listitem></itemizedlist>
|
---|
[f691f2b] | 53 | </sect4>
|
---|
| 54 |
|
---|
| 55 | <sect4><title>Documentation</title>
|
---|
| 56 | <itemizedlist spacing='compact'>
|
---|
| 57 | <listitem><para>Optional documentation: <ulink
|
---|
| 58 | url="http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-0.78-docs.tar.bz2"/>
|
---|
| 59 | </para></listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 | </sect4>
|
---|
[b4b71892] | 62 | </sect3>
|
---|
| 63 |
|
---|
[ad176f9] | 64 | <sect3><title><application>Linux-<acronym>PAM</acronym></application>
|
---|
| 65 | dependencies</title>
|
---|
[9f52578d] | 66 | <sect4><title>Recommended</title>
|
---|
[c6b985cf] | 67 | <para><xref linkend="cracklib"/></para>
|
---|
| 68 | </sect4>
|
---|
| 69 |
|
---|
[b4b71892] | 70 | <sect4><title>Optional</title>
|
---|
[b6293773] | 71 | <para><ulink
|
---|
[17fb537e] | 72 | url="http://sourceforge.net/projects/sgmltools-lite/">sgmltools-lite</ulink>
|
---|
[c6b985cf] | 73 | and <xref linkend="db"/> (for pam_userdb module)</para>
|
---|
| 74 | </sect4>
|
---|
[b4b71892] | 75 | </sect3>
|
---|
| 76 |
|
---|
| 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | <sect2>
|
---|
[c6b985cf] | 80 | <title>Installation of
|
---|
| 81 | <application>Linux-<acronym>PAM</acronym></application></title>
|
---|
[b4b71892] | 82 |
|
---|
| 83 | <para>Install <application>Linux-<acronym>PAM</acronym></application> by
|
---|
| 84 | running the following commands:</para>
|
---|
| 85 |
|
---|
[aa1c0f0] | 86 | <screen><userinput><command>patch -Np1 -i ../Linux-PAM-&Linux_PAM-version;-linkage-2.patch &&
|
---|
[b4b71892] | 87 | autoconf &&
|
---|
[851b984e] | 88 | sed -i 's/(mandir)/(MANDIR)/g' modules/Simple.Rules &&
|
---|
[b4b71892] | 89 | ./configure --enable-static-libpam --with-mailspool=/var/mail \
|
---|
| 90 | --enable-read-both-confs --sysconfdir=/etc &&
|
---|
[17fb537e] | 91 | make</command></userinput></screen>
|
---|
| 92 |
|
---|
[f691f2b] | 93 | <para>If you downloaded the documentation and wish to install it, unpack the
|
---|
| 94 | tarball into the <filename class='directory'>doc</filename> directory:</para>
|
---|
| 95 |
|
---|
| 96 | <screen><userinput><command>tar -jxf ../Linux-PAM-0.78-docs.tar.bz2 -C doc</command></userinput></screen>
|
---|
| 97 |
|
---|
[17fb537e] | 98 | <para>Now, as the root user:</para>
|
---|
| 99 |
|
---|
| 100 | <screen><userinput role='root'><command>make install &&
|
---|
[904f31e2] | 101 | mv -v /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a /usr/lib &&
|
---|
| 102 | rm -v /lib/libpam{,c,_misc}.so &&
|
---|
| 103 | ln -v -sf ../../lib/libpam.so.&Linux_PAM-version; /usr/lib/libpam.so &&
|
---|
| 104 | ln -v -sf ../../lib/libpam_misc.so.&Linux_PAM-version; /usr/lib/libpam_misc.so &&
|
---|
| 105 | ln -v -sf ../../lib/libpamc.so.&Linux_PAM-version; /usr/lib/libpamc.so</command></userinput></screen>
|
---|
[b4b71892] | 106 |
|
---|
[f691f2b] | 107 | <para>Install the documentation using the following commands:</para>
|
---|
| 108 |
|
---|
| 109 | <screen><userinput role='root'><command>install -v -d -m755 /usr/share/doc/Linux-PAM-&Linux_PAM-version; &&
|
---|
| 110 | for DOCTYPE in html ps specs txts
|
---|
| 111 | do
|
---|
| 112 | cp -v -R doc/$DOCTYPE /usr/share/doc/Linux-PAM-&Linux_PAM-version;
|
---|
| 113 | done</command></userinput></screen>
|
---|
| 114 |
|
---|
[b4b71892] | 115 | </sect2>
|
---|
| 116 |
|
---|
| 117 | <sect2>
|
---|
| 118 | <title>Command explanations</title>
|
---|
| 119 |
|
---|
[d140e26] | 120 | <para><command>autoconf</command>: This is necessary because the patch
|
---|
[2197589] | 121 | changes where <acronym>PAM</acronym> looks for the
|
---|
| 122 | <application>cracklib</application> libraries, requiring regeneration of the
|
---|
| 123 | configure script.</para>
|
---|
[b4b71892] | 124 |
|
---|
[851b984e] | 125 | <para><command>sed -i 's/(mandir)/(MANDIR)/g'
|
---|
| 126 | modules/Simple.Rules</command>: This command puts the module manpages
|
---|
| 127 | with the rest of the manpages in
|
---|
| 128 | <filename>/usr/share/man</filename>.</para>
|
---|
| 129 |
|
---|
[b4b71892] | 130 | <para><option>--enable-static-libpam</option>: This switch builds
|
---|
| 131 | static <acronym>PAM</acronym> libraries as well as the dynamic libraries.</para>
|
---|
| 132 |
|
---|
| 133 | <para><parameter>--with-mailspool=/var/mail</parameter>: This switch makes
|
---|
| 134 | the mailspool directory <acronym>FHS</acronym> compliant.</para>
|
---|
| 135 |
|
---|
| 136 | <para><option>--enable-read-both-confs</option>: This switch lets the local
|
---|
| 137 | administrator choose which configuration file setup to use.</para>
|
---|
| 138 |
|
---|
[904f31e2] | 139 | <para><command>mv -v /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a
|
---|
[b4b71892] | 140 | /usr/lib</command>: This command moves the static libraries to
|
---|
[d140e26] | 141 | <filename>/usr/lib</filename> to comply with <acronym>FHS</acronym>
|
---|
| 142 | guidelines.</para>
|
---|
[b4b71892] | 143 |
|
---|
[904f31e2] | 144 | <para><command>rm -v /lib/libpam{,c,_misc}.so; ln -v -sf ...
|
---|
| 145 | /usr/lib/...</command>: These commands move the
|
---|
| 146 | <filename class='symlink'>.so</filename> symlinks from
|
---|
[aadd9ef] | 147 | <filename class='directory'>/lib</filename> to
|
---|
| 148 | <filename class='directory'>/usr/lib</filename>.</para>
|
---|
| 149 |
|
---|
[b4b71892] | 150 | </sect2>
|
---|
| 151 |
|
---|
| 152 | <sect2>
|
---|
[c6b985cf] | 153 | <title>Configuring
|
---|
| 154 | <application>Linux-<acronym>PAM</acronym></application></title>
|
---|
[b4b71892] | 155 |
|
---|
[6a2bce2] | 156 | <sect3 id="pam-config"><title>Config files</title>
|
---|
[f691f2b] | 157 | <para><filename>/etc/security/*</filename>, and
|
---|
| 158 | <filename>/etc/pam.d/*</filename> or <filename>/etc/pam.conf</filename></para>
|
---|
| 159 | <indexterm zone="Linux_PAM pam-config">
|
---|
| 160 | <primary sortas="e-etc-security">/etc/security/*</primary></indexterm>
|
---|
[6a2bce2] | 161 | <indexterm zone="Linux_PAM pam-config">
|
---|
| 162 | <primary sortas="e-etc-pam.d">/etc/pam.d/*</primary></indexterm>
|
---|
| 163 | <indexterm zone="Linux_PAM pam-config">
|
---|
| 164 | <primary sortas="e-etc-pam.conf">/etc/pam.conf</primary></indexterm>
|
---|
| 165 | </sect3>
|
---|
[b4b71892] | 166 |
|
---|
| 167 | <sect3><title>Configuration Information</title>
|
---|
| 168 |
|
---|
[2197589] | 169 | <para>Configuration information is placed in
|
---|
| 170 | <filename class='directory'>/etc/pam.d/</filename> or
|
---|
[b4b71892] | 171 | <filename>/etc/pam.conf</filename> depending on user preference. Below are
|
---|
| 172 | example files of each type:</para>
|
---|
| 173 |
|
---|
| 174 | <screen># Begin /etc/pam.d/other
|
---|
| 175 |
|
---|
| 176 | auth required pam_unix.so nullok
|
---|
| 177 | account required pam_unix.so
|
---|
| 178 | session required pam_unix.so
|
---|
| 179 | password required pam_unix.so nullok
|
---|
| 180 |
|
---|
| 181 | # End /etc/pam.d/other
|
---|
| 182 |
|
---|
| 183 | # Begin /etc/pam.conf
|
---|
| 184 |
|
---|
| 185 | other auth required pam_unix.so nullok
|
---|
| 186 | other account required pam_unix.so
|
---|
| 187 | other session required pam_unix.so
|
---|
| 188 | other password required pam_unix.so nullok
|
---|
| 189 |
|
---|
| 190 | # End /etc/pam.conf</screen>
|
---|
| 191 |
|
---|
| 192 | <para>The <application><acronym>PAM</acronym></application> man page
|
---|
| 193 | (<command>man pam</command>) provides a good starting point for descriptions
|
---|
| 194 | of fields and allowable entries. The
|
---|
| 195 | <ulink url="http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam.html">
|
---|
| 196 | Linux-PAM guide for system administrators</ulink>
|
---|
| 197 | is recommended for further reading.</para>
|
---|
| 198 |
|
---|
[14d6b3e0] | 199 | <para>Refer to
|
---|
| 200 | <ulink url="http://www.kernel.org/pub/linux/libs/pam/modules.html"/>
|
---|
[b4b71892] | 201 | for a list of various modules available.</para>
|
---|
| 202 |
|
---|
[17fb537e] | 203 | <note><para>You should now reinstall the <xref linkend="shadow"/>
|
---|
| 204 | package.</para></note>
|
---|
[b4b71892] | 205 | </sect3>
|
---|
| 206 |
|
---|
| 207 | </sect2>
|
---|
| 208 |
|
---|
| 209 | <sect2>
|
---|
| 210 | <title>Contents</title>
|
---|
| 211 |
|
---|
[4ede7d3] | 212 | <segmentedlist>
|
---|
[71e0d63d] | 213 | <segtitle>Installed Programs</segtitle>
|
---|
[4ede7d3] | 214 | <segtitle>Installed Libraries</segtitle>
|
---|
[17fb537e] | 215 | <segtitle>Installed Directories</segtitle>
|
---|
[4ede7d3] | 216 | <seglistitem>
|
---|
| 217 | <seg>unix_chkpwd and pam_tally</seg>
|
---|
[e8eb87c] | 218 | <seg>libpam.[so,a], libpamc.[so,a] and libpam_misc.[so,a]</seg>
|
---|
[c6b985cf] | 219 | <seg>/etc/pam.d, /etc/security, /lib/security and /usr/include/security</seg>
|
---|
[4ede7d3] | 220 | </seglistitem>
|
---|
| 221 | </segmentedlist>
|
---|
| 222 |
|
---|
| 223 | <variablelist>
|
---|
| 224 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 225 | <?dbfo list-presentation="list"?>
|
---|
| 226 |
|
---|
| 227 | <varlistentry id="unix_chkpwd">
|
---|
| 228 | <term><command>unix_chkpwd</command></term>
|
---|
| 229 | <listitem><para>checks user passwords that are stored
|
---|
| 230 | in read protected databases.</para>
|
---|
| 231 | <indexterm zone="Linux_PAM unix_chkpwd">
|
---|
| 232 | <primary sortas="b-unix_chkpwd">unix_chkpwd</primary></indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
[f691f2b] | 236 | <varlistentry id="pam_tally">
|
---|
| 237 | <term><command>pam_tally</command></term>
|
---|
| 238 | <listitem><para>is used to view or manipulate the <filename>faillog</filename>
|
---|
| 239 | file.</para>
|
---|
| 240 | <indexterm zone="Linux_PAM pam_tally">
|
---|
| 241 | <primary sortas="b-pam_tally">pam_tally</primary></indexterm>
|
---|
| 242 | </listitem>
|
---|
| 243 | </varlistentry>
|
---|
| 244 |
|
---|
[4ede7d3] | 245 | <varlistentry id="libpam">
|
---|
[e8eb87c] | 246 | <term><filename class='libraryfile'>libpam.[so,a]</filename></term>
|
---|
[f691f2b] | 247 | <listitem><para>provides the interfaces between applications and the
|
---|
[17fb537e] | 248 | <acronym>PAM</acronym> modules.</para>
|
---|
[4ede7d3] | 249 | <indexterm zone="Linux_PAM libpam">
|
---|
[e8eb87c] | 250 | <primary sortas="c-libpam">libpam.[so,a]</primary></indexterm>
|
---|
[4ede7d3] | 251 | </listitem>
|
---|
| 252 | </varlistentry>
|
---|
| 253 | </variablelist>
|
---|
[b4b71892] | 254 |
|
---|
| 255 | </sect2>
|
---|
| 256 |
|
---|
[3c52f859] | 257 | </sect1>
|
---|
| 258 |
|
---|