2004-06-10 13:47:11 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-10 13:47:11 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2009-02-16 01:59:51 +08:00
|
|
|
<!ENTITY linux-pam-download-http "http://www.kernel.org/pub/linux/libs/pam/library/Linux-PAM-&linux-pam-version;.tar.bz2">
|
|
|
|
<!ENTITY linux-pam-download-ftp "ftp://ftp.kernel.org/pub/linux/libs/pam/library/Linux-PAM-&linux-pam-version;.tar.bz2">
|
2010-11-02 21:44:52 +08:00
|
|
|
<!ENTITY linux-pam-md5sum "6db7fcb5db6253350e3a4648ceac40e7">
|
2009-07-29 03:57:16 +08:00
|
|
|
<!ENTITY linux-pam-size "1.1 MB">
|
2010-11-02 21:44:52 +08:00
|
|
|
<!ENTITY linux-pam-buildsize "23 MB (includes installing the optional documentation)">
|
|
|
|
<!ENTITY linux-pam-time "0.4 SBU">
|
2009-02-16 01:59:51 +08:00
|
|
|
|
|
|
|
<!ENTITY linux-pam-docs-download "http://www.kernel.org/pub/linux/libs/pam/documentation/Linux-PAM-&linux-pam-version;-docs.tar.bz2">
|
2010-11-02 21:44:52 +08:00
|
|
|
<!ENTITY linux-pam-docs-md5sum "83bb379cde2f1585833035fb378fab95">
|
|
|
|
<!ENTITY linux-pam-docs-size "495 KB">
|
2004-06-10 13:47:11 +08:00
|
|
|
]>
|
|
|
|
|
2005-11-29 12:38:04 +08:00
|
|
|
<sect1 id="linux-pam" xreflabel="Linux-PAM-&linux-pam-version;">
|
|
|
|
<?dbhtml filename="linux-pam.html"?>
|
2005-05-14 19:21:04 +08:00
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
2005-11-29 12:38:04 +08:00
|
|
|
<title>Linux-PAM-&linux-pam-version;</title>
|
2005-05-14 19:21:04 +08:00
|
|
|
|
2005-11-29 12:38:04 +08:00
|
|
|
<indexterm zone="linux-pam">
|
|
|
|
<primary sortas="a-Linux-PAM">Linux-PAM</primary>
|
2005-05-14 19:21:04 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Linux-PAM</title>
|
|
|
|
|
|
|
|
<para>The <application>Linux-PAM</application> package contains
|
|
|
|
Pluggable Authentication Modules. This is useful to enable the
|
|
|
|
local system administrator to choose how applications authenticate
|
|
|
|
users.</para>
|
|
|
|
|
2010-11-02 21:44:52 +08:00
|
|
|
<para>&lfssvn_checked;20101029&lfssvn_checked2;</para>
|
2009-07-29 04:28:40 +08:00
|
|
|
|
2005-05-14 19:21:04 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2005-11-29 12:38:04 +08:00
|
|
|
<para>Download (HTTP): <ulink url="&linux-pam-download-http;"/></para>
|
2005-05-14 19:21:04 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2005-11-29 12:38:04 +08:00
|
|
|
<para>Download (FTP): <ulink url="&linux-pam-download-ftp;"/></para>
|
2005-05-14 19:21:04 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2005-11-29 12:38:04 +08:00
|
|
|
<para>Download MD5 sum: &linux-pam-md5sum;</para>
|
2005-05-14 19:21:04 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2005-11-29 12:38:04 +08:00
|
|
|
<para>Download size: &linux-pam-size;</para>
|
2005-05-14 19:21:04 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2005-11-29 12:38:04 +08:00
|
|
|
<para>Estimated disk space required: &linux-pam-buildsize;</para>
|
2005-05-14 19:21:04 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2005-11-29 12:38:04 +08:00
|
|
|
<para>Estimated build time: &linux-pam-time;</para>
|
2005-05-14 19:21:04 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing='compact'>
|
2009-08-01 12:46:25 +08:00
|
|
|
<title>Optional Documentation</title>
|
2005-05-14 19:21:04 +08:00
|
|
|
<listitem>
|
2009-08-01 12:46:25 +08:00
|
|
|
<para>Download (HTTP): <ulink url="&linux-pam-docs-download;"/></para>
|
2009-02-16 01:59:51 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2009-08-01 12:46:25 +08:00
|
|
|
<para>Download MD5 sum: &linux-pam-docs-md5sum;</para>
|
2009-02-16 01:59:51 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size &linux-pam-docs-size;</para>
|
2005-09-10 05:50:49 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2005-05-14 19:21:04 +08:00
|
|
|
<bridgehead renderas="sect3">Linux-PAM Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2009-02-16 01:59:51 +08:00
|
|
|
<para role="optional"><xref linkend="cracklib"/>,
|
2009-07-19 22:13:01 +08:00
|
|
|
<xref linkend="x-window-system"/>,
|
|
|
|
<xref linkend="db"/> (for the pam_userdb module), and
|
2007-02-16 03:14:30 +08:00
|
|
|
<ulink url="http://www.prelude-ids.org/">Prelude</ulink></para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional (To {,Re}build the Documentation)</bridgehead>
|
|
|
|
<para role="optional"><xref linkend="libxslt"/>,
|
|
|
|
<xref linkend="DocBook"/>,
|
|
|
|
<xref linkend="docbook-xsl"/>,
|
|
|
|
<xref linkend="w3m"/>, and
|
|
|
|
<xref linkend="fop"/></para>
|
2005-05-14 19:21:04 +08:00
|
|
|
|
2006-04-11 02:38:22 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/linux-pam"/></para>
|
|
|
|
|
2005-05-14 19:21:04 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Linux-PAM</title>
|
|
|
|
|
2009-02-16 01:59:51 +08:00
|
|
|
<para>If you downloaded the documentation, unpack the tarball by issuing
|
|
|
|
the following command.</para>
|
|
|
|
|
2010-01-01 03:02:01 +08:00
|
|
|
<screen><userinput>tar -xf ../Linux-PAM-&linux-pam-version;-docs.tar.bz2 --strip-components=1</userinput></screen>
|
2005-11-29 14:12:19 +08:00
|
|
|
|
2005-05-14 19:21:04 +08:00
|
|
|
<para>Install <application>Linux-PAM</application> by
|
|
|
|
running the following commands:</para>
|
|
|
|
|
2009-02-16 01:59:51 +08:00
|
|
|
<screen><userinput>./configure --sbindir=/lib/security \
|
2007-02-16 03:14:30 +08:00
|
|
|
--docdir=/usr/share/doc/Linux-PAM-&linux-pam-version; \
|
2009-02-16 01:59:51 +08:00
|
|
|
--enable-read-both-confs &&
|
2005-05-14 19:21:04 +08:00
|
|
|
make</userinput></screen>
|
2005-01-27 09:41:14 +08:00
|
|
|
|
2009-02-16 01:59:51 +08:00
|
|
|
<para>To test the results, a configuration file must be created. This file
|
|
|
|
will be removed after the tests have completed. Ensure there are no errors
|
|
|
|
produced by the tests before continuing the installation. First create the
|
|
|
|
configuration file by issuing the following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>install -v -m755 -d /etc/pam.d &&
|
2007-02-16 03:14:30 +08:00
|
|
|
|
2009-02-16 01:59:51 +08:00
|
|
|
cat > /etc/pam.d/other << "EOF"
|
|
|
|
auth required pam_deny.so
|
|
|
|
account required pam_deny.so
|
|
|
|
password required pam_deny.so
|
|
|
|
session required pam_deny.so
|
|
|
|
EOF</userinput></screen>
|
2006-05-09 19:47:11 +08:00
|
|
|
|
2009-02-16 01:59:51 +08:00
|
|
|
<para>Now run the tests by issuing <command>make check</command>.</para>
|
|
|
|
|
|
|
|
<para>Remove the configuration file created earlier by issuing the
|
|
|
|
following command as the
|
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>rm -rfv /etc/pam.d</userinput></screen>
|
2005-03-23 04:34:39 +08:00
|
|
|
|
2005-05-14 19:21:04 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
2005-01-27 09:41:14 +08:00
|
|
|
|
2005-05-14 19:21:04 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
2006-07-05 00:19:05 +08:00
|
|
|
chmod -v 4755 /lib/security/unix_chkpwd &&
|
2007-09-05 09:00:16 +08:00
|
|
|
|
2005-11-29 14:12:19 +08:00
|
|
|
mv -v /lib/security/pam_tally /sbin &&
|
2007-09-05 09:00:16 +08:00
|
|
|
|
|
|
|
mv -v /lib/libpam{,c,_misc}.la /usr/lib &&
|
|
|
|
sed -i 's| /lib| /usr/lib|' /usr/lib/libpam_misc.la &&
|
|
|
|
|
2007-09-08 04:14:31 +08:00
|
|
|
if [ -L /lib/libpam.so ]; then
|
|
|
|
for LINK in libpam{,c,_misc}.so; do
|
|
|
|
ln -v -sf ../../lib/$(readlink /lib/${LINK}) /usr/lib/${LINK} &&
|
|
|
|
rm -v /lib/${LINK}
|
|
|
|
done
|
|
|
|
fi</userinput></screen>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
2005-05-14 19:21:04 +08:00
|
|
|
</sect2>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
2005-05-14 19:21:04 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
2005-11-29 14:12:19 +08:00
|
|
|
<para><parameter>--sbindir=/lib/security</parameter>: This parameter
|
2009-02-16 01:59:51 +08:00
|
|
|
results in three executables, two of which are not intended to be run from
|
|
|
|
the command line, being installed in the same directory as the PAM modules.
|
2007-09-05 09:00:16 +08:00
|
|
|
The other executable is later moved to the
|
2005-11-29 14:12:19 +08:00
|
|
|
<filename class='directory'>/sbin</filename> directory.</para>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
2007-02-16 03:14:30 +08:00
|
|
|
<para><parameter>--docdir=...</parameter>: This parameter results in
|
2005-11-29 14:12:19 +08:00
|
|
|
the documentation being installed in a versioned directory name.</para>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
2005-11-29 14:12:19 +08:00
|
|
|
<para><parameter>--enable-read-both-confs</parameter>: This parameter
|
|
|
|
allows the local administrator to choose which configuration file setup to
|
|
|
|
use.</para>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
2009-02-16 01:59:51 +08:00
|
|
|
<!-- This appears unnecessary as the xauth module is created even if X
|
|
|
|
has not yet been installed.
|
|
|
|
<para><parameter>-with-xauth=/usr/X11R6/bin/xauth</parameter>: This
|
2008-02-25 14:43:52 +08:00
|
|
|
parameter forces the build of the pam_xauth module, even if xauth is not
|
|
|
|
yet installed. Omit this switch if you have no plans to build
|
|
|
|
<application>Xorg</application>, or modify the path if you intend to
|
2009-02-16 01:59:51 +08:00
|
|
|
install <application>Xorg</application> into a non-standard path.</para> -->
|
2008-02-25 14:43:52 +08:00
|
|
|
|
2006-07-05 00:19:05 +08:00
|
|
|
<para><command>chmod -v 4755 /lib/security/unix_chkpwd</command>:
|
|
|
|
The <command>unix_chkpwd</command> password-helper program must be setuid
|
|
|
|
so that non-<systemitem class="username">root</systemitem> processes can
|
|
|
|
access the shadow-password file.</para>
|
|
|
|
|
2005-11-29 14:12:19 +08:00
|
|
|
<para><command>mv -v /lib/security/pam_tally /sbin</command>: The
|
|
|
|
<command>pam_tally</command> program is designed to be run by the system
|
|
|
|
administrator, possibly in single-user mode, so it is moved to the
|
|
|
|
appropriate directory.</para>
|
|
|
|
|
2007-09-05 09:00:16 +08:00
|
|
|
<para><command>mv -v /lib/libpam{,c,_misc}.la /usr/lib</command>: This
|
|
|
|
command moves the <application>Libtool</application> library files to
|
|
|
|
<filename class='directory'>/usr/lib</filename> as they are expected to
|
|
|
|
reside there.</para>
|
|
|
|
|
|
|
|
<para><command>sed -i 's| /lib| /usr/lib|'
|
|
|
|
/usr/lib/libpam_misc.la</command>: This command corrects an installation
|
|
|
|
reference due to the file being moved in the previous step.</para>
|
|
|
|
|
|
|
|
<para><command>for ...; do ...; done</command>: These commands are used
|
2007-09-05 13:50:44 +08:00
|
|
|
to relocate the <filename class='symlink'>.so</filename> symbolic links
|
|
|
|
into the <filename class='directory'>/usr/lib</filename> directory by
|
|
|
|
cloning and then removing the existing symlinks. Using
|
|
|
|
<command>readlink</command> ensures the new symlinks point at the correct
|
|
|
|
library filenames.</para>
|
2005-02-26 23:46:21 +08:00
|
|
|
|
2005-05-14 19:21:04 +08:00
|
|
|
</sect2>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
2005-05-14 19:21:04 +08:00
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring Linux-PAM</title>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
2005-05-14 19:21:04 +08:00
|
|
|
<sect3 id="pam-config">
|
|
|
|
<title>Config Files</title>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
2005-05-14 19:21:04 +08:00
|
|
|
<para><filename>/etc/security/*</filename> and
|
|
|
|
<filename>/etc/pam.d/*</filename> or
|
|
|
|
<filename>/etc/pam.conf</filename></para>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
2005-11-29 12:38:04 +08:00
|
|
|
<indexterm zone="linux-pam pam-config">
|
2005-05-14 19:21:04 +08:00
|
|
|
<primary sortas="e-etc-security">/etc/security/*</primary>
|
|
|
|
</indexterm>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
2005-11-29 12:38:04 +08:00
|
|
|
<indexterm zone="linux-pam pam-config">
|
2005-05-14 19:21:04 +08:00
|
|
|
<primary sortas="e-etc-pam.d">/etc/pam.d/*</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
2005-11-29 12:38:04 +08:00
|
|
|
<indexterm zone="linux-pam pam-config">
|
2005-05-14 19:21:04 +08:00
|
|
|
<primary sortas="e-etc-pam.conf">/etc/pam.conf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>Configuration information is placed in
|
|
|
|
<filename class='directory'>/etc/pam.d/</filename> or
|
2005-11-29 14:12:19 +08:00
|
|
|
<filename>/etc/pam.conf</filename> depending on system administrator
|
|
|
|
preference. Below are example files of each type:</para>
|
2005-05-14 19:21:04 +08:00
|
|
|
|
|
|
|
<screen><literal># Begin /etc/pam.d/other
|
2004-06-10 13:47:11 +08:00
|
|
|
|
|
|
|
auth required pam_unix.so nullok
|
|
|
|
account required pam_unix.so
|
|
|
|
session required pam_unix.so
|
|
|
|
password required pam_unix.so nullok
|
|
|
|
|
|
|
|
# End /etc/pam.d/other
|
|
|
|
|
|
|
|
# Begin /etc/pam.conf
|
|
|
|
|
|
|
|
other auth required pam_unix.so nullok
|
|
|
|
other account required pam_unix.so
|
|
|
|
other session required pam_unix.so
|
|
|
|
other password required pam_unix.so nullok
|
|
|
|
|
2005-05-14 19:21:04 +08:00
|
|
|
# End /etc/pam.conf</literal></screen>
|
|
|
|
|
|
|
|
<para>The <application>PAM</application> man page
|
|
|
|
(<command>man pam</command>) provides a good starting point for
|
|
|
|
descriptions of fields and allowable entries. The <ulink
|
2007-07-15 07:13:37 +08:00
|
|
|
url="http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/Linux-PAM_SAG.html">
|
2005-11-29 14:12:19 +08:00
|
|
|
Linux-PAM System Administrators' Guide</ulink>
|
|
|
|
is recommended for additional information.</para>
|
2005-05-14 19:21:04 +08:00
|
|
|
|
|
|
|
<para>Refer to <ulink
|
|
|
|
url="http://www.kernel.org/pub/linux/libs/pam/modules.html"/>
|
2009-02-16 01:59:51 +08:00
|
|
|
for a list of various third-party modules available.</para>
|
2005-05-14 19:21:04 +08:00
|
|
|
|
2005-11-29 14:12:19 +08:00
|
|
|
<important>
|
2005-05-14 19:21:04 +08:00
|
|
|
<para>You should now reinstall the <xref linkend="shadow"/>
|
|
|
|
package.</para>
|
2005-11-29 14:12:19 +08:00
|
|
|
</important>
|
2005-05-14 19:21:04 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
2005-11-29 14:12:19 +08:00
|
|
|
<segtitle>Installed Program</segtitle>
|
2005-05-14 19:21:04 +08:00
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2005-11-29 14:12:19 +08:00
|
|
|
<seg>pam_tally</seg>
|
2009-02-16 01:59:51 +08:00
|
|
|
<seg>libpam.{so,a}, libpamc.{so,a}, libpam_misc.{so,a} and
|
|
|
|
numerous PAM modules</seg>
|
2010-03-21 22:37:53 +08:00
|
|
|
<seg>/etc/security, /lib/security, /usr/include/security,
|
|
|
|
/usr/share/doc/Linux-PAM-&linux-pam-version;,
|
2009-02-16 01:59:51 +08:00
|
|
|
and /var/run/sepermit</seg>
|
2005-05-14 19:21:04 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="pam_tally">
|
|
|
|
<term><command>pam_tally</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is used to view or manipulate the <filename>faillog</filename>
|
|
|
|
file.</para>
|
2005-11-29 12:38:04 +08:00
|
|
|
<indexterm zone="linux-pam pam_tally">
|
2005-05-14 19:21:04 +08:00
|
|
|
<primary sortas="b-pam_tally">pam_tally</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libpam">
|
2006-04-11 02:38:22 +08:00
|
|
|
<term><filename class='libraryfile'>libpam.{so,a}</filename></term>
|
2005-05-14 19:21:04 +08:00
|
|
|
<listitem>
|
|
|
|
<para>provides the interfaces between applications and the
|
|
|
|
PAM modules.</para>
|
2005-11-29 12:38:04 +08:00
|
|
|
<indexterm zone="linux-pam libpam">
|
2006-04-11 02:38:22 +08:00
|
|
|
<primary sortas="c-libpam">libpam.{so,a}</primary>
|
2005-05-14 19:21:04 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
2002-09-23 00:01:27 +08:00
|
|
|
</sect1>
|