source: postlfs/security/linux-pam.xml@ d7d5d8a3

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d7d5d8a3 was ccb8b2d, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated to Linux-PAM-0.99.2.0. Note that many of the installation commands have changed

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

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