[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">
|
---|
[8f9c9862] | 9 | <!ENTITY Linux_PAM-size "364 KB">
|
---|
[ad176f9] | 10 | <!ENTITY Linux_PAM-buildsize "6.1 MB">
|
---|
[b4b71892] | 11 | <!ENTITY Linux_PAM-time "0.07 SBU">
|
---|
| 12 | ]>
|
---|
| 13 |
|
---|
[04a28bc] | 14 | <sect1 id="Linux_PAM" xreflabel="Linux-PAM-&Linux_PAM-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[bae6e15] | 19 | <?dbhtml filename="linux_pam.html"?>
|
---|
[04a28bc] | 20 | <title>Linux-PAM-&Linux_PAM-version;</title>
|
---|
[4ede7d3] | 21 | <indexterm zone="Linux_PAM">
|
---|
[d5d6554] | 22 | <primary sortas="a-PAM_linux">PAM(Linux)</primary></indexterm>
|
---|
[3c52f859] | 23 |
|
---|
[b4b71892] | 24 | <sect2>
|
---|
| 25 | <title>Introduction to <application>Linux-<acronym>PAM</acronym></application>
|
---|
| 26 | </title>
|
---|
| 27 |
|
---|
| 28 | <para>The <application>Linux-<acronym>PAM</acronym></application> package
|
---|
| 29 | contains Pluggable Authentication Modules. This is useful to enable the local
|
---|
| 30 | system administrator to choose how applications authenticate users.</para>
|
---|
| 31 |
|
---|
| 32 | <sect3><title>Package information</title>
|
---|
| 33 | <itemizedlist spacing='compact'>
|
---|
| 34 | <listitem><para>Download (HTTP): <ulink
|
---|
| 35 | url="&Linux_PAM-download-http;"/></para></listitem>
|
---|
| 36 | <listitem><para>Download (FTP): <ulink
|
---|
| 37 | url="&Linux_PAM-download-ftp;"/></para></listitem>
|
---|
| 38 | <listitem><para>Download size: &Linux_PAM-size;</para></listitem>
|
---|
[518538f] | 39 | <listitem><para>Estimated disk space required:
|
---|
[b4b71892] | 40 | &Linux_PAM-buildsize;</para></listitem>
|
---|
| 41 | <listitem><para>Estimated build time:
|
---|
| 42 | &Linux_PAM-time;</para></listitem></itemizedlist>
|
---|
| 43 | </sect3>
|
---|
| 44 |
|
---|
| 45 | <sect3><title>Additional download</title>
|
---|
| 46 | <itemizedlist spacing='compact'>
|
---|
[07b157f4] | 47 | <listitem><para>Required Patch: <ulink
|
---|
[8f9c9862] | 48 | url="&patch-root;/Linux-PAM-&Linux_PAM-version;-linkage-1.patch"/></para>
|
---|
[ad176f9] | 49 | </listitem></itemizedlist>
|
---|
[b4b71892] | 50 | </sect3>
|
---|
| 51 |
|
---|
[ad176f9] | 52 | <sect3><title><application>Linux-<acronym>PAM</acronym></application>
|
---|
| 53 | dependencies</title>
|
---|
[b4b71892] | 54 | <sect4><title>Optional</title>
|
---|
[92204ad1] | 55 | <para><xref linkend="cracklib"/> and sgmltools-lite
|
---|
| 56 | (<ulink url="http://sourceforge.net/projects/sgmltools-lite/"/>)
|
---|
[8abd5653] | 57 | </para></sect4>
|
---|
[b4b71892] | 58 | </sect3>
|
---|
| 59 |
|
---|
| 60 | </sect2>
|
---|
| 61 |
|
---|
| 62 | <sect2>
|
---|
| 63 | <title>Installation of <application>Linux-<acronym>PAM</acronym></application>
|
---|
| 64 | </title>
|
---|
| 65 |
|
---|
| 66 | <para>Install <application>Linux-<acronym>PAM</acronym></application> by
|
---|
| 67 | running the following commands:</para>
|
---|
| 68 |
|
---|
[8f9c9862] | 69 | <screen><userinput><command>patch -Np1 -i ../Linux-PAM-&Linux_PAM-version;-linkage-1.patch &&
|
---|
[b4b71892] | 70 | autoconf &&
|
---|
| 71 | ./configure --enable-static-libpam --with-mailspool=/var/mail \
|
---|
| 72 | --enable-read-both-confs --sysconfdir=/etc &&
|
---|
| 73 | make &&
|
---|
| 74 | make install &&
|
---|
| 75 | mv /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a /usr/lib &&
|
---|
| 76 | ln -sf ../../lib/libpam.so.&Linux_PAM-version; /usr/lib/libpam.so &&
|
---|
| 77 | ln -sf ../../lib/libpam_misc.so.&Linux_PAM-version; /usr/lib/libpam_misc.so &&
|
---|
| 78 | ln -sf ../../lib/libpamc.so.&Linux_PAM-version; /usr/lib/libpamc.so</command></userinput></screen>
|
---|
| 79 |
|
---|
| 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2>
|
---|
| 83 | <title>Command explanations</title>
|
---|
| 84 |
|
---|
[d140e26] | 85 | <para><command>autoconf</command>: This is necessary because the patch
|
---|
[2197589] | 86 | changes where <acronym>PAM</acronym> looks for the
|
---|
| 87 | <application>cracklib</application> libraries, requiring regeneration of the
|
---|
| 88 | configure script.</para>
|
---|
[b4b71892] | 89 |
|
---|
| 90 | <para><option>--enable-static-libpam</option>: This switch builds
|
---|
| 91 | static <acronym>PAM</acronym> libraries as well as the dynamic libraries.</para>
|
---|
| 92 |
|
---|
| 93 | <para><parameter>--with-mailspool=/var/mail</parameter>: This switch makes
|
---|
| 94 | the mailspool directory <acronym>FHS</acronym> compliant.</para>
|
---|
| 95 |
|
---|
| 96 | <para><option>--enable-read-both-confs</option>: This switch lets the local
|
---|
| 97 | administrator choose which configuration file setup to use.</para>
|
---|
| 98 |
|
---|
| 99 | <para><command>mv /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a
|
---|
| 100 | /usr/lib</command>: This command moves the static libraries to
|
---|
[d140e26] | 101 | <filename>/usr/lib</filename> to comply with <acronym>FHS</acronym>
|
---|
| 102 | guidelines.</para>
|
---|
[b4b71892] | 103 |
|
---|
| 104 | </sect2>
|
---|
| 105 |
|
---|
| 106 | <sect2>
|
---|
| 107 | <title>Configuring <application>Linux-<acronym>PAM</acronym></application>
|
---|
| 108 | </title>
|
---|
| 109 |
|
---|
| 110 | <sect3><title>Config files</title>
|
---|
[2197589] | 111 | <para><filename>/etc/pam.d/*</filename> or <filename>/etc/pam.conf</filename>
|
---|
[b4b71892] | 112 | </para></sect3>
|
---|
| 113 |
|
---|
| 114 | <sect3><title>Configuration Information</title>
|
---|
| 115 |
|
---|
[2197589] | 116 | <para>Configuration information is placed in
|
---|
| 117 | <filename class='directory'>/etc/pam.d/</filename> or
|
---|
[b4b71892] | 118 | <filename>/etc/pam.conf</filename> depending on user preference. Below are
|
---|
| 119 | example files of each type:</para>
|
---|
| 120 |
|
---|
| 121 | <screen># Begin /etc/pam.d/other
|
---|
| 122 |
|
---|
| 123 | auth required pam_unix.so nullok
|
---|
| 124 | account required pam_unix.so
|
---|
| 125 | session required pam_unix.so
|
---|
| 126 | password required pam_unix.so nullok
|
---|
| 127 |
|
---|
| 128 | # End /etc/pam.d/other
|
---|
| 129 |
|
---|
| 130 | # Begin /etc/pam.conf
|
---|
| 131 |
|
---|
| 132 | other auth required pam_unix.so nullok
|
---|
| 133 | other account required pam_unix.so
|
---|
| 134 | other session required pam_unix.so
|
---|
| 135 | other password required pam_unix.so nullok
|
---|
| 136 |
|
---|
| 137 | # End /etc/pam.conf</screen>
|
---|
| 138 |
|
---|
| 139 | <para>The <application><acronym>PAM</acronym></application> man page
|
---|
| 140 | (<command>man pam</command>) provides a good starting point for descriptions
|
---|
| 141 | of fields and allowable entries. The
|
---|
| 142 | <ulink url="http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam.html">
|
---|
| 143 | Linux-PAM guide for system administrators</ulink>
|
---|
| 144 | is recommended for further reading.</para>
|
---|
| 145 |
|
---|
[14d6b3e0] | 146 | <para>Refer to
|
---|
| 147 | <ulink url="http://www.kernel.org/pub/linux/libs/pam/modules.html"/>
|
---|
[b4b71892] | 148 | for a list of various modules available.</para>
|
---|
| 149 |
|
---|
| 150 | </sect3>
|
---|
| 151 |
|
---|
| 152 | </sect2>
|
---|
| 153 |
|
---|
| 154 | <sect2>
|
---|
| 155 | <title>Contents</title>
|
---|
| 156 |
|
---|
| 157 |
|
---|
[4ede7d3] | 158 | <segmentedlist>
|
---|
| 159 | <segtitle>Installed Program</segtitle>
|
---|
| 160 | <segtitle>Installed Libraries</segtitle>
|
---|
| 161 | <segtitle>Installed Directory</segtitle>
|
---|
| 162 | <seglistitem>
|
---|
| 163 | <seg>unix_chkpwd and pam_tally</seg>
|
---|
[01c28ceb] | 164 | <seg>libpam.so, libpamc.so and libpma_misc.so</seg>
|
---|
[4ede7d3] | 165 | <seg>/lib/security</seg>
|
---|
| 166 | </seglistitem>
|
---|
| 167 | </segmentedlist>
|
---|
| 168 |
|
---|
| 169 | <variablelist>
|
---|
| 170 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 171 | <?dbfo list-presentation="list"?>
|
---|
| 172 |
|
---|
| 173 | <varlistentry id="unix_chkpwd">
|
---|
| 174 | <term><command>unix_chkpwd</command></term>
|
---|
| 175 | <listitem><para>checks user passwords that are stored
|
---|
| 176 | in read protected databases.</para>
|
---|
| 177 | <indexterm zone="Linux_PAM unix_chkpwd">
|
---|
| 178 | <primary sortas="b-unix_chkpwd">unix_chkpwd</primary></indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
| 182 | <varlistentry id="libpam">
|
---|
| 183 | <term><filename class='libraryfile'>libpam.so</filename></term>
|
---|
| 184 | <listitem><para> provide the interfaces between applications and the <acronym>PAM</acronym> modules.</para>
|
---|
| 185 | <indexterm zone="Linux_PAM libpam">
|
---|
| 186 | <primary sortas="c-libpam">libpam.so</primary></indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
| 189 | </variablelist>
|
---|
[b4b71892] | 190 |
|
---|
| 191 | </sect2>
|
---|
| 192 |
|
---|
[3c52f859] | 193 | </sect1>
|
---|
| 194 |
|
---|