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