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