mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 15:12:11 +08:00
Tagged linux_pam.xml
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4202 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
71072bbe9e
commit
c7eb655265
@ -13,165 +13,182 @@
|
||||
]>
|
||||
|
||||
<sect1 id="Linux_PAM" xreflabel="Linux-PAM-&Linux_PAM-version;">
|
||||
<sect1info>
|
||||
<othername>$LastChangedBy$</othername>
|
||||
<date>$Date$</date>
|
||||
</sect1info>
|
||||
<?dbhtml filename="linux_pam.html"?>
|
||||
<title>Linux-PAM-&Linux_PAM-version;</title>
|
||||
<indexterm zone="Linux_PAM">
|
||||
<primary sortas="a-PAM_linux">PAM(Linux)</primary></indexterm>
|
||||
<?dbhtml filename="linux_pam.html"?>
|
||||
|
||||
<sect2>
|
||||
<title>Introduction to <application>Linux-<acronym>PAM</acronym></application>
|
||||
</title>
|
||||
<sect1info>
|
||||
<othername>$LastChangedBy$</othername>
|
||||
<date>$Date$</date>
|
||||
</sect1info>
|
||||
|
||||
<para>The <application>Linux-<acronym>PAM</acronym></application> package
|
||||
contains Pluggable Authentication Modules. This is useful to enable the local
|
||||
system administrator to choose how applications authenticate users.</para>
|
||||
<title>Linux-PAM-&Linux_PAM-version;</title>
|
||||
|
||||
<sect3><title>Package information</title>
|
||||
<itemizedlist spacing='compact'>
|
||||
<listitem><para>Download (HTTP): <ulink
|
||||
url="&Linux_PAM-download-http;"/></para></listitem>
|
||||
<listitem><para>Download (FTP): <ulink
|
||||
url="&Linux_PAM-download-ftp;"/></para></listitem>
|
||||
<listitem><para>Download MD5 sum: &Linux_PAM-md5sum;</para></listitem>
|
||||
<listitem><para>Download size: &Linux_PAM-size;</para></listitem>
|
||||
<listitem><para>Estimated disk space required:
|
||||
&Linux_PAM-buildsize;</para></listitem>
|
||||
<listitem><para>Estimated build time:
|
||||
&Linux_PAM-time;</para></listitem></itemizedlist>
|
||||
</sect3>
|
||||
<indexterm zone="Linux_PAM">
|
||||
<primary sortas="a-PAM_linux">PAM(Linux)</primary>
|
||||
</indexterm>
|
||||
|
||||
<sect3><title>Additional downloads</title>
|
||||
<sect4><title>Patches</title>
|
||||
<itemizedlist spacing='compact'>
|
||||
<listitem><para>Required patch: <ulink
|
||||
url="&patch-root;/Linux-PAM-&Linux_PAM-version;-linkage-2.patch"/></para>
|
||||
</listitem></itemizedlist>
|
||||
</sect4>
|
||||
<sect2 role="package">
|
||||
<title>Introduction to Linux-PAM</title>
|
||||
|
||||
<sect4><title>Documentation</title>
|
||||
<itemizedlist spacing='compact'>
|
||||
<listitem><para>Optional documentation: <ulink
|
||||
url="http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-0.78-docs.tar.bz2"/>
|
||||
</para></listitem>
|
||||
</itemizedlist>
|
||||
</sect4>
|
||||
</sect3>
|
||||
<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>
|
||||
|
||||
<sect3><title><application>Linux-<acronym>PAM</acronym></application>
|
||||
dependencies</title>
|
||||
<sect4><title>Recommended</title>
|
||||
<para><xref linkend="cracklib"/></para>
|
||||
</sect4>
|
||||
<bridgehead renderas="sect3">Package Information</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>Download (HTTP): <ulink url="&Linux_PAM-download-http;"/></para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download (FTP): <ulink url="&Linux_PAM-download-ftp;"/></para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download MD5 sum: &Linux_PAM-md5sum;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download size: &Linux_PAM-size;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Estimated disk space required: &Linux_PAM-buildsize;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Estimated build time: &Linux_PAM-time;</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<sect4><title>Optional</title>
|
||||
<para><ulink
|
||||
url="http://sourceforge.net/projects/sgmltools-lite/">sgmltools-lite</ulink>
|
||||
and <xref linkend="db"/> (for pam_userdb module)</para>
|
||||
</sect4>
|
||||
</sect3>
|
||||
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
||||
<itemizedlist spacing='compact'>
|
||||
<title>Patches</title>
|
||||
<listitem>
|
||||
<para>Required patch: <ulink
|
||||
url="&patch-root;/Linux-PAM-&Linux_PAM-version;-linkage-2.patch"/></para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
</sect2>
|
||||
<itemizedlist spacing='compact'>
|
||||
<title>Documentation</title>
|
||||
<listitem>
|
||||
<para>Optional documentation: <ulink
|
||||
url="http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-0.78-docs.tar.bz2"/>
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<sect2>
|
||||
<title>Installation of
|
||||
<application>Linux-<acronym>PAM</acronym></application></title>
|
||||
<bridgehead renderas="sect3">Linux-PAM Dependencies</bridgehead>
|
||||
|
||||
<para>Install <application>Linux-<acronym>PAM</acronym></application> by
|
||||
running the following commands:</para>
|
||||
<bridgehead renderas="sect4">Recommended</bridgehead>
|
||||
<para><xref linkend="cracklib"/></para>
|
||||
|
||||
<screen><userinput><command>patch -Np1 -i ../Linux-PAM-&Linux_PAM-version;-linkage-2.patch &&
|
||||
<bridgehead renderas="sect4">Optional</bridgehead>
|
||||
<para><ulink
|
||||
url="http://sourceforge.net/projects/sgmltools-lite/">sgmltools-lite</ulink>
|
||||
and <xref linkend="db"/> (for pam_userdb module)</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="installation">
|
||||
<title>Installation of Linux-PAM</title>
|
||||
|
||||
<para>Install <application>Linux-PAM</application> by
|
||||
running the following commands:</para>
|
||||
|
||||
<screen><userinput>patch -Np1 -i ../Linux-PAM-&Linux_PAM-version;-linkage-2.patch &&
|
||||
autoconf &&
|
||||
sed -i 's/(mandir)/(MANDIR)/g' modules/Simple.Rules &&
|
||||
./configure --enable-static-libpam --with-mailspool=/var/mail \
|
||||
--enable-read-both-confs --sysconfdir=/etc &&
|
||||
make</command></userinput></screen>
|
||||
make</userinput></screen>
|
||||
|
||||
<para>If you downloaded the documentation and wish to install it, unpack the
|
||||
tarball into the <filename class='directory'>doc</filename> directory:</para>
|
||||
<para>If you downloaded the documentation and wish to install it, unpack the
|
||||
tarball into the <filename class='directory'>doc</filename> directory:</para>
|
||||
|
||||
<screen><userinput><command>tar -jxf ../Linux-PAM-0.78-docs.tar.bz2 -C doc</command></userinput></screen>
|
||||
<screen><userinput>tar -jxf ../Linux-PAM-0.78-docs.tar.bz2 -C doc</userinput></screen>
|
||||
|
||||
<para>Now, as the root user:</para>
|
||||
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
||||
|
||||
<screen><userinput role='root'><command>make install &&
|
||||
<screen role="root"><userinput>make install &&
|
||||
mv -v /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a /usr/lib &&
|
||||
rm -v /lib/libpam{,c,_misc}.so &&
|
||||
ln -v -sf ../../lib/libpam.so.&Linux_PAM-version; /usr/lib/libpam.so &&
|
||||
ln -v -sf ../../lib/libpam_misc.so.&Linux_PAM-version; /usr/lib/libpam_misc.so &&
|
||||
ln -v -sf ../../lib/libpamc.so.&Linux_PAM-version; /usr/lib/libpamc.so</command></userinput></screen>
|
||||
ln -v -sf ../../lib/libpamc.so.&Linux_PAM-version; /usr/lib/libpamc.so</userinput></screen>
|
||||
|
||||
<para>Install the documentation using the following commands:</para>
|
||||
<para>Install the documentation using the following commands:</para>
|
||||
|
||||
<screen><userinput role='root'><command>install -v -d -m755 /usr/share/doc/Linux-PAM-&Linux_PAM-version; &&
|
||||
<screen role="root"><userinput>install -v -d -m755 /usr/share/doc/Linux-PAM-&Linux_PAM-version; &&
|
||||
for DOCTYPE in html ps specs txts
|
||||
do
|
||||
cp -v -R doc/$DOCTYPE /usr/share/doc/Linux-PAM-&Linux_PAM-version;
|
||||
done</command></userinput></screen>
|
||||
done</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Command explanations</title>
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para><command>autoconf</command>: This is necessary because the patch
|
||||
changes where <acronym>PAM</acronym> looks for the
|
||||
<application>cracklib</application> libraries, requiring regeneration of the
|
||||
configure script.</para>
|
||||
<para><command>autoconf</command>: This is necessary because the
|
||||
patch changes where PAM looks for the <application>cracklib</application>
|
||||
libraries, requiring regeneration of the configure script.</para>
|
||||
|
||||
<para><command>sed -i 's/(mandir)/(MANDIR)/g'
|
||||
modules/Simple.Rules</command>: This command puts the module manpages
|
||||
with the rest of the manpages in
|
||||
<filename>/usr/share/man</filename>.</para>
|
||||
<para><command>sed -i 's/(mandir)/(MANDIR)/g' modules/Simple.Rules</command>:
|
||||
This command puts the module manpages with the rest of the manpages in
|
||||
<filename>/usr/share/man</filename>.</para>
|
||||
|
||||
<para><option>--enable-static-libpam</option>: This switch builds
|
||||
static <acronym>PAM</acronym> libraries as well as the dynamic libraries.</para>
|
||||
<para><parameter>--enable-static-libpam</parameter>: This switch builds
|
||||
static PAM libraries as well as the dynamic libraries.</para>
|
||||
|
||||
<para><parameter>--with-mailspool=/var/mail</parameter>: This switch makes
|
||||
the mailspool directory <acronym>FHS</acronym> compliant.</para>
|
||||
<para><parameter>--with-mailspool=/var/mail</parameter>: This switch
|
||||
makes the mailspool directory FHS compliant.</para>
|
||||
|
||||
<para><option>--enable-read-both-confs</option>: This switch lets the local
|
||||
administrator choose which configuration file setup to use.</para>
|
||||
<para><parameter>--enable-read-both-confs</parameter>: This switch lets
|
||||
the local administrator choose which configuration file setup to use.</para>
|
||||
|
||||
<para><command>mv -v /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a
|
||||
/usr/lib</command>: This command moves the static libraries to
|
||||
<filename>/usr/lib</filename> to comply with <acronym>FHS</acronym>
|
||||
guidelines.</para>
|
||||
<para><command>mv -v /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a
|
||||
/usr/lib</command>: This command moves the static libraries to
|
||||
<filename class='directory'>/usr/lib</filename> to comply with FHS
|
||||
guidelines.</para>
|
||||
|
||||
<para><command>rm -v /lib/libpam{,c,_misc}.so; ln -v -sf ...
|
||||
/usr/lib/...</command>: These commands move the
|
||||
<filename class='symlink'>.so</filename> symlinks from
|
||||
<filename class='directory'>/lib</filename> to
|
||||
<filename class='directory'>/usr/lib</filename>.</para>
|
||||
<para><command>rm -v /lib/libpam{,c,_misc}.so; ln -v -sf ...
|
||||
/usr/lib/...</command>: These commands move the
|
||||
<filename class='symlink'>.so</filename> symlinks from
|
||||
<filename class='directory'>/lib</filename> to
|
||||
<filename class='directory'>/usr/lib</filename>.</para>
|
||||
|
||||
</sect2>
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Configuring
|
||||
<application>Linux-<acronym>PAM</acronym></application></title>
|
||||
<sect2 role="configuration">
|
||||
<title>Configuring Linux-PAM</title>
|
||||
|
||||
<sect3 id="pam-config"><title>Config files</title>
|
||||
<para><filename>/etc/security/*</filename>, and
|
||||
<filename>/etc/pam.d/*</filename> or <filename>/etc/pam.conf</filename></para>
|
||||
<indexterm zone="Linux_PAM pam-config">
|
||||
<primary sortas="e-etc-security">/etc/security/*</primary></indexterm>
|
||||
<indexterm zone="Linux_PAM pam-config">
|
||||
<primary sortas="e-etc-pam.d">/etc/pam.d/*</primary></indexterm>
|
||||
<indexterm zone="Linux_PAM pam-config">
|
||||
<primary sortas="e-etc-pam.conf">/etc/pam.conf</primary></indexterm>
|
||||
</sect3>
|
||||
<sect3 id="pam-config">
|
||||
<title>Config Files</title>
|
||||
|
||||
<sect3><title>Configuration Information</title>
|
||||
<para><filename>/etc/security/*</filename> and
|
||||
<filename>/etc/pam.d/*</filename> or
|
||||
<filename>/etc/pam.conf</filename></para>
|
||||
|
||||
<para>Configuration information is placed in
|
||||
<filename class='directory'>/etc/pam.d/</filename> or
|
||||
<filename>/etc/pam.conf</filename> depending on user preference. Below are
|
||||
example files of each type:</para>
|
||||
<indexterm zone="Linux_PAM pam-config">
|
||||
<primary sortas="e-etc-security">/etc/security/*</primary>
|
||||
</indexterm>
|
||||
|
||||
<screen># Begin /etc/pam.d/other
|
||||
<indexterm zone="Linux_PAM pam-config">
|
||||
<primary sortas="e-etc-pam.d">/etc/pam.d/*</primary>
|
||||
</indexterm>
|
||||
|
||||
<indexterm zone="Linux_PAM pam-config">
|
||||
<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
|
||||
<filename>/etc/pam.conf</filename> depending on user preference.
|
||||
Below are example files of each type:</para>
|
||||
|
||||
<screen><literal># Begin /etc/pam.d/other
|
||||
|
||||
auth required pam_unix.so nullok
|
||||
account required pam_unix.so
|
||||
@ -187,72 +204,84 @@ other account required pam_unix.so
|
||||
other session required pam_unix.so
|
||||
other password required pam_unix.so nullok
|
||||
|
||||
# End /etc/pam.conf</screen>
|
||||
# End /etc/pam.conf</literal></screen>
|
||||
|
||||
<para>The <application><acronym>PAM</acronym></application> man page
|
||||
(<command>man pam</command>) provides a good starting point for descriptions
|
||||
of fields and allowable entries. The
|
||||
<ulink url="http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam.html">
|
||||
Linux-PAM guide for system administrators</ulink>
|
||||
is recommended for further reading.</para>
|
||||
<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
|
||||
url="http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam.html">
|
||||
Linux-PAM guide for system administrators</ulink>
|
||||
is recommended for further reading.</para>
|
||||
|
||||
<para>Refer to
|
||||
<ulink url="http://www.kernel.org/pub/linux/libs/pam/modules.html"/>
|
||||
for a list of various modules available.</para>
|
||||
<para>Refer to <ulink
|
||||
url="http://www.kernel.org/pub/linux/libs/pam/modules.html"/>
|
||||
for a list of various modules available.</para>
|
||||
|
||||
<note><para>You should now reinstall the <xref linkend="shadow"/>
|
||||
package.</para></note>
|
||||
</sect3>
|
||||
<note>
|
||||
<para>You should now reinstall the <xref linkend="shadow"/>
|
||||
package.</para>
|
||||
</note>
|
||||
|
||||
</sect2>
|
||||
</sect3>
|
||||
|
||||
<sect2>
|
||||
<title>Contents</title>
|
||||
</sect2>
|
||||
|
||||
<segmentedlist>
|
||||
<segtitle>Installed Programs</segtitle>
|
||||
<segtitle>Installed Libraries</segtitle>
|
||||
<segtitle>Installed Directories</segtitle>
|
||||
<seglistitem>
|
||||
<seg>unix_chkpwd and pam_tally</seg>
|
||||
<seg>libpam.[so,a], libpamc.[so,a] and libpam_misc.[so,a]</seg>
|
||||
<seg>/etc/pam.d, /etc/security, /lib/security and /usr/include/security</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
<sect2 role="content">
|
||||
<title>Contents</title>
|
||||
|
||||
<variablelist>
|
||||
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
||||
<?dbfo list-presentation="list"?>
|
||||
<segmentedlist>
|
||||
<segtitle>Installed Programs</segtitle>
|
||||
<segtitle>Installed Libraries</segtitle>
|
||||
<segtitle>Installed Directories</segtitle>
|
||||
|
||||
<varlistentry id="unix_chkpwd">
|
||||
<term><command>unix_chkpwd</command></term>
|
||||
<listitem><para>checks user passwords that are stored
|
||||
in read protected databases.</para>
|
||||
<indexterm zone="Linux_PAM unix_chkpwd">
|
||||
<primary sortas="b-unix_chkpwd">unix_chkpwd</primary></indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<seglistitem>
|
||||
<seg>unix_chkpwd and pam_tally</seg>
|
||||
<seg>libpam.[so,a], libpamc.[so,a], and libpam_misc.[so,a]</seg>
|
||||
<seg>/etc/pam.d, /etc/security, /lib/security, and
|
||||
/usr/include/security</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
|
||||
<varlistentry id="pam_tally">
|
||||
<term><command>pam_tally</command></term>
|
||||
<listitem><para>is used to view or manipulate the <filename>faillog</filename>
|
||||
file.</para>
|
||||
<indexterm zone="Linux_PAM pam_tally">
|
||||
<primary sortas="b-pam_tally">pam_tally</primary></indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<variablelist>
|
||||
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
||||
<?dbfo list-presentation="list"?>
|
||||
<?dbhtml list-presentation="table"?>
|
||||
|
||||
<varlistentry id="libpam">
|
||||
<term><filename class='libraryfile'>libpam.[so,a]</filename></term>
|
||||
<listitem><para>provides the interfaces between applications and the
|
||||
<acronym>PAM</acronym> modules.</para>
|
||||
<indexterm zone="Linux_PAM libpam">
|
||||
<primary sortas="c-libpam">libpam.[so,a]</primary></indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
<varlistentry id="unix_chkpwd">
|
||||
<term><command>unix_chkpwd</command></term>
|
||||
<listitem>
|
||||
<para>checks user passwords that are stored
|
||||
in read protected databases.</para>
|
||||
<indexterm zone="Linux_PAM unix_chkpwd">
|
||||
<primary sortas="b-unix_chkpwd">unix_chkpwd</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</sect2>
|
||||
<varlistentry id="pam_tally">
|
||||
<term><command>pam_tally</command></term>
|
||||
<listitem>
|
||||
<para>is used to view or manipulate the <filename>faillog</filename>
|
||||
file.</para>
|
||||
<indexterm zone="Linux_PAM pam_tally">
|
||||
<primary sortas="b-pam_tally">pam_tally</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="libpam">
|
||||
<term><filename class='libraryfile'>libpam.[so,a]</filename></term>
|
||||
<listitem>
|
||||
<para>provides the interfaces between applications and the
|
||||
PAM modules.</para>
|
||||
<indexterm zone="Linux_PAM libpam">
|
||||
<primary sortas="c-libpam">libpam.[so,a]</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user