source: postlfs/security/linux-pam.xml@ 85feb93

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

Updated to Linux-PAM-0.99.3.0

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

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