source: postlfs/security/linux_pam.xml@ b4b71892

10.0 10.1 11.0 6.0 6.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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since b4b71892 was b4b71892, checked in by Bruce Dubbs <bdubbs@…>, 17 years ago

New XML Chapter 4

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

  • Property mode set to 100644
File size: 5.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7
8 <!ENTITY Linux_PAM-download-http "http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-&Linux_PAM-version;.tar.bz2">
9 <!ENTITY Linux_PAM-download-ftp "ftp://ftp.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-&Linux_PAM-version;.tar.bz2">
10 <!ENTITY Linux_PAM-size "332 KB">
11 <!ENTITY Linux_PAM-buildsize "4.1 MB">
12 <!ENTITY Linux_PAM-time "0.07 SBU">
13]>
14
15<sect1 id="Linux_PAM" xreflabel="Linux-PAM-&Linux_PAM-version;">
16<?dbhtml filename="linux_pam.html"?>
17<title>Linux-PAM-&Linux_PAM-version;</title>
18
19<sect2>
20<title>Introduction to <application>Linux-<acronym>PAM</acronym></application>
21</title>
22
23<para>The <application>Linux-<acronym>PAM</acronym></application> package
24contains Pluggable Authentication Modules. This is useful to enable the local
25system administrator to choose how applications authenticate users.</para>
26
27<sect3><title>Package information</title>
28<itemizedlist spacing='compact'>
29<listitem><para>Download (HTTP): <ulink
30url="&Linux_PAM-download-http;"/></para></listitem>
31<listitem><para>Download (FTP): <ulink
32url="&Linux_PAM-download-ftp;"/></para></listitem>
33<listitem><para>Download size: &Linux_PAM-size;</para></listitem>
34<listitem><para>Estimated Disk space required:
35&Linux_PAM-buildsize;</para></listitem>
36<listitem><para>Estimated build time:
37&Linux_PAM-time;</para></listitem></itemizedlist>
38</sect3>
39
40<sect3><title>Additional download</title>
41<itemizedlist spacing='compact'>
42<listitem><para>Required patch:
43<ulink url="&patch-root;/Linux-PAM-0.77-linkage-3.patch"/></para></listitem></itemizedlist>
44</sect3>
45
46<sect3><title><application>Linux-<acronym>PAM</acronym></application> dependencies</title>
47<sect4><title>Optional</title>
48<para><xref linkend="cracklib"/></para></sect4>
49</sect3>
50
51</sect2>
52
53<sect2>
54<title>Installation of <application>Linux-<acronym>PAM</acronym></application>
55</title>
56
57<para>Install <application>Linux-<acronym>PAM</acronym></application> by
58running the following commands:</para>
59
60<screen><userinput><command>patch -Np1 -i ../Linux-PAM-0.77-linkage-3.patch &amp;&amp;
61autoconf &amp;&amp;
62./configure --enable-static-libpam --with-mailspool=/var/mail \
63 --enable-read-both-confs --sysconfdir=/etc &amp;&amp;
64make &amp;&amp;
65make install &amp;&amp;
66mv /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a /usr/lib &amp;&amp;
67ln -sf ../../lib/libpam.so.&Linux_PAM-version; /usr/lib/libpam.so &amp;&amp;
68ln -sf ../../lib/libpam_misc.so.&Linux_PAM-version; /usr/lib/libpam_misc.so &amp;&amp;
69ln -sf ../../lib/libpamc.so.&Linux_PAM-version; /usr/lib/libpamc.so</command></userinput></screen>
70
71</sect2>
72
73
74<sect2>
75<title>Command explanations</title>
76
77<para><command>autoconf</command>: This is necessary as in the patch, we
78change where <acronym>PAM</acronym> looks for the cracklib libs. This
79requires that the configure script be recreated.</para>
80
81<para><option>--enable-static-libpam</option>: This switch builds
82static <acronym>PAM</acronym> libraries as well as the dynamic libraries.</para>
83
84<para><parameter>--with-mailspool=/var/mail</parameter>: This switch makes
85the mailspool directory <acronym>FHS</acronym> compliant.</para>
86
87<para><option>--enable-read-both-confs</option>: This switch lets the local
88administrator choose which configuration file setup to use.</para>
89
90<para><command>mv /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a
91/usr/lib</command>: This command moves the static libraries to
92<filename>/usr/lib</filename> to comply with <acronym>FHS</acronym>.</para>
93
94</sect2>
95
96
97<sect2>
98<title>Configuring <application>Linux-<acronym>PAM</acronym></application>
99</title>
100
101<sect3><title>Config files</title>
102<para><filename>/etc/pam.d</filename> or <filename>/etc/pam.conf</filename>
103</para></sect3>
104
105<sect3><title>Configuration Information</title>
106
107<para>Configuration information is placed in <filename>/etc/pam.d</filename> or
108<filename>/etc/pam.conf</filename> depending on user preference. Below are
109example files of each type:</para>
110
111<screen># Begin /etc/pam.d/other
112
113auth required pam_unix.so nullok
114account required pam_unix.so
115session required pam_unix.so
116password required pam_unix.so nullok
117
118# End /etc/pam.d/other
119
120# Begin /etc/pam.conf
121
122other auth required pam_unix.so nullok
123other account required pam_unix.so
124other session required pam_unix.so
125other password required pam_unix.so nullok
126
127# End /etc/pam.conf</screen>
128
129<para>The <application><acronym>PAM</acronym></application> man page
130(<command>man pam</command>) provides a good starting point for descriptions
131of fields and allowable entries. The
132<ulink url="http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam.html">
133Linux-PAM guide for system administrators</ulink>
134is recommended for further reading.</para>
135
136<para>Refer to <ulink url="http://www.kernel.org/pub/linux/libs/pam/modules.html"/>
137for a list of various modules available.</para>
138
139</sect3>
140
141</sect2>
142
143<sect2>
144<title>Contents</title>
145
146<para>The <application>Linux-<acronym>PAM</acronym></application> package
147contains <command>unix-chkpwd</command> and <filename
148class="libraryfile">libpam</filename>
149libraries.</para>
150
151</sect2>
152
153<sect2><title>Description</title>
154
155<sect3><title>unix-chkpwd</title>
156<para>No description available.</para></sect3>
157
158<sect3><title>libpam libraries</title>
159<para><filename class="libraryfile">libpam</filename> libraries provide the interfaces between
160applications and the modules included with <acronym>PAM</acronym>.</para></sect3>
161
162</sect2>
163
164
165</sect1>
166
Note: See TracBrowser for help on using the repository browser.