source: postlfs/security/libpwquality.xml@ 3f2db3a6

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 3f2db3a6 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 7.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY libpwquality-download-http "https://github.com/libpwquality/libpwquality/releases/download/libpwquality-&libpwquality-version;/libpwquality-&libpwquality-version;.tar.bz2">
8 <!ENTITY libpwquality-download-ftp " ">
9 <!ENTITY libpwquality-md5sum "6b70e355269aef0b9ddb2b9d17936f21">
10 <!ENTITY libpwquality-size "424 KB">
11 <!ENTITY libpwquality-buildsize "5.4 MB">
12 <!ENTITY libpwquality-time "0.1 SBU">
13]>
14
15<sect1 id="libpwquality" xreflabel="libpwquality-&libpwquality-version;">
16 <?dbhtml filename="libpwquality.html"?>
17
18
19 <title>libpwquality-&libpwquality-version;</title>
20
21 <indexterm zone="libpwquality">
22 <primary sortas="a-libpwquality">libpwquality</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to libpwquality</title>
27
28 <para>
29 The <application>libpwquality</application> package provides common
30 functions for password quality checking and also scoring them based on
31 their apparent randomness. The library also provides a function for
32 generating random passwords with good pronounceability.
33 </para>
34
35 &lfs112_checked;
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>
41 Download (HTTP): <ulink url="&libpwquality-download-http;"/>
42 </para>
43 </listitem>
44 <listitem>
45 <para>
46 Download (FTP): <ulink url="&libpwquality-download-ftp;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download MD5 sum: &libpwquality-md5sum;
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download size: &libpwquality-size;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Estimated disk space required: &libpwquality-buildsize;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated build time: &libpwquality-time;
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">libpwquality Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Required</bridgehead>
74 <para role="required">
75 <xref linkend="cracklib"/>
76 </para>
77
78 <bridgehead renderas="sect4">Recommended</bridgehead>
79 <para role="recommended">
80 <xref linkend="linux-pam"/>
81 </para>
82<!-- Do not advertise python 2 since python 3 can be used
83 <bridgehead renderas="sect4">Optional</bridgehead>
84 <para role="optional">
85 <xref linkend="python2"/>
86 </para>
87-->
88 <para condition="html" role="usernotes">User Notes:
89 <ulink url="&blfs-wiki;/libpwquality"/>
90 </para>
91 </sect2>
92
93 <sect2 role="installation">
94 <title>Installation of libpwquality</title>
95
96 <para>
97 Install <application>libpwquality</application> by running the following
98 commands:
99 </para>
100
101<screen><userinput>./configure --prefix=/usr \
102 --disable-static \
103 --with-securedir=/usr/lib/security \
104 --with-python-binary=python3 &amp;&amp;
105make</userinput></screen>
106
107 <para>
108 This package does not come with a test suite.
109 </para>
110
111 <para>
112 Now, as the <systemitem class="username">root</systemitem> user:
113 </para>
114
115<screen role="root"><userinput>make install</userinput></screen>
116
117 </sect2>
118
119 <sect2 role="commands">
120 <title>Command Explanations</title>
121
122 <para>
123 <parameter>--with-python-binary=python3</parameter>: This parameter gives
124 the location of the <application>Python</application> binary. The default
125 is <parameter>python</parameter>, and requires <xref linkend="python2"/>.
126 </para>
127
128 </sect2>
129
130 <sect2 role="configuration">
131 <title>Configuring libpwquality</title>
132
133 <para>
134 <application>libpwquality</application> is intended to be a
135 functional replacement for the now-obsolete
136 <filename>pam_cracklib.so</filename> PAM module. To configure the system
137 to use the <filename>pam_pwquality</filename> module, execute the
138 following commands as the
139 <systemitem class="username">root</systemitem> user:
140 </para>
141
142<screen role="root"><userinput>mv /etc/pam.d/system-password{,.orig} &amp;&amp;
143cat &gt; /etc/pam.d/system-password &lt;&lt; "EOF"
144<literal># Begin /etc/pam.d/system-password
145
146# check new passwords for strength (man pam_pwquality)
147password required pam_pwquality.so authtok_type=UNIX retry=1 difok=1 \
148 minlen=8 dcredit=0 ucredit=0 \
149 lcredit=0 ocredit=0 minclass=1 \
150 maxrepeat=0 maxsequence=0 \
151 maxclassrepeat=0 geoscheck=0 \
152 dictcheck=1 usercheck=1 \
153 enforcing=1 badwords="" \
154 dictpath=/usr/lib/cracklib/pw_dict
155# use sha512 hash for encryption, use shadow, and use the
156# authentication token (chosen password) set by pam_pwquality
157# above (or any previous modules). Also set the number of crypt rounds
158# to the value used in shadow.
159password required pam_unix.so sha512 shadow use_authtok \
160 rounds=500000
161
162# End /etc/pam.d/system-password</literal>
163EOF
164</userinput></screen>
165
166 </sect2>
167
168 <sect2 role="content">
169 <title>Contents</title>
170
171 <segmentedlist>
172 <segtitle>Installed Programs</segtitle>
173 <segtitle>Installed Libraries</segtitle>
174 <segtitle>Installed Directories</segtitle>
175
176 <seglistitem>
177 <seg>
178 pwscore and pwmake
179 </seg>
180 <seg>
181 pam_pwquality.so and libpwquality.so
182 </seg>
183 <seg>
184 None
185 <!-- /etc/security was installed by Linux-PAM -->
186 </seg>
187 </seglistitem>
188 </segmentedlist>
189
190 <variablelist>
191 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
192 <?dbfo list-presentation="list"?>
193 <?dbhtml list-presentation="table"?>
194
195 <varlistentry id="pwmake">
196 <term><command>pwmake</command></term>
197 <listitem>
198 <para>
199 is a simple configurable tool for generating random
200 and relatively easily pronounceable passwords
201 </para>
202 <indexterm zone="libpwquality pwmake">
203 <primary sortas="b-pwmake">pwmake</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="pwscore">
209 <term><command>pwscore</command></term>
210 <listitem>
211 <para>
212 is a simple tool for checking quality of a password
213 </para>
214 <indexterm zone="libpwquality pwscore">
215 <primary sortas="b-pwscore">pwscore</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 <varlistentry id="libpwquality-lib">
221 <term><filename class="libraryfile">libpwquality.so</filename></term>
222 <listitem>
223 <para>
224 contains API functions for checking the password quality
225 </para>
226 <indexterm zone="libpwquality libpwquality-lib">
227 <primary sortas="c-libpwquality">libpwquality.so</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="pam_pwquality">
233 <term><filename class="libraryfile">pam_pwquality.so</filename></term>
234 <listitem>
235 <para>
236 is a <application>Linux PAM</application> module used to perform
237 password quality checking
238 </para>
239 <indexterm zone="libpwquality pam_pwquality">
240 <primary sortas="c-pam_pwquality">pam_pwquality.so</primary>
241 </indexterm>
242 </listitem>
243 </varlistentry>
244
245 </variablelist>
246
247 </sect2>
248
249</sect1>
Note: See TracBrowser for help on using the repository browser.