source: postlfs/security/cracklib.xml@ 42ddc30

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 42ddc30 was 14891a90, checked in by Xi Ruoyao <xry111@…>, 12 months ago

treewide: More "User Notes" clean up

Remove links to pages w/o real contents.

  • Property mode set to 100644
File size: 12.2 KB
RevLine 
[b4b71892]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[b4b71892]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[1b6c879]7 <!ENTITY cracklib-url "https://github.com/cracklib/cracklib/releases/download">
[9912ce81]8
[0b8fb2f]9 <!ENTITY cracklib-download-http "&cracklib-url;/v&cracklib-version;/cracklib-&cracklib-version;.tar.xz">
[306fb0e]10 <!ENTITY cracklib-download-ftp " ">
[0b8fb2f]11 <!ENTITY cracklib-md5sum "a6dfb1766aab43a54e1cbd78abf0a20a">
12 <!ENTITY cracklib-size "452 KB">
[bc1c6f26]13 <!ENTITY cracklib-buildsize "6.8 MB">
[056b5965]14 <!ENTITY cracklib-time "0.1 SBU">
[1f4d911]15
[0b8fb2f]16 <!ENTITY crackdict-download "&cracklib-url;/v&cracklib-version;/cracklib-words-&cracklib-version;.xz">
17 <!ENTITY crackdict-size "4.0 MB">
18 <!ENTITY crackdict-md5sum "f27804022dbf2682a7f7c353317f9a53">
[b4b71892]19]>
20
[8b1b2dc7]21<sect1 id="cracklib" xreflabel="CrackLib-&cracklib-version;">
[9623b6e8]22 <?dbhtml filename="cracklib.html"?>
23
24
[8b1b2dc7]25 <title>CrackLib-&cracklib-version;</title>
[9623b6e8]26
27 <indexterm zone="cracklib">
[8b1b2dc7]28 <primary sortas="a-CrackLib">CrackLib</primary>
[9623b6e8]29 </indexterm>
30
31 <sect2 role="package">
[8b1b2dc7]32 <title>Introduction to CrackLib</title>
[9623b6e8]33
[47274444]34 <para>
35 The <application>CrackLib</application> package contains a
36 library used to enforce strong passwords by comparing user selected
37 passwords to words in chosen word lists.
38 </para>
[9623b6e8]39
[dc1a45e]40 &lfs113_checked;
[5f4181d]41
[9623b6e8]42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
[47274444]45 <para>
46 Download (HTTP): <ulink url="&cracklib-download-http;"/>
47 </para>
[9623b6e8]48 </listitem>
49 <listitem>
[47274444]50 <para>
51 Download (FTP): <ulink url="&cracklib-download-ftp;"/>
52 </para>
[9623b6e8]53 </listitem>
54 <listitem>
[47274444]55 <para>
56 Download MD5 sum: &cracklib-md5sum;
57 </para>
[9623b6e8]58 </listitem>
59 <listitem>
[47274444]60 <para>
61 Download size: &cracklib-size;
62 </para>
[9623b6e8]63 </listitem>
64 <listitem>
[47274444]65 <para>
66 Estimated disk space required: &cracklib-buildsize;
67 </para>
[9623b6e8]68 </listitem>
69 <listitem>
[47274444]70 <para>
71 Estimated build time: &cracklib-time;
72 </para>
[9623b6e8]73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[8f1699f2]77 <itemizedlist spacing="compact">
[0b8fb2f]78 <para>Recommended word list for English-speaking countries:</para>
[9623b6e8]79 <listitem>
[47274444]80 <para>
[0b8fb2f]81 Download (HTTP): <ulink url="&crackdict-download;"/>
82 </para>
83 </listitem>
84 <listitem>
85 <para>
86 Download MD5 sum: &crackdict-md5sum;
87 </para>
88 </listitem>
89 <listitem>
90 <para>
91 Download size: &crackdict-size;;
[47274444]92 </para>
[22861b3]93 </listitem>
[9623b6e8]94 </itemizedlist>
95
[47274444]96 <para>
97 There are additional word lists available for download, e.g., from
[cd29bc9]98 <ulink url="https://wiki.skullsecurity.org/index.php/Passwords"/>.
[47274444]99 <application>CrackLib</application> can utilize as many, or as few word
100 lists you choose to install.
101 </para>
[62494cc]102
[22861b3]103 <important>
[47274444]104 <para>
105 Users tend to base their passwords on regular words of the spoken
106 language, and crackers know that. <application>CrackLib</application>
107 is intended to filter out such bad passwords at the source using a
108 dictionary created from word lists. To accomplish this, the word
109 list(s) for use with <application>CrackLib</application> must be an
110 exhaustive list of words and word-based keystroke combinations likely
111 to be chosen by users of the system as (guessable) passwords.
112 </para>
113
114 <para>
115 The default word list recommended above for downloading mostly
116 satisfies this role in English-speaking countries. In other situations,
117 it may be necessary to download (or even create) additional word lists.
118 </para>
119
120 <para>
121 Note that word lists suitable for spell-checking are not usable
122 as <application>CrackLib</application> word lists in countries with
123 non-Latin based alphabets, because of <quote>word-based keystroke
124 combinations</quote> that make bad passwords.
125 </para>
[22861b3]126 </important>
[5156197]127
[9623b6e8]128 </sect2>
129
130 <sect2 role="installation">
[8b1b2dc7]131 <title>Installation of CrackLib</title>
[4f65b2f]132
[47274444]133 <para>
134 Install <application>CrackLib</application> by running the following
135 commands:
136 </para>
[b4b71892]137
[4b3110c8]138<screen><userinput>autoreconf -fiv &amp;&amp;
[806e763]139
[fb3a93b3]140PYTHON=python3 \
[806e763]141./configure --prefix=/usr \
142 --disable-static \
[2eb2948]143 --with-default-dict=/usr/lib/cracklib/pw_dict &amp;&amp;
[8b1b2dc7]144make</userinput></screen>
[b4b71892]145
[47274444]146 <para>
147 Now, as the <systemitem class="username">root</systemitem> user:
148 </para>
[9623b6e8]149
[2eb2948]150<screen role="root"><userinput>make install</userinput></screen>
[22861b3]151
[47274444]152 <para>
153 Issue the following commands as the
154 <systemitem class="username">root</systemitem> user to install the
155 recommended word list and create the <application>CrackLib</application>
156 dictionary. Other word lists (text based, one word per line) can also be
157 used by simply installing them into
158 <filename class="directory">/usr/share/dict</filename> and adding them
159 to the <command>create-cracklib-dict</command> command.
160 </para>
[22861b3]161
[0b8fb2f]162<screen role="root"><userinput>install -v -m644 -D ../cracklib-words-&cracklib-version;.xz \
163 /usr/share/dict/cracklib-words.xz &amp;&amp;
[806e763]164
[0b8fb2f]165unxz -v /usr/share/dict/cracklib-words.xz &amp;&amp;
166ln -v -sf cracklib-words /usr/share/dict/words &amp;&amp;
167echo $(hostname) >> /usr/share/dict/cracklib-extra-words &amp;&amp;
168install -v -m755 -d /usr/lib/cracklib &amp;&amp;
[806e763]169
170create-cracklib-dict /usr/share/dict/cracklib-words \
[efd93087]171 /usr/share/dict/cracklib-extra-words</userinput></screen>
[8b1b2dc7]172
[47274444]173 <para>
174 If desired, check the proper operation of the library as an
175 unprivileged user by issuing the following command:
176 </para>
[a4440544]177
[e7d4e823]178<screen remap="test"><userinput>make test</userinput></screen>
[9623b6e8]179
[c6bdcb0]180 <important>
[47274444]181 <para>
182 If you are installing <application>CrackLib</application> after
183 your LFS system has been completed and you have the
184 <application>Shadow</application> package installed, you must
185 reinstall <xref linkend="shadow"/> if you wish to provide strong
186 password support on your system. If you are now going to install the
187 <xref linkend="linux-pam"/> package, you may disregard this note as
188 <application>Shadow</application> will be reinstalled after the
189 <application>Linux-PAM</application> installation.
190 </para>
[c6bdcb0]191 </important>
192
[9623b6e8]193 </sect2>
194
195 <sect2 role="commands">
196 <title>Command Explanations</title>
197
[fb3a93b3]198 <para>
199 <command>autoreconf -fiv</command>: The configure script shipped with
200 the package is too old to get the right version string of Python
201 3.10 or later. This command regenerates it with a more recent version
202 of autotools, which fixes the issue.
203 </para>
204
[0f0dc82]205 <para>
206 <envar>PYTHON=python3</envar>: This forces the installation of
207 python bindings for Python 3, even if Python 2 is installed.
208 </para>
[0b8fb2f]209
[47274444]210 <para>
211 <parameter>--with-default-dict=/lib/cracklib/pw_dict</parameter>:
212 This parameter forces the installation of the
213 <application>CrackLib</application> dictionary to the
214 <filename class="directory">/lib</filename> hierarchy.
215 </para>
[8f1699f2]216
217 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
218 href="../../xincludes/static-libraries.xml"/>
[8b1b2dc7]219
[47274444]220 <para>
221 <command>install -v -m644 -D ...</command>: This command creates the
222 <filename class="directory">/usr/share/dict</filename> directory (if it
223 doesn't already exist) and installs the compressed word list there.
224 </para>
225
226 <para>
227 <command>ln -v -s cracklib-words /usr/share/dict/words</command>: The
228 word list is linked to <filename>/usr/share/dict/words</filename> as
229 historically, <filename>words</filename> is the primary word list in the
230 <filename class="directory">/usr/share/dict</filename> directory. Omit
231 this command if you already have a
232 <filename>/usr/share/dict/words</filename> file installed on your system.
233 </para>
234
235 <para>
236 <command>echo $(hostname) >>...</command>: The value of
237 <command>hostname</command> is echoed to a file called
238 <filename>cracklib-extra-words</filename>. This extra file is intended
239 to be a site specific list which includes easy to guess passwords such
240 as company or department names, user names, product names, computer
241 names, domain names, etc.
242 </para>
243
244 <para>
245 <command>create-cracklib-dict ...</command>: This command creates the
246 <application>CrackLib</application> dictionary from the word lists.
247 Modify the command to add any additional word lists you have installed.
248 </para>
[9623b6e8]249
250 </sect2>
251
252 <sect2 role="content">
253 <title>Contents</title>
254
255 <segmentedlist>
256 <segtitle>Installed Programs</segtitle>
257 <segtitle>Installed Libraries</segtitle>
[d80152af]258 <segtitle>Installed Directories</segtitle>
[9623b6e8]259
260 <seglistitem>
[8b1b2dc7]261 <seg>cracklib-check, cracklib-format, cracklib-packer,
[bc1c6f26]262 cracklib-unpacker, cracklib-update, and create-cracklib-dict</seg>
[d456f78c]263
[0f0dc82]264 <seg>libcrack.so and the _cracklib.so
265 (<application>Python</application> module)</seg>
[0d7900a]266
[bc1c6f26]267 <seg>/usr/lib/cracklib, /usr/share/dict and /usr/share/cracklib</seg>
[9623b6e8]268 </seglistitem>
269 </segmentedlist>
270
271 <variablelist>
272 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
273 <?dbfo list-presentation="list"?>
274 <?dbhtml list-presentation="table"?>
275
[efd93087]276 <varlistentry id="cracklib-check">
277 <term><command>cracklib-check</command></term>
278 <listitem>
[47274444]279 <para>
[4c24eb0a]280 is used to determine if a password is strong
[47274444]281 </para>
[efd93087]282 <indexterm zone="cracklib cracklib-check">
283 <primary sortas="b-cracklib-check">cracklib-check</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
[c2de366]288 <varlistentry id="cracklib-format">
289 <term><command>cracklib-format</command></term>
290 <listitem>
[47274444]291 <para>
292 is used to format text files (lowercases all words,
[4c24eb0a]293 removes control characters and sorts the lists)
[47274444]294 </para>
[c2de366]295 <indexterm zone="cracklib cracklib-format">
296 <primary sortas="b-cracklib-format">cracklib-format</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 <varlistentry id="cracklib-packer">
302 <term><command>cracklib-packer</command></term>
303 <listitem>
[47274444]304 <para>
[4c24eb0a]305 creates a database with words read from standard input
[47274444]306 </para>
[c2de366]307 <indexterm zone="cracklib cracklib-packer">
308 <primary sortas="b-cracklib-packer">cracklib-packer</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="cracklib-unpacker">
314 <term><command>cracklib-unpacker</command></term>
315 <listitem>
[47274444]316 <para>
[4c24eb0a]317 displays on standard output the database specified
[47274444]318 </para>
[c2de366]319 <indexterm zone="cracklib cracklib-packer">
320 <primary sortas="b-cracklib-packer">cracklib-packer</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
324
[8b1b2dc7]325 <varlistentry id="create-cracklib-dict">
[0170790e]326 <term><command>create-cracklib-dict</command></term>
[8b1b2dc7]327 <listitem>
[47274444]328 <para>
329 is used to create the <application>CrackLib</application>
[4c24eb0a]330 dictionary from the given word list(s)
[47274444]331 </para>
[8b1b2dc7]332 <indexterm zone="cracklib create-cracklib-dict">
333 <primary sortas="b-create-cracklib-dict">create-cracklib-dict</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
[9623b6e8]338 <varlistentry id="libcrack">
[8f1699f2]339 <term><filename class="libraryfile">libcrack.so</filename></term>
[9623b6e8]340 <listitem>
[47274444]341 <para>
342 provides a fast dictionary lookup method for strong
[4c24eb0a]343 password enforcement
[47274444]344 </para>
[9623b6e8]345 <indexterm zone="cracklib libcrack">
[d456f78c]346 <primary sortas="c-libcrack">libcrack.so</primary>
[9623b6e8]347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 </variablelist>
352
353 </sect2>
[fa48bf3]354
355</sect1>
Note: See TracBrowser for help on using the repository browser.