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