source: postlfs/security/linux-pam.xml@ 9f12e36

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 9f12e36 was 9f12e36, checked in by Randy McMurchy <randy@…>, 18 years ago

Removed 'keywordset' blocks and extra spaces from the XML files (note this was by accident as I meant to do just in the gnome directory but I was in the root of BOOK when I ran the script, but this was going to happen anyway so I don't think it is a big deal)

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

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