source: postlfs/security/linux-pam.xml@ 06be400

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 06be400 was 1d70498f, checked in by Randy McMurchy <randy@…>, 18 years ago

Fixed broken Linux-PAM documentation download URL

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6301 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 11.1 KB
RevLine 
[b4b71892]1<?xml version="1.0" encoding="ISO-8859-1"?>
[ff769b8c]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[b4b71892]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[6603f8b]7 <!ENTITY linux-pam-download-http "http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-&linux-pam-version;.tar.bz2">
[ccb8b2d]8 <!ENTITY linux-pam-download-ftp "ftp://ftp.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-&linux-pam-version;.tar.bz2">
[1ad238d8]9 <!ENTITY linux-pam-md5sum "267ea71253615342261f9fc486d06647">
10 <!ENTITY linux-pam-size "783 KB">
11 <!ENTITY linux-pam-buildsize "19.8 MB">
[ccb8b2d]12 <!ENTITY linux-pam-time "0.5 SBU">
[1d70498f]13 <!ENTITY linux-pam-docs-download "http://www.kernel.org/pub/linux/libs/pam/pre/doc/Linux-PAM-&linux-pam-version;-docs.tar.bz2">
[b4b71892]14]>
15
[6603f8b]16<sect1 id="linux-pam" xreflabel="Linux-PAM-&linux-pam-version;">
17 <?dbhtml filename="linux-pam.html"?>
[c7eb655]18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
[6603f8b]24 <title>Linux-PAM-&linux-pam-version;</title>
[c7eb655]25
[6603f8b]26 <indexterm zone="linux-pam">
27 <primary sortas="a-Linux-PAM">Linux-PAM</primary>
[c7eb655]28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Linux-PAM</title>
32
33 <para>The <application>Linux-PAM</application> package contains
34 Pluggable Authentication Modules. This is useful to enable the
35 local system administrator to choose how applications authenticate
36 users.</para>
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
[6603f8b]41 <para>Download (HTTP): <ulink url="&linux-pam-download-http;"/></para>
[c7eb655]42 </listitem>
43 <listitem>
[6603f8b]44 <para>Download (FTP): <ulink url="&linux-pam-download-ftp;"/></para>
[c7eb655]45 </listitem>
46 <listitem>
[6603f8b]47 <para>Download MD5 sum: &linux-pam-md5sum;</para>
[c7eb655]48 </listitem>
49 <listitem>
[6603f8b]50 <para>Download size: &linux-pam-size;</para>
[c7eb655]51 </listitem>
52 <listitem>
[6603f8b]53 <para>Estimated disk space required: &linux-pam-buildsize;</para>
[c7eb655]54 </listitem>
55 <listitem>
[6603f8b]56 <para>Estimated build time: &linux-pam-time;</para>
[c7eb655]57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
61 <itemizedlist spacing='compact'>
62 <listitem>
[ccb8b2d]63 <para>Optional documentation:
64 <ulink url="&linux-pam-docs-download;"/></para>
[6576f3e]65 </listitem>
66 </itemizedlist>
67
[c7eb655]68 <bridgehead renderas="sect3">Linux-PAM Dependencies</bridgehead>
69
[85feb93]70 <!-- Moved to optional after discussion on BLFS-Dev
71
[c7eb655]72 <bridgehead renderas="sect4">Recommended</bridgehead>
[e19ad480]73 <para role="recommended"><xref linkend="cracklib"/></para>
[c7eb655]74
[85feb93]75 -->
76
[c7eb655]77 <bridgehead renderas="sect4">Optional</bridgehead>
[85feb93]78 <para role="optional"><xref linkend="cracklib"/>,
[3f87e4a]79 <!-- <xref linkend="db"/> (for the pam_userdb module), -->
[85feb93]80 <ulink url="http://www.prelude-ids.org/">Prelude</ulink>, and
[3f87e4a]81 <ulink url="http://sourceforge.net/projects/sgmltools-lite/">sgmltools-lite</ulink></para>
[c7eb655]82
[3597eb6]83 <para condition="html" role="usernotes">User Notes:
84 <ulink url="&blfs-wiki;/linux-pam"/></para>
85
[c7eb655]86 </sect2>
87
88 <sect2 role="installation">
89 <title>Installation of Linux-PAM</title>
90
[ccb8b2d]91 <para>If you downloaded the documentation, unpack the tarball into the
92 <filename class='directory'>doc</filename> directory of the source
93 tree:</para>
94
95<screen><userinput>tar -xf ../Linux-PAM-&linux-pam-version;-docs.tar.bz2 -C doc</userinput></screen>
96
[c7eb655]97 <para>Install <application>Linux-PAM</application> by
98 running the following commands:</para>
99
[ccb8b2d]100<screen><userinput>./configure --libdir=/usr/lib \
101 --sbindir=/lib/security \
102 --enable-securedir=/lib/security \
103 --enable-docdir=/usr/share/doc/Linux-PAM-&linux-pam-version; \
104 --enable-read-both-confs &amp;&amp;
[c7eb655]105make</userinput></screen>
[17fb537e]106
[1ad238d8]107 <para>The test suite will not provide meaningful results until the package
108 has been installed and configured. If, after installing the package and
109 creating a minimum configuration as shown below in the 'other' example,
110 you wish to run the tests, issue <command>make check</command>.</para>
111
112 <tip>
113 <para>Don't delete the <application>Linux-PAM</application> source tree
114 until after you reinstall the <application>Shadow</application> package.
115 The reinstallation of the Shadow package includes much more stringent
116 security for the PAM configuration, and you can run the
117 <application>Linux-PAM</application> test suite after completing the
118 <application>Shadow</application> instructions to test the new setup. All
119 the tests should pass.</para>
120 </tip>
[f691f2b]121
[c7eb655]122 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[17fb537e]123
[c7eb655]124<screen role="root"><userinput>make install &amp;&amp;
[ee05358]125chmod -v 4755 /lib/security/unix_chkpwd &amp;&amp;
[ccb8b2d]126mv -v /lib/security/pam_tally /sbin &amp;&amp;
127mv -v /usr/lib/libpam*.so.0* /lib &amp;&amp;
[1ad238d8]128ln -v -sf ../../lib/libpam.so.0.81.3 /usr/lib/libpam.so &amp;&amp;
[ccb8b2d]129ln -v -sf ../../lib/libpamc.so.0.81.0 /usr/lib/libpamc.so &amp;&amp;
[85feb93]130ln -v -sf ../../lib/libpam_misc.so.0.81.2 /usr/lib/libpam_misc.so</userinput></screen>
[b4b71892]131
[ccb8b2d]132 <para>If you downloaded the documentation, install it using the following
133 command:</para>
[f691f2b]134
[ccb8b2d]135<screen role="root"><userinput>for DOCTYPE in html pdf ps txts
[f691f2b]136do
[6603f8b]137 cp -v -R doc/$DOCTYPE /usr/share/doc/Linux-PAM-&linux-pam-version;
[c7eb655]138done</userinput></screen>
[f691f2b]139
[c7eb655]140 </sect2>
[b4b71892]141
[c7eb655]142 <sect2 role="commands">
143 <title>Command Explanations</title>
[b4b71892]144
[ccb8b2d]145 <para><parameter>--libdir=/usr/lib</parameter>: This parameter results in
146 the libraries being installed in
147 <filename class='directory'>/usr/lib</filename>.</para>
[b4b71892]148
[ccb8b2d]149 <para><parameter>--sbindir=/lib/security</parameter>: This parameter
150 results in two executables, one which is not intended to be run from the
151 command line, being installed in the same directory as the PAM modules.
152 One of the executables is later moved to the
153 <filename class='directory'>/sbin</filename> directory.</para>
[b4b71892]154
[ccb8b2d]155 <para><parameter>--enable-securedir=/lib/security</parameter>: This
156 parameter results in the PAM modules being installed in
157 <filename class='directory'>/lib/security</filename>.</para>
[b4b71892]158
[ccb8b2d]159 <para><parameter>--enable-docdir=...</parameter>: This parameter results in
160 the documentation being installed in a versioned directory name.</para>
[b4b71892]161
[ccb8b2d]162 <para><parameter>--enable-read-both-confs</parameter>: This parameter
163 allows the local administrator to choose which configuration file setup to
164 use.</para>
[b4b71892]165
[ee05358]166 <para><command>chmod -v 4755 /lib/security/unix_chkpwd</command>:
167 The <command>unix_chkpwd</command> password-helper program must be setuid
168 so that non-<systemitem class="username">root</systemitem> processes can
169 access the shadow-password file.</para>
170
[ccb8b2d]171 <para><command>mv -v /lib/security/pam_tally /sbin</command>: The
172 <command>pam_tally</command> program is designed to be run by the system
173 administrator, possibly in single-user mode, so it is moved to the
174 appropriate directory.</para>
175
176 <para><command>mv -v /usr/lib/libpam*.so.0* /lib</command>: This command
177 moves the dynamic libraries to <filename class='directory'>/lib</filename>
178 as they may be required in single user mode.</para>
179
180 <para><command>ln -v -sf ...</command>: These commands recreate the
181 <filename class='symlink'>.so</filename> symlinks as the libraries they
182 pointed to were moved to <filename class='directory'>/lib</filename>.</para>
[aadd9ef]183
[c7eb655]184 </sect2>
[b4b71892]185
[c7eb655]186 <sect2 role="configuration">
187 <title>Configuring Linux-PAM</title>
[b4b71892]188
[c7eb655]189 <sect3 id="pam-config">
190 <title>Config Files</title>
[b4b71892]191
[c7eb655]192 <para><filename>/etc/security/*</filename> and
193 <filename>/etc/pam.d/*</filename> or
194 <filename>/etc/pam.conf</filename></para>
[b4b71892]195
[6603f8b]196 <indexterm zone="linux-pam pam-config">
[c7eb655]197 <primary sortas="e-etc-security">/etc/security/*</primary>
198 </indexterm>
[b4b71892]199
[6603f8b]200 <indexterm zone="linux-pam pam-config">
[c7eb655]201 <primary sortas="e-etc-pam.d">/etc/pam.d/*</primary>
202 </indexterm>
203
[6603f8b]204 <indexterm zone="linux-pam pam-config">
[c7eb655]205 <primary sortas="e-etc-pam.conf">/etc/pam.conf</primary>
206 </indexterm>
207
208 </sect3>
209
210 <sect3>
211 <title>Configuration Information</title>
212
213 <para>Configuration information is placed in
214 <filename class='directory'>/etc/pam.d/</filename> or
[ccb8b2d]215 <filename>/etc/pam.conf</filename> depending on system administrator
216 preference. Below are example files of each type:</para>
[c7eb655]217
218<screen><literal># Begin /etc/pam.d/other
[b4b71892]219
220auth required pam_unix.so nullok
221account required pam_unix.so
222session required pam_unix.so
223password required pam_unix.so nullok
224
225# End /etc/pam.d/other
226
227# Begin /etc/pam.conf
228
229other auth required pam_unix.so nullok
230other account required pam_unix.so
231other session required pam_unix.so
232other password required pam_unix.so nullok
233
[c7eb655]234# End /etc/pam.conf</literal></screen>
235
236 <para>The <application>PAM</application> man page
237 (<command>man pam</command>) provides a good starting point for
238 descriptions of fields and allowable entries. The <ulink
239 url="http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam.html">
[ccb8b2d]240 Linux-PAM System Administrators' Guide</ulink>
241 is recommended for additional information.</para>
[c7eb655]242
243 <para>Refer to <ulink
244 url="http://www.kernel.org/pub/linux/libs/pam/modules.html"/>
245 for a list of various modules available.</para>
246
[ccb8b2d]247 <important>
[c7eb655]248 <para>You should now reinstall the <xref linkend="shadow"/>
249 package.</para>
[ccb8b2d]250 </important>
[c7eb655]251
252 </sect3>
253
254 </sect2>
255
256 <sect2 role="content">
257 <title>Contents</title>
258
259 <segmentedlist>
[ccb8b2d]260 <segtitle>Installed Program</segtitle>
[c7eb655]261 <segtitle>Installed Libraries</segtitle>
262 <segtitle>Installed Directories</segtitle>
263
264 <seglistitem>
[ccb8b2d]265 <seg>pam_tally</seg>
[3597eb6]266 <seg>libpam.{so,a}, libpamc.{so,a}, and libpam_misc.{so,a}</seg>
[ccb8b2d]267 <seg>/etc/pam.d, /etc/security, /lib/security and
[c7eb655]268 /usr/include/security</seg>
269 </seglistitem>
270 </segmentedlist>
271
272 <variablelist>
273 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
274 <?dbfo list-presentation="list"?>
275 <?dbhtml list-presentation="table"?>
276
277 <varlistentry id="pam_tally">
278 <term><command>pam_tally</command></term>
279 <listitem>
280 <para>is used to view or manipulate the <filename>faillog</filename>
281 file.</para>
[6603f8b]282 <indexterm zone="linux-pam pam_tally">
[c7eb655]283 <primary sortas="b-pam_tally">pam_tally</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
288 <varlistentry id="libpam">
[3597eb6]289 <term><filename class='libraryfile'>libpam.{so,a}</filename></term>
[c7eb655]290 <listitem>
291 <para>provides the interfaces between applications and the
292 PAM modules.</para>
[6603f8b]293 <indexterm zone="linux-pam libpam">
[3597eb6]294 <primary sortas="c-libpam">libpam.{so,a}</primary>
[c7eb655]295 </indexterm>
296 </listitem>
297 </varlistentry>
298
299 </variablelist>
300
301 </sect2>
[b4b71892]302
[3c52f859]303</sect1>
Note: See TracBrowser for help on using the repository browser.