2004-06-10 13:47:11 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-04-04 04:52:42 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-10 13:47:11 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
|
|
|
<!ENTITY cracklib-download-http "http://www.crypticide.com/users/alecm/security/cracklib,&cracklib-version;.tar.gz">
|
|
|
|
<!ENTITY cracklib-download-ftp "ftp://ftp.cerias.purdue.edu/pub/tools/unix/libs/cracklib/cracklib.&cracklib-version;.tar.gz">
|
2005-02-05 01:27:34 +08:00
|
|
|
<!ENTITY cracklib-http-md5sum "0c84ad7413d9dd3e5c2eaa5f97d53c4a">
|
|
|
|
<!ENTITY cracklib-ftp-md5sum "7f810e310c7f2df33d1eaa2b41ab2435">
|
2004-06-10 13:47:11 +08:00
|
|
|
<!ENTITY cracklib-size "21 KB">
|
2005-03-22 21:15:11 +08:00
|
|
|
<!ENTITY cracklib-buildsize "21.8 MB">
|
|
|
|
<!ENTITY cracklib-time "0.05 SBU">
|
|
|
|
<!ENTITY crackdict-size "15.6 MB">
|
|
|
|
<!ENTITY alldict-size "466 KB">
|
2004-06-10 13:47:11 +08:00
|
|
|
]>
|
|
|
|
|
2004-04-22 22:04:15 +08:00
|
|
|
<sect1 id="cracklib" xreflabel="cracklib-&cracklib-version;">
|
2004-08-08 06:52:11 +08:00
|
|
|
<sect1info>
|
2004-08-10 12:25:57 +08:00
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2004-08-08 06:52:11 +08:00
|
|
|
</sect1info>
|
2004-05-07 04:30:53 +08:00
|
|
|
<?dbhtml filename="cracklib.html"?>
|
2004-04-22 22:04:15 +08:00
|
|
|
<title>cracklib-&cracklib-version;</title>
|
2005-01-08 01:42:45 +08:00
|
|
|
<indexterm zone="cracklib">
|
2005-01-17 00:56:15 +08:00
|
|
|
<primary sortas="a-Cracklib">Cracklib</primary></indexterm>
|
2004-04-22 22:04:15 +08:00
|
|
|
|
2004-06-10 13:47:11 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Introduction to <application>cracklib</application></title>
|
|
|
|
|
2004-07-01 05:20:29 +08:00
|
|
|
<para>The <application>cracklib</application> package contains a library used
|
|
|
|
to enforce strong passwords by comparing user selected passwords to words in a
|
|
|
|
chosen wordlist.</para>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
|
|
|
<sect3><title>Package information</title>
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<listitem><para>Download (HTTP): <ulink
|
|
|
|
url="&cracklib-download-http;"/></para></listitem>
|
|
|
|
<listitem><para>Download (FTP): <ulink
|
|
|
|
url="&cracklib-download-ftp;"/></para></listitem>
|
2005-02-05 01:27:34 +08:00
|
|
|
<listitem><para>Download MD5 sum (HTTP):
|
|
|
|
&cracklib-http-md5sum;</para></listitem>
|
|
|
|
<listitem><para>Download MD5 sum (FTP):
|
|
|
|
&cracklib-ftp-md5sum;</para></listitem>
|
2004-06-10 13:47:11 +08:00
|
|
|
<listitem><para>Download size: &cracklib-size;</para></listitem>
|
2005-01-11 01:48:41 +08:00
|
|
|
<listitem><para>Estimated disk space required (with cracklib wordlist):
|
2004-06-10 13:47:11 +08:00
|
|
|
&cracklib-buildsize;</para></listitem>
|
|
|
|
<listitem><para>Estimated build time:
|
|
|
|
&cracklib-time;</para></listitem></itemizedlist>
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3><title>Additional downloads</title>
|
|
|
|
<itemizedlist spacing='compact'>
|
2004-06-29 22:32:23 +08:00
|
|
|
<listitem><para>Required Patch: <ulink
|
2004-06-10 13:47:11 +08:00
|
|
|
url="&patch-root;/cracklib,&cracklib-version;-blfs-1.patch"/></para></listitem>
|
2004-06-29 22:32:23 +08:00
|
|
|
<listitem><para>Recommended Patch: <ulink
|
2005-01-17 00:56:15 +08:00
|
|
|
url="&patch-root;/cracklib,&cracklib-version;-heimdal-1.patch"/></para>
|
|
|
|
</listitem>
|
2004-06-10 13:47:11 +08:00
|
|
|
</itemizedlist>
|
|
|
|
|
2004-07-01 05:20:29 +08:00
|
|
|
<para>You will also need to download a wordlist for use with
|
|
|
|
<application>cracklib</application>. There are two wordlists to choose from at
|
|
|
|
the following location. Use the <filename>cracklib</filename> word list for
|
|
|
|
good security, or opt for the <filename>allwords</filename> word list for
|
|
|
|
lightweight machines short on <acronym>RAM</acronym>. You can of course choose
|
|
|
|
any other word list that you have at your disposal.</para>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
2004-07-01 05:20:29 +08:00
|
|
|
<itemizedlist spacing='compact'>
|
2005-01-08 01:42:45 +08:00
|
|
|
<listitem><para>cracklib (&crackdict-size;) at <ulink
|
|
|
|
url="http://www.cotse.com/tools/wordlists.htm"/></para></listitem>
|
|
|
|
<listitem><para>allwords (&alldict-size;) at <ulink
|
|
|
|
url="http://www.cotse.com/tools/wordlists.htm"/></para></listitem>
|
2004-07-01 05:20:29 +08:00
|
|
|
</itemizedlist>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Installation of <application>cracklib</application></title>
|
|
|
|
|
2005-01-27 09:41:14 +08:00
|
|
|
<para>First, as the root user, install the chosen word list for
|
2004-07-21 12:34:56 +08:00
|
|
|
<application>cracklib</application>:</para>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
2005-03-23 23:36:52 +08:00
|
|
|
<screen><userinput role='root'><command>install -v -d -m755 /usr/share/dict &&
|
|
|
|
install -v -m644 ../<replaceable>[wordlist]</replaceable> /usr/share/dict &&
|
|
|
|
ln -v -sf <replaceable>[wordlist]</replaceable> /usr/share/dict/words &&
|
2004-06-10 13:47:11 +08:00
|
|
|
echo $(hostname) >> /usr/share/dict/extra.words</command></userinput></screen>
|
|
|
|
|
2004-06-17 01:02:15 +08:00
|
|
|
<para>The wordlist is linked to <filename>/usr/share/dict/words</filename> as
|
|
|
|
historically, <filename>words</filename> is the primary wordlist in the
|
2004-07-01 05:20:29 +08:00
|
|
|
<filename class="directory">/usr/share/dict</filename> directory. Additionally,
|
|
|
|
the value of <command>hostname</command> is echoed to a file called
|
|
|
|
<filename>extra.words</filename>. This extra file is intended to be a site
|
|
|
|
specific list which includes easy to guess passwords such as company or
|
|
|
|
department names, user's names, product names, computer names, domain names,
|
|
|
|
etc.</para>
|
2004-06-17 01:02:15 +08:00
|
|
|
|
2004-07-01 05:20:29 +08:00
|
|
|
<para>Now apply the <acronym>BLFS</acronym> patch:</para>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
|
|
|
<screen><userinput><command>patch -Np1 -i ../cracklib,&cracklib-version;-blfs-1.patch</command></userinput></screen>
|
|
|
|
|
2004-07-01 05:20:29 +08:00
|
|
|
<para>If necessary, apply the <application>Heimdal</application> patch:</para>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
|
|
|
<screen><userinput><command>cp -R cracklib cracklib_krb5 &&
|
|
|
|
patch -Np1 -i ../cracklib,&cracklib-version;-heimdal-1.patch</command></userinput></screen>
|
|
|
|
|
2005-03-22 21:15:11 +08:00
|
|
|
<para>Finally, as the root user, build and install the package:</para>
|
2005-02-26 23:46:21 +08:00
|
|
|
<screen><userinput role='root'><command>make install &&
|
2005-03-23 23:36:52 +08:00
|
|
|
rm -v /lib/libcrack.so &&
|
|
|
|
ln -v -sf ../../lib/libcrack.so.2.7 /usr/lib/libcrack.so</command></userinput></screen>
|
2005-02-26 23:46:21 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
|
|
|
|
2005-03-23 23:36:52 +08:00
|
|
|
<para><command>rm -v /lib/libcrack.so; ln -v -sf ...
|
|
|
|
/usr/lib/libcrack.so</command>: These two commands move the
|
|
|
|
<filename class='symlink'>libcrack.so</filename>
|
2005-02-26 23:46:21 +08:00
|
|
|
symlink from <filename class='directory'>/lib</filename> to
|
|
|
|
<filename class='directory'>/usr/lib</filename>.</para>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Contents</title>
|
|
|
|
|
2005-01-08 01:42:45 +08:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
<seglistitem>
|
|
|
|
<seg>create-cracklib-dict, mkdict and packer</seg>
|
|
|
|
<seg>libcrack.so and optionally, libcrack_krb5.so</seg>
|
|
|
|
<seg>/usr/share/dict</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
|
|
|
|
<varlistentry id="libcrack">
|
|
|
|
<term><filename class='libraryfile'>libcrack.so</filename></term>
|
2005-01-17 00:56:15 +08:00
|
|
|
<listitem><para> libraries provide a fast dictionary lookup method for strong
|
|
|
|
password enforcement.</para>
|
2005-01-08 01:42:45 +08:00
|
|
|
<indexterm zone="cracklib libcrack">
|
|
|
|
<primary sortas="c-libcrack">libcrack.so</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2004-06-10 13:47:11 +08:00
|
|
|
|
|
|
|
</sect2>
|
2004-04-22 22:04:15 +08:00
|
|
|
|
|
|
|
</sect1>
|