[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 |
|
---|
[fce275e] | 7 | <!ENTITY cracklib-download-http "&sourceforge-repo;/cracklib/cracklib-&cracklib-version;.tar.gz">
|
---|
[fb2e525] | 8 | <!ENTITY cracklib-download-ftp "&gentoo-ftp-repo;/cracklib-&cracklib-version;.tar.gz">
|
---|
[c24c91c] | 9 | <!ENTITY cracklib-md5sum "79053ad8bc714a44cd660cb12116211b">
|
---|
| 10 | <!ENTITY cracklib-size "587 KB">
|
---|
| 11 | <!ENTITY cracklib-buildsize "29 MB">
|
---|
| 12 | <!ENTITY cracklib-time "less than 0.1 SBU">
|
---|
[1f4d911] | 13 |
|
---|
[a4440544] | 14 | <!ENTITY crackdict-version "20080507">
|
---|
| 15 | <!ENTITY crackdict-download "&sourceforge-repo;/cracklib/cracklib-words-&crackdict-version;.gz">
|
---|
| 16 | <!ENTITY crackdict-size "4.5 MB">
|
---|
| 17 | <!ENTITY crackdict-md5sum "7fa6ba0cd50e7f9ccaf4707c810b14f1">
|
---|
[b4b71892] | 18 | ]>
|
---|
| 19 |
|
---|
[8b1b2dc7] | 20 | <sect1 id="cracklib" xreflabel="CrackLib-&cracklib-version;">
|
---|
[9623b6e8] | 21 | <?dbhtml filename="cracklib.html"?>
|
---|
| 22 |
|
---|
| 23 | <sect1info>
|
---|
| 24 | <othername>$LastChangedBy$</othername>
|
---|
| 25 | <date>$Date$</date>
|
---|
| 26 | </sect1info>
|
---|
| 27 |
|
---|
[8b1b2dc7] | 28 | <title>CrackLib-&cracklib-version;</title>
|
---|
[9623b6e8] | 29 |
|
---|
| 30 | <indexterm zone="cracklib">
|
---|
[8b1b2dc7] | 31 | <primary sortas="a-CrackLib">CrackLib</primary>
|
---|
[9623b6e8] | 32 | </indexterm>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="package">
|
---|
[8b1b2dc7] | 35 | <title>Introduction to CrackLib</title>
|
---|
[9623b6e8] | 36 |
|
---|
[8b1b2dc7] | 37 | <para>The <application>CrackLib</application> package contains a
|
---|
[0afcfa88] | 38 | library used to enforce strong passwords by comparing user selected
|
---|
[8b1b2dc7] | 39 | passwords to words in chosen word lists.</para>
|
---|
[9623b6e8] | 40 |
|
---|
[a9af283] | 41 | &lfs70_checked;
|
---|
[5f4181d] | 42 |
|
---|
[9623b6e8] | 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>
|
---|
[84fcbc2] | 52 | <para>Download MD5 sum: &cracklib-md5sum;</para>
|
---|
[9623b6e8] | 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>
|
---|
[62494cc] | 68 | <para>Recommended word list for English-speaking countries (size:
|
---|
[22861b3] | 69 | &crackdict-size;; md5sum: &crackdict-md5sum;):
|
---|
| 70 | <ulink url="&crackdict-download;"/></para>
|
---|
| 71 | </listitem>
|
---|
[2e3e271] | 72 | <!-- <listitem>
|
---|
[8b1b2dc7] | 73 | <para>Required patch to create a library used with the Heimdal
|
---|
| 74 | Kerberos 5 package: <ulink
|
---|
[65a2cdc] | 75 | url="&patch-root;/cracklib-&cracklib-version;-heimdal-2.patch"/></para>
|
---|
[2e3e271] | 76 | </listitem> -->
|
---|
[9623b6e8] | 77 | </itemizedlist>
|
---|
| 78 |
|
---|
[62494cc] | 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 |
|
---|
[22861b3] | 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>
|
---|
[9623b6e8] | 103 |
|
---|
[14e13a0c] | 104 | <bridgehead renderas="sect3">CrackLib Dependencies</bridgehead>
|
---|
[bccbdaea] | 105 |
|
---|
[14e13a0c] | 106 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[e19ad480] | 107 | <para role="optional"><xref linkend="python"/></para>
|
---|
[14e13a0c] | 108 |
|
---|
[3597eb6] | 109 | <para condition="html" role="usernotes">User Notes:
|
---|
| 110 | <ulink url="&blfs-wiki;/cracklib"/></para>
|
---|
| 111 |
|
---|
[9623b6e8] | 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | <sect2 role="installation">
|
---|
[8b1b2dc7] | 115 | <title>Installation of CrackLib</title>
|
---|
[4f65b2f] | 116 |
|
---|
[2e3e271] | 117 | <!-- <para>If desired, apply the <application>Heimdal</application> patch
|
---|
[8b1b2dc7] | 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>
|
---|
[b4b71892] | 121 |
|
---|
[65a2cdc] | 122 | <screen><userinput>patch -Np1 -i ../cracklib-&cracklib-version;-heimdal-2.patch</userinput></screen>
|
---|
[2e3e271] | 123 | -->
|
---|
[b4b71892] | 124 |
|
---|
[8b1b2dc7] | 125 | <para>Install <application>CrackLib</application> by running the following
|
---|
| 126 | commands:</para>
|
---|
[b4b71892] | 127 |
|
---|
[1976445] | 128 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 129 | --with-default-dict=/lib/cracklib/pw_dict &&
|
---|
[8b1b2dc7] | 130 | make</userinput></screen>
|
---|
[b4b71892] | 131 |
|
---|
[8b1b2dc7] | 132 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[9623b6e8] | 133 |
|
---|
| 134 | <screen role="root"><userinput>make install &&
|
---|
[8b1b2dc7] | 135 | mv -v /usr/lib/libcrack.so.2* /lib &&
|
---|
[5f4181d] | 136 | ln -v -sf ../../lib/libcrack.so.2.8.1 /usr/lib/libcrack.so</userinput></screen>
|
---|
[22861b3] | 137 |
|
---|
[1976445] | 138 | <para>Issue the following commands as the
|
---|
| 139 | <systemitem class="username">root</systemitem> user to install the
|
---|
| 140 | recommended word list and create the <application>CrackLib</application>
|
---|
| 141 | dictionary. Other word lists (text based, one word per line) can also be
|
---|
| 142 | used by simply installing them into
|
---|
| 143 | <filename class='directory'>/usr/share/dict</filename> and adding them
|
---|
| 144 | to the <command>create-cracklib-dict</command> command.</para>
|
---|
[22861b3] | 145 |
|
---|
[a4440544] | 146 | <screen role="root"><userinput>install -v -m644 -D ../cracklib-words-&crackdict-version;.gz \
|
---|
[8b1b2dc7] | 147 | /usr/share/dict/cracklib-words.gz &&
|
---|
| 148 | gunzip -v /usr/share/dict/cracklib-words.gz &&
|
---|
| 149 | ln -v -s cracklib-words /usr/share/dict/words &&
|
---|
| 150 | echo $(hostname) >>/usr/share/dict/cracklib-extra-words &&
|
---|
[1976445] | 151 | install -v -m755 -d /lib/cracklib &&
|
---|
[8b1b2dc7] | 152 | create-cracklib-dict /usr/share/dict/cracklib-words \
|
---|
| 153 | /usr/share/dict/cracklib-extra-words</userinput></screen>
|
---|
| 154 |
|
---|
| 155 | <para>If desired, check the proper operation of the library as an
|
---|
[a4440544] | 156 | unprivileged user by issuing the following command:</para>
|
---|
| 157 |
|
---|
| 158 | <screen><userinput>make test</userinput></screen>
|
---|
[9623b6e8] | 159 |
|
---|
[c6bdcb0] | 160 | <important>
|
---|
| 161 | <para>If you are installing <application>CrackLib</application> after
|
---|
| 162 | your LFS system has been completed and you have the
|
---|
| 163 | <application>Shadow</application> package installed, you must
|
---|
| 164 | reinstall <xref linkend="shadow"/> if you wish to provide strong
|
---|
| 165 | password support on your system. If you are now going to install the
|
---|
| 166 | <xref linkend="linux-pam"/> package, you may disregard this note as
|
---|
| 167 | <application>Shadow</application> will be reinstalled after the
|
---|
| 168 | <application>Linux-PAM</application> installation.</para>
|
---|
| 169 | </important>
|
---|
| 170 |
|
---|
[9623b6e8] | 171 | </sect2>
|
---|
| 172 |
|
---|
| 173 | <sect2 role="commands">
|
---|
| 174 | <title>Command Explanations</title>
|
---|
| 175 |
|
---|
[1976445] | 176 | <para><parameter>--with-default-dict=/lib/cracklib/pw_dict</parameter>:
|
---|
| 177 | This parameter forces the installation of the
|
---|
| 178 | <application>CrackLib</application> dictionary to the
|
---|
[8b1b2dc7] | 179 | <filename class='directory'>/lib</filename> hierarchy.</para>
|
---|
| 180 |
|
---|
| 181 | <para><command>mv -v /usr/lib/libcrack.so.2* /lib</command> and
|
---|
[5f4181d] | 182 | <command>ln -v -sf ../../lib/libcrack.so.2.8.1 ...</command>: These two
|
---|
| 183 | commands move the <filename class='libraryfile'>libcrack.so.2.8.1</filename>
|
---|
[8b1b2dc7] | 184 | library and associated symlink from
|
---|
| 185 | <filename class='directory'>/usr/lib</filename> to
|
---|
| 186 | <filename class='directory'>/lib</filename>, then recreates the
|
---|
[b26339be] | 187 | <filename class='symlink'>/usr/lib/libcrack.so</filename> symlink pointing
|
---|
[8b1b2dc7] | 188 | to the relocated file.</para>
|
---|
| 189 |
|
---|
| 190 | <para><command>install -v -m644 -D ...</command>: This command creates the
|
---|
| 191 | <filename class='directory'>/usr/share/dict</filename> directory (if it
|
---|
| 192 | doesn't already exist) and installs the compressed word list there.</para>
|
---|
| 193 |
|
---|
| 194 | <para><command>ln -v -s cracklib-words /usr/share/dict/words</command>: The
|
---|
| 195 | word list is linked to <filename>/usr/share/dict/words</filename> as
|
---|
| 196 | historically, <filename>words</filename> is the primary word list in the
|
---|
| 197 | <filename class="directory">/usr/share/dict</filename> directory. Omit this
|
---|
| 198 | command if you already have a <filename>/usr/share/dict/words</filename>
|
---|
| 199 | file installed on your system.</para>
|
---|
| 200 |
|
---|
| 201 | <para><command>echo $(hostname) >>...</command>: The value of
|
---|
| 202 | <command>hostname</command> is echoed to a file called
|
---|
| 203 | <filename>cracklib-extra-words</filename>. This extra file is intended to be
|
---|
| 204 | a site specific list which includes easy to guess passwords such as company
|
---|
| 205 | or department names, user's names, product names, computer names, domain
|
---|
| 206 | names, etc.</para>
|
---|
| 207 |
|
---|
| 208 | <para><command>create-cracklib-dict ...</command>: This command creates the
|
---|
[22861b3] | 209 | <application>CrackLib</application> dictionary from the word lists. Modify
|
---|
| 210 | the command to add any additional word lists you have installed.</para>
|
---|
[9623b6e8] | 211 |
|
---|
| 212 | </sect2>
|
---|
| 213 |
|
---|
| 214 | <sect2 role="content">
|
---|
| 215 | <title>Contents</title>
|
---|
| 216 |
|
---|
| 217 | <segmentedlist>
|
---|
| 218 | <segtitle>Installed Programs</segtitle>
|
---|
| 219 | <segtitle>Installed Libraries</segtitle>
|
---|
[d80152af] | 220 | <segtitle>Installed Directories</segtitle>
|
---|
[9623b6e8] | 221 |
|
---|
| 222 | <seglistitem>
|
---|
[8b1b2dc7] | 223 | <seg>cracklib-check, cracklib-format, cracklib-packer,
|
---|
| 224 | cracklib-unpacker and create-cracklib-dict</seg>
|
---|
[2e3e271] | 225 | <seg>libcrack.{so,a} and the cracklibmodule.{so,a}
|
---|
| 226 | <application>Python</application> module</seg>
|
---|
[1976445] | 227 | <seg>/lib/cracklib, /usr/share/dict and /usr/share/cracklib</seg>
|
---|
[9623b6e8] | 228 | </seglistitem>
|
---|
| 229 | </segmentedlist>
|
---|
| 230 |
|
---|
| 231 | <variablelist>
|
---|
| 232 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 233 | <?dbfo list-presentation="list"?>
|
---|
| 234 | <?dbhtml list-presentation="table"?>
|
---|
| 235 |
|
---|
[8b1b2dc7] | 236 | <varlistentry id="create-cracklib-dict">
|
---|
[0170790e] | 237 | <term><command>create-cracklib-dict</command></term>
|
---|
[8b1b2dc7] | 238 | <listitem>
|
---|
| 239 | <para>is used to create the <application>CrackLib</application>
|
---|
| 240 | dictionary from the given word list(s).</para>
|
---|
| 241 | <indexterm zone="cracklib create-cracklib-dict">
|
---|
| 242 | <primary sortas="b-create-cracklib-dict">create-cracklib-dict</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
| 246 |
|
---|
[9623b6e8] | 247 | <varlistentry id="libcrack">
|
---|
[3597eb6] | 248 | <term><filename class='libraryfile'>libcrack.{so,a}</filename></term>
|
---|
[9623b6e8] | 249 | <listitem>
|
---|
[8b1b2dc7] | 250 | <para>provides a fast dictionary lookup method for strong
|
---|
[9623b6e8] | 251 | password enforcement.</para>
|
---|
| 252 | <indexterm zone="cracklib libcrack">
|
---|
[3597eb6] | 253 | <primary sortas="c-libcrack">libcrack.{so,a}</primary>
|
---|
[9623b6e8] | 254 | </indexterm>
|
---|
| 255 | </listitem>
|
---|
| 256 | </varlistentry>
|
---|
| 257 |
|
---|
| 258 | </variablelist>
|
---|
| 259 |
|
---|
| 260 | </sect2>
|
---|
[fa48bf3] | 261 |
|
---|
| 262 | </sect1>
|
---|