[b4b71892] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[b4b71892] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY cracklib-download-http "http://www.crypticide.com/users/alecm/security/cracklib,&cracklib-version;.tar.gz">
|
---|
| 8 | <!ENTITY cracklib-download-ftp "ftp://ftp.cerias.purdue.edu/pub/tools/unix/libs/cracklib/cracklib.&cracklib-version;.tar.gz">
|
---|
[5f084a2] | 9 | <!ENTITY cracklib-http-md5sum "0c84ad7413d9dd3e5c2eaa5f97d53c4a">
|
---|
| 10 | <!ENTITY cracklib-ftp-md5sum "7f810e310c7f2df33d1eaa2b41ab2435">
|
---|
[b4b71892] | 11 | <!ENTITY cracklib-size "21 KB">
|
---|
[9a3d0d39] | 12 | <!ENTITY cracklib-buildsize "21.8 MB">
|
---|
| 13 | <!ENTITY cracklib-time "0.05 SBU">
|
---|
| 14 | <!ENTITY crackdict-size "15.6 MB">
|
---|
| 15 | <!ENTITY alldict-size "466 KB">
|
---|
[b4b71892] | 16 | ]>
|
---|
| 17 |
|
---|
[fa48bf3] | 18 | <sect1 id="cracklib" xreflabel="cracklib-&cracklib-version;">
|
---|
[9623b6e8] | 19 | <?dbhtml filename="cracklib.html"?>
|
---|
| 20 |
|
---|
| 21 | <sect1info>
|
---|
| 22 | <othername>$LastChangedBy$</othername>
|
---|
| 23 | <date>$Date$</date>
|
---|
| 24 | </sect1info>
|
---|
| 25 |
|
---|
| 26 | <title>Cracklib-&cracklib-version;</title>
|
---|
| 27 |
|
---|
| 28 | <indexterm zone="cracklib">
|
---|
| 29 | <primary sortas="a-Cracklib">Cracklib</primary>
|
---|
| 30 | </indexterm>
|
---|
| 31 |
|
---|
| 32 | <sect2 role="package">
|
---|
| 33 | <title>Introduction to Cracklib</title>
|
---|
| 34 |
|
---|
| 35 | <para>The <application>cracklib</application> package contains a
|
---|
| 36 | library used to enforce strong passwords by comparing user selected
|
---|
| 37 | passwords to words in a chosen wordlist.</para>
|
---|
| 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (HTTP): <ulink url="&cracklib-download-http;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (FTP): <ulink url="&cracklib-download-ftp;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download MD5 sum (HTTP): &cracklib-http-md5sum;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download MD5 sum (FTP): &cracklib-ftp-md5sum;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download size: &cracklib-size;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated disk space required: &cracklib-buildsize;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Estimated build time: &cracklib-time;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | </itemizedlist>
|
---|
| 63 |
|
---|
| 64 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 65 | <itemizedlist spacing='compact'>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>Required Patch: <ulink
|
---|
| 68 | url="&patch-root;/cracklib,&cracklib-version;-blfs-1.patch"/></para>
|
---|
| 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>Recommended Patch: <ulink
|
---|
| 72 | url="&patch-root;/cracklib,&cracklib-version;-heimdal-1.patch"/></para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
| 76 | <para>You will also need to download a wordlist for use with
|
---|
| 77 | <application>cracklib</application>. There are two wordlists
|
---|
| 78 | to choose from at the following location. Use the
|
---|
| 79 | <filename>cracklib</filename> word list for good security, or
|
---|
| 80 | opt for the <filename>allwords</filename> word list for
|
---|
| 81 | lightweight machines short on RAM. You can of course choose
|
---|
| 82 | any other word list that you have at your disposal.</para>
|
---|
| 83 |
|
---|
| 84 | <itemizedlist spacing='compact'>
|
---|
| 85 | <listitem>
|
---|
| 86 | <para>cracklib (&crackdict-size;) at <ulink
|
---|
| 87 | url="http://www.cotse.com/tools/wordlists.htm"/></para>
|
---|
| 88 | </listitem>
|
---|
| 89 | <listitem>
|
---|
| 90 | <para>allwords (&alldict-size;) at <ulink
|
---|
| 91 | url="http://www.cotse.com/tools/wordlists.htm"/></para>
|
---|
| 92 | </listitem>
|
---|
| 93 | </itemizedlist>
|
---|
| 94 |
|
---|
| 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of Cracklib</title>
|
---|
| 99 |
|
---|
| 100 | <para>First, as the <systemitem class="username">root</systemitem>
|
---|
| 101 | user, install the chosen word list for
|
---|
| 102 | <application>cracklib</application>:</para>
|
---|
| 103 |
|
---|
| 104 | <screen role="root"><userinput>install -v -d -m755 /usr/share/dict &&
|
---|
[904f31e2] | 105 | install -v -m644 ../<replaceable>[wordlist]</replaceable> /usr/share/dict &&
|
---|
| 106 | ln -v -sf <replaceable>[wordlist]</replaceable> /usr/share/dict/words &&
|
---|
[9623b6e8] | 107 | echo $(hostname) >> /usr/share/dict/extra.words</userinput></screen>
|
---|
[b4b71892] | 108 |
|
---|
[9623b6e8] | 109 | <para>The wordlist is linked to <filename>/usr/share/dict/words</filename>
|
---|
| 110 | as historically, <filename>words</filename> is the primary wordlist in the
|
---|
| 111 | <filename class="directory">/usr/share/dict</filename> directory.
|
---|
| 112 | Additionally, the value of <command>hostname</command> is echoed to a file
|
---|
| 113 | called <filename>extra.words</filename>. This extra file is intended to be
|
---|
| 114 | a site specific list which includes easy to guess passwords such as company
|
---|
| 115 | or department names, user's names, product names, computer names, domain
|
---|
| 116 | names, etc.</para>
|
---|
[4f65b2f] | 117 |
|
---|
[9623b6e8] | 118 | <para>Now apply the BLFS patch:</para>
|
---|
[b4b71892] | 119 |
|
---|
[9623b6e8] | 120 | <screen><userinput>patch -Np1 -i ../cracklib,&cracklib-version;-blfs-1.patch</userinput></screen>
|
---|
[b4b71892] | 121 |
|
---|
[9623b6e8] | 122 | <para>If necessary, apply the <application>Heimdal</application>
|
---|
| 123 | patch:</para>
|
---|
[b4b71892] | 124 |
|
---|
[9623b6e8] | 125 | <screen><userinput>cp -R cracklib cracklib_krb5 &&
|
---|
| 126 | patch -Np1 -i ../cracklib,&cracklib-version;-heimdal-1.patch</userinput></screen>
|
---|
[b4b71892] | 127 |
|
---|
[9623b6e8] | 128 | <para>Finally, as the <systemitem class="username">root</systemitem>
|
---|
| 129 | user, build and install the package:</para>
|
---|
| 130 |
|
---|
| 131 | <screen role="root"><userinput>make install &&
|
---|
[904f31e2] | 132 | rm -v /lib/libcrack.so &&
|
---|
[9623b6e8] | 133 | ln -v -sf ../../lib/libcrack.so.2.7 /usr/lib/libcrack.so</userinput></screen>
|
---|
| 134 |
|
---|
| 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <sect2 role="commands">
|
---|
| 138 | <title>Command Explanations</title>
|
---|
| 139 |
|
---|
| 140 | <para><command>rm -v /lib/libcrack.so; ln -v -sf ...
|
---|
| 141 | /usr/lib/libcrack.so</command>: These two commands move the
|
---|
| 142 | <filename class='symlink'>libcrack.so</filename>
|
---|
| 143 | symlink from <filename class='directory'>/lib</filename> to
|
---|
| 144 | <filename class='directory'>/usr/lib</filename>.</para>
|
---|
| 145 |
|
---|
| 146 | </sect2>
|
---|
| 147 |
|
---|
| 148 | <sect2 role="content">
|
---|
| 149 | <title>Contents</title>
|
---|
| 150 |
|
---|
| 151 | <segmentedlist>
|
---|
| 152 | <segtitle>Installed Programs</segtitle>
|
---|
| 153 | <segtitle>Installed Libraries</segtitle>
|
---|
| 154 | <segtitle>Installed Directory</segtitle>
|
---|
| 155 |
|
---|
| 156 | <seglistitem>
|
---|
| 157 | <seg>create-cracklib-dict, mkdict, and packer</seg>
|
---|
| 158 | <seg>libcrack.so and optionally, libcrack_krb5.so</seg>
|
---|
| 159 | <seg>/usr/share/dict</seg>
|
---|
| 160 | </seglistitem>
|
---|
| 161 | </segmentedlist>
|
---|
| 162 |
|
---|
| 163 | <variablelist>
|
---|
| 164 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 165 | <?dbfo list-presentation="list"?>
|
---|
| 166 | <?dbhtml list-presentation="table"?>
|
---|
| 167 |
|
---|
| 168 | <varlistentry id="libcrack">
|
---|
| 169 | <term><filename class='libraryfile'>libcrack.so</filename></term>
|
---|
| 170 | <listitem>
|
---|
| 171 | <para>provide a fast dictionary lookup method for strong
|
---|
| 172 | password enforcement.</para>
|
---|
| 173 | <indexterm zone="cracklib libcrack">
|
---|
| 174 | <primary sortas="c-libcrack">libcrack.so</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
| 178 |
|
---|
| 179 | </variablelist>
|
---|
| 180 |
|
---|
| 181 | </sect2>
|
---|
[fa48bf3] | 182 |
|
---|
| 183 | </sect1>
|
---|