[b4b71892] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 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">
|
---|
[71e0d63d] | 11 | <!ENTITY Linux_PAM-buildsize "7.8 MB">
|
---|
| 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 |
|
---|
| 47 | <sect3><title>Additional download</title>
|
---|
| 48 | <itemizedlist spacing='compact'>
|
---|
[07b157f4] | 49 | <listitem><para>Required Patch: <ulink
|
---|
[c2688a0] | 50 | url="&patch-root;/Linux-PAM-&Linux_PAM-version;-linkage-2.patch"/></para>
|
---|
[ad176f9] | 51 | </listitem></itemizedlist>
|
---|
[b4b71892] | 52 | </sect3>
|
---|
| 53 |
|
---|
[ad176f9] | 54 | <sect3><title><application>Linux-<acronym>PAM</acronym></application>
|
---|
| 55 | dependencies</title>
|
---|
[9f52578d] | 56 | <sect4><title>Recommended</title>
|
---|
[c6b985cf] | 57 | <para><xref linkend="cracklib"/></para>
|
---|
| 58 | </sect4>
|
---|
| 59 |
|
---|
[b4b71892] | 60 | <sect4><title>Optional</title>
|
---|
[b6293773] | 61 | <para><ulink
|
---|
[17fb537e] | 62 | url="http://sourceforge.net/projects/sgmltools-lite/">sgmltools-lite</ulink>
|
---|
[c6b985cf] | 63 | and <xref linkend="db"/> (for pam_userdb module)</para>
|
---|
| 64 | </sect4>
|
---|
[b4b71892] | 65 | </sect3>
|
---|
| 66 |
|
---|
| 67 | </sect2>
|
---|
| 68 |
|
---|
| 69 | <sect2>
|
---|
[c6b985cf] | 70 | <title>Installation of
|
---|
| 71 | <application>Linux-<acronym>PAM</acronym></application></title>
|
---|
[b4b71892] | 72 |
|
---|
| 73 | <para>Install <application>Linux-<acronym>PAM</acronym></application> by
|
---|
| 74 | running the following commands:</para>
|
---|
| 75 |
|
---|
[aa1c0f0] | 76 | <screen><userinput><command>patch -Np1 -i ../Linux-PAM-&Linux_PAM-version;-linkage-2.patch &&
|
---|
[b4b71892] | 77 | autoconf &&
|
---|
[851b984e] | 78 | sed -i 's/(mandir)/(MANDIR)/g' modules/Simple.Rules &&
|
---|
[b4b71892] | 79 | ./configure --enable-static-libpam --with-mailspool=/var/mail \
|
---|
| 80 | --enable-read-both-confs --sysconfdir=/etc &&
|
---|
[17fb537e] | 81 | make</command></userinput></screen>
|
---|
| 82 |
|
---|
| 83 | <para>Now, as the root user:</para>
|
---|
| 84 |
|
---|
| 85 | <screen><userinput role='root'><command>make install &&
|
---|
[b4b71892] | 86 | mv /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a /usr/lib &&
|
---|
[aadd9ef] | 87 | rm /lib/libpam{,c,_misc}.so &&
|
---|
[b4b71892] | 88 | ln -sf ../../lib/libpam.so.&Linux_PAM-version; /usr/lib/libpam.so &&
|
---|
| 89 | ln -sf ../../lib/libpam_misc.so.&Linux_PAM-version; /usr/lib/libpam_misc.so &&
|
---|
| 90 | ln -sf ../../lib/libpamc.so.&Linux_PAM-version; /usr/lib/libpamc.so</command></userinput></screen>
|
---|
| 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2>
|
---|
| 95 | <title>Command explanations</title>
|
---|
| 96 |
|
---|
[d140e26] | 97 | <para><command>autoconf</command>: This is necessary because the patch
|
---|
[2197589] | 98 | changes where <acronym>PAM</acronym> looks for the
|
---|
| 99 | <application>cracklib</application> libraries, requiring regeneration of the
|
---|
| 100 | configure script.</para>
|
---|
[b4b71892] | 101 |
|
---|
[851b984e] | 102 | <para><command>sed -i 's/(mandir)/(MANDIR)/g'
|
---|
| 103 | modules/Simple.Rules</command>: This command puts the module manpages
|
---|
| 104 | with the rest of the manpages in
|
---|
| 105 | <filename>/usr/share/man</filename>.</para>
|
---|
| 106 |
|
---|
[b4b71892] | 107 | <para><option>--enable-static-libpam</option>: This switch builds
|
---|
| 108 | static <acronym>PAM</acronym> libraries as well as the dynamic libraries.</para>
|
---|
| 109 |
|
---|
| 110 | <para><parameter>--with-mailspool=/var/mail</parameter>: This switch makes
|
---|
| 111 | the mailspool directory <acronym>FHS</acronym> compliant.</para>
|
---|
| 112 |
|
---|
| 113 | <para><option>--enable-read-both-confs</option>: This switch lets the local
|
---|
| 114 | administrator choose which configuration file setup to use.</para>
|
---|
| 115 |
|
---|
| 116 | <para><command>mv /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a
|
---|
| 117 | /usr/lib</command>: This command moves the static libraries to
|
---|
[d140e26] | 118 | <filename>/usr/lib</filename> to comply with <acronym>FHS</acronym>
|
---|
| 119 | guidelines.</para>
|
---|
[b4b71892] | 120 |
|
---|
[aadd9ef] | 121 | <para><command>rm /lib/libpam{,c,_misc}.so; ln -sf ... /usr/lib/...</command>:
|
---|
| 122 | These commands move the <filename class='symlink'>.so</filename> symlinks from
|
---|
| 123 | <filename class='directory'>/lib</filename> to
|
---|
| 124 | <filename class='directory'>/usr/lib</filename>.</para>
|
---|
| 125 |
|
---|
[b4b71892] | 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | <sect2>
|
---|
[c6b985cf] | 129 | <title>Configuring
|
---|
| 130 | <application>Linux-<acronym>PAM</acronym></application></title>
|
---|
[b4b71892] | 131 |
|
---|
[6a2bce2] | 132 | <sect3 id="pam-config"><title>Config files</title>
|
---|
| 133 | <para><filename>/etc/pam.d/*</filename> or
|
---|
| 134 | <filename>/etc/pam.conf</filename></para>
|
---|
| 135 | <indexterm zone="Linux_PAM pam-config">
|
---|
| 136 | <primary sortas="e-etc-pam.d">/etc/pam.d/*</primary></indexterm>
|
---|
| 137 | <indexterm zone="Linux_PAM pam-config">
|
---|
| 138 | <primary sortas="e-etc-pam.conf">/etc/pam.conf</primary></indexterm>
|
---|
| 139 | </sect3>
|
---|
[b4b71892] | 140 |
|
---|
| 141 | <sect3><title>Configuration Information</title>
|
---|
| 142 |
|
---|
[2197589] | 143 | <para>Configuration information is placed in
|
---|
| 144 | <filename class='directory'>/etc/pam.d/</filename> or
|
---|
[b4b71892] | 145 | <filename>/etc/pam.conf</filename> depending on user preference. Below are
|
---|
| 146 | example files of each type:</para>
|
---|
| 147 |
|
---|
| 148 | <screen># Begin /etc/pam.d/other
|
---|
| 149 |
|
---|
| 150 | auth required pam_unix.so nullok
|
---|
| 151 | account required pam_unix.so
|
---|
| 152 | session required pam_unix.so
|
---|
| 153 | password required pam_unix.so nullok
|
---|
| 154 |
|
---|
| 155 | # End /etc/pam.d/other
|
---|
| 156 |
|
---|
| 157 | # Begin /etc/pam.conf
|
---|
| 158 |
|
---|
| 159 | other auth required pam_unix.so nullok
|
---|
| 160 | other account required pam_unix.so
|
---|
| 161 | other session required pam_unix.so
|
---|
| 162 | other password required pam_unix.so nullok
|
---|
| 163 |
|
---|
| 164 | # End /etc/pam.conf</screen>
|
---|
| 165 |
|
---|
| 166 | <para>The <application><acronym>PAM</acronym></application> man page
|
---|
| 167 | (<command>man pam</command>) provides a good starting point for descriptions
|
---|
| 168 | of fields and allowable entries. The
|
---|
| 169 | <ulink url="http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam.html">
|
---|
| 170 | Linux-PAM guide for system administrators</ulink>
|
---|
| 171 | is recommended for further reading.</para>
|
---|
| 172 |
|
---|
[14d6b3e0] | 173 | <para>Refer to
|
---|
| 174 | <ulink url="http://www.kernel.org/pub/linux/libs/pam/modules.html"/>
|
---|
[b4b71892] | 175 | for a list of various modules available.</para>
|
---|
| 176 |
|
---|
[17fb537e] | 177 | <note><para>You should now reinstall the <xref linkend="shadow"/>
|
---|
| 178 | package.</para></note>
|
---|
[b4b71892] | 179 | </sect3>
|
---|
| 180 |
|
---|
| 181 | </sect2>
|
---|
| 182 |
|
---|
| 183 | <sect2>
|
---|
| 184 | <title>Contents</title>
|
---|
| 185 |
|
---|
[4ede7d3] | 186 | <segmentedlist>
|
---|
[71e0d63d] | 187 | <segtitle>Installed Programs</segtitle>
|
---|
[4ede7d3] | 188 | <segtitle>Installed Libraries</segtitle>
|
---|
[17fb537e] | 189 | <segtitle>Installed Directories</segtitle>
|
---|
[4ede7d3] | 190 | <seglistitem>
|
---|
| 191 | <seg>unix_chkpwd and pam_tally</seg>
|
---|
[e8eb87c] | 192 | <seg>libpam.[so,a], libpamc.[so,a] and libpam_misc.[so,a]</seg>
|
---|
[c6b985cf] | 193 | <seg>/etc/pam.d, /etc/security, /lib/security and /usr/include/security</seg>
|
---|
[4ede7d3] | 194 | </seglistitem>
|
---|
| 195 | </segmentedlist>
|
---|
| 196 |
|
---|
| 197 | <variablelist>
|
---|
| 198 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 199 | <?dbfo list-presentation="list"?>
|
---|
| 200 |
|
---|
| 201 | <varlistentry id="unix_chkpwd">
|
---|
| 202 | <term><command>unix_chkpwd</command></term>
|
---|
| 203 | <listitem><para>checks user passwords that are stored
|
---|
| 204 | in read protected databases.</para>
|
---|
| 205 | <indexterm zone="Linux_PAM unix_chkpwd">
|
---|
| 206 | <primary sortas="b-unix_chkpwd">unix_chkpwd</primary></indexterm>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
| 209 |
|
---|
| 210 | <varlistentry id="libpam">
|
---|
[e8eb87c] | 211 | <term><filename class='libraryfile'>libpam.[so,a]</filename></term>
|
---|
| 212 | <listitem><para>provide the interfaces between applications and the
|
---|
[17fb537e] | 213 | <acronym>PAM</acronym> modules.</para>
|
---|
[4ede7d3] | 214 | <indexterm zone="Linux_PAM libpam">
|
---|
[e8eb87c] | 215 | <primary sortas="c-libpam">libpam.[so,a]</primary></indexterm>
|
---|
[4ede7d3] | 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
| 218 | </variablelist>
|
---|
[b4b71892] | 219 |
|
---|
| 220 | </sect2>
|
---|
| 221 |
|
---|
[3c52f859] | 222 | </sect1>
|
---|
| 223 |
|
---|