source: postlfs/security/cracklib.xml@ 3597eb6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 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/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 3597eb6 was 3597eb6, checked in by Randy McMurchy <randy@…>, 18 years ago

Added the 'User Notes' wiki link to each package page; changed all instances of .[so,a] to .{so,a} (brackets changed to braces); changed all replaceable tags to use angle brackets instead of square brackets to encapsulate the text - commit #7

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

  • Property mode set to 100644
File size: 10.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY cracklib-download-http "http://prdownloads.sourceforge.net/cracklib/cracklib-&cracklib-version;.tar.gz">
8 <!ENTITY cracklib-download-ftp " ">
9 <!ENTITY cracklib-http-md5sum "9a8c9eb26b48787c84024ac779f64bb2">
10 <!ENTITY cracklib-size "575 KB">
11 <!ENTITY cracklib-buildsize "29.2 MB (without Python bindings)">
12 <!ENTITY cracklib-time "0.1 SBU">
13 <!ENTITY crackdict-download "http://prdownloads.sourceforge.net/cracklib/cracklib-words.gz">
14 <!ENTITY crackdict-size "4.4 MB">
15 <!ENTITY crackdict-md5sum "d18e670e5df560a8745e1b4dede8f84f">
16]>
17
18<sect1 id="cracklib" xreflabel="CrackLib-&cracklib-version;">
19 <?dbhtml filename="cracklib.html"?>
20
21 <sect1info>
22 <othername>$LastChangedBy$</othername>
23 <date>$Date$</date>
24 <keywordset>
25 <keyword role="package">cracklib-&cracklib-version;.tar</keyword>
26 <keyword role="ftpdir">cracklib</keyword>
27 </keywordset>
28 </sect1info>
29
30 <title>CrackLib-&cracklib-version;</title>
31
32 <indexterm zone="cracklib">
33 <primary sortas="a-CrackLib">CrackLib</primary>
34 </indexterm>
35
36 <sect2 role="package">
37 <title>Introduction to CrackLib</title>
38
39 <para>The <application>CrackLib</application> package contains a
40 library used to enforce strong passwords by comparing user selected
41 passwords to words in chosen word lists.</para>
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>Download (HTTP): <ulink url="&cracklib-download-http;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download (FTP): <ulink url="&cracklib-download-ftp;"/></para>
50 </listitem>
51 <listitem>
52 <para>Download MD5 sum: &cracklib-http-md5sum;</para>
53 </listitem>
54 <listitem>
55 <para>Download size: &cracklib-size;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated disk space required: &cracklib-buildsize;</para>
59 </listitem>
60 <listitem>
61 <para>Estimated build time: &cracklib-time;</para>
62 </listitem>
63 </itemizedlist>
64
65 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
66 <itemizedlist spacing='compact'>
67 <listitem>
68 <para>Recommended word list for English-speaking countries (size:
69 &crackdict-size;; md5sum: &crackdict-md5sum;):
70 <ulink url="&crackdict-download;"/></para>
71 </listitem>
72 <listitem>
73 <para>Required patch to create a library used with the Heimdal
74 Kerberos 5 package: <ulink
75 url="&patch-root;/cracklib-&cracklib-version;-heimdal-1.patch"/></para>
76 </listitem>
77 </itemizedlist>
78
79 <para>There are additional word lists available for download, e.g., from
80 <ulink url="http://www.cotse.com/tools/wordlists.htm"/>.
81 <application>CrackLib</application> can utilize as many, or as few word
82 lists you choose to install.</para>
83
84 <important>
85 <para>Users tend to base their passwords on regular words of the spoken
86 language, and crackers know that. <application>CrackLib</application> is
87 intended to filter out such bad passwords at the source using a
88 dictionary created from word lists. To accomplish this, the word list(s)
89 for use with <application>CrackLib</application> must be an exhaustive
90 list of words and word-based keystroke combinations likely to be chosen
91 by users of the system as (guessable) passwords.</para>
92
93 <para>The default word list recommended above for downloading mostly
94 satisfies this role in English-speaking countries. In other situations,
95 it may be necessary to download (or even create) additional word
96 lists.</para>
97
98 <para>Note that word lists suitable for spell-checking are not usable
99 as <application>CrackLib</application> word lists in countries with
100 non-Latin based alphabets, because of <quote>word-based keystroke
101 combinations</quote> that make bad passwords.</para>
102 </important>
103
104 <bridgehead renderas="sect3">CrackLib Dependencies</bridgehead>
105
106 <bridgehead renderas="sect4">Optional</bridgehead>
107 <para role="optional"><xref linkend="python"/></para>
108
109 <para condition="html" role="usernotes">User Notes:
110 <ulink url="&blfs-wiki;/cracklib"/></para>
111
112 </sect2>
113
114 <sect2 role="installation">
115 <title>Installation of CrackLib</title>
116
117 <para>If desired, apply the <application>Heimdal</application> patch
118 (note that with this patch the original library is not affected; this patch
119 only creates an additional library used by the
120 <application>Heimdal</application> password-checking routines):</para>
121
122<screen><userinput>patch -Np1 -i ../cracklib-&cracklib-version;-heimdal-1.patch</userinput></screen>
123
124 <para>Install <application>CrackLib</application> by running the following
125 commands:</para>
126
127<screen><userinput>./configure --prefix=/usr \
128 --with-default-dict=/lib/cracklib/pw_dict &amp;&amp;
129make</userinput></screen>
130
131 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
132
133<screen role="root"><userinput>make install &amp;&amp;
134mv -v /usr/lib/libcrack.so.2* /lib &amp;&amp;
135ln -v -sf ../../lib/libcrack.so.2.8.0 /usr/lib/libcrack.so</userinput></screen>
136
137 <para>Issue the following commands as the
138 <systemitem class="username">root</systemitem> user to install the
139 recommended word list and create the <application>CrackLib</application>
140 dictionary. Other word lists (text based, one word per line) can also be
141 used by simply installing them into
142 <filename class='directory'>/usr/share/dict</filename> and adding them
143 to the <command>create-cracklib-dict</command> command.</para>
144
145<screen role="root"><userinput>install -v -m644 -D ../cracklib-words.gz \
146 /usr/share/dict/cracklib-words.gz &amp;&amp;
147gunzip -v /usr/share/dict/cracklib-words.gz &amp;&amp;
148ln -v -s cracklib-words /usr/share/dict/words &amp;&amp;
149echo $(hostname) >>/usr/share/dict/cracklib-extra-words &amp;&amp;
150install -v -m755 -d /lib/cracklib &amp;&amp;
151create-cracklib-dict /usr/share/dict/cracklib-words \
152 /usr/share/dict/cracklib-extra-words</userinput></screen>
153
154 <para>If desired, check the proper operation of the library as an
155 unprivileged user using the tests included with the package:</para>
156
157<screen><userinput>make test</userinput></screen>
158
159 <important>
160 <para>If you are installing <application>CrackLib</application> after
161 your LFS system has been completed and you have the
162 <application>Shadow</application> package installed, you must
163 reinstall <xref linkend="shadow"/> if you wish to provide strong
164 password support on your system. If you are now going to install the
165 <xref linkend="linux-pam"/> package, you may disregard this note as
166 <application>Shadow</application> will be reinstalled after the
167 <application>Linux-PAM</application> installation.</para>
168 </important>
169
170 </sect2>
171
172 <sect2 role="commands">
173 <title>Command Explanations</title>
174
175 <para><parameter>--with-default-dict=/lib/cracklib/pw_dict</parameter>:
176 This parameter forces the installation of the
177 <application>CrackLib</application> dictionary to the
178 <filename class='directory'>/lib</filename> hierarchy.</para>
179
180 <para><command>mv -v /usr/lib/libcrack.so.2* /lib</command> and
181 <command>ln -v -sf ../../lib/libcrack.so.2.8.0 ...</command>: These two
182 commands move the <filename class='libraryfile'>libcrack.so.2.8.0</filename>
183 library and associated symlink from
184 <filename class='directory'>/usr/lib</filename> to
185 <filename class='directory'>/lib</filename>, then recreates the
186 <filename class='symlink'>/usr/lib/libcrack.so</filename> symlink pointing
187 to the relocated file.</para>
188
189 <para><command>install -v -m644 -D ...</command>: This command creates the
190 <filename class='directory'>/usr/share/dict</filename> directory (if it
191 doesn't already exist) and installs the compressed word list there.</para>
192
193 <para><command>ln -v -s cracklib-words /usr/share/dict/words</command>: The
194 word list is linked to <filename>/usr/share/dict/words</filename> as
195 historically, <filename>words</filename> is the primary word list in the
196 <filename class="directory">/usr/share/dict</filename> directory. Omit this
197 command if you already have a <filename>/usr/share/dict/words</filename>
198 file installed on your system.</para>
199
200 <para><command>echo $(hostname) >>...</command>: The value of
201 <command>hostname</command> is echoed to a file called
202 <filename>cracklib-extra-words</filename>. This extra file is intended to be
203 a site specific list which includes easy to guess passwords such as company
204 or department names, user's names, product names, computer names, domain
205 names, etc.</para>
206
207 <para><command>create-cracklib-dict ...</command>: This command creates the
208 <application>CrackLib</application> dictionary from the word lists. Modify
209 the command to add any additional word lists you have installed.</para>
210
211 </sect2>
212
213 <sect2 role="content">
214 <title>Contents</title>
215
216 <segmentedlist>
217 <segtitle>Installed Programs</segtitle>
218 <segtitle>Installed Libraries</segtitle>
219 <segtitle>Installed Directories</segtitle>
220
221 <seglistitem>
222 <seg>cracklib-check, cracklib-format, cracklib-packer,
223 cracklib-unpacker and create-cracklib-dict</seg>
224 <seg>libcrack.{so,a} and optionally, libcrack_heimdal.{so,a} and
225 cracklibmodule.{so,a} <application>Python</application> module</seg>
226 <seg>/lib/cracklib, /usr/share/dict and /usr/share/cracklib</seg>
227 </seglistitem>
228 </segmentedlist>
229
230 <variablelist>
231 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
232 <?dbfo list-presentation="list"?>
233 <?dbhtml list-presentation="table"?>
234
235 <varlistentry id="create-cracklib-dict">
236 <term><filename>create-cracklib-dict</filename></term>
237 <listitem>
238 <para>is used to create the <application>CrackLib</application>
239 dictionary from the given word list(s).</para>
240 <indexterm zone="cracklib create-cracklib-dict">
241 <primary sortas="b-create-cracklib-dict">create-cracklib-dict</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 <varlistentry id="libcrack">
247 <term><filename class='libraryfile'>libcrack.{so,a}</filename></term>
248 <listitem>
249 <para>provides a fast dictionary lookup method for strong
250 password enforcement.</para>
251 <indexterm zone="cracklib libcrack">
252 <primary sortas="c-libcrack">libcrack.{so,a}</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 </variablelist>
258
259 </sect2>
260
261</sect1>
Note: See TracBrowser for help on using the repository browser.