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