[b4b71892] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 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">
|
---|
| 9 | <!ENTITY cracklib-size "21 KB">
|
---|
| 10 | <!ENTITY cracklib-buildsize "17 MB">
|
---|
| 11 | <!ENTITY cracklib-time "0.10 SBU">
|
---|
| 12 | <!ENTITY crackdict-size "15.6MB">
|
---|
| 13 | <!ENTITY alldict-size "466KB">
|
---|
| 14 | ]>
|
---|
| 15 |
|
---|
[fa48bf3] | 16 | <sect1 id="cracklib" xreflabel="cracklib-&cracklib-version;">
|
---|
[c881854] | 17 | <sect1info>
|
---|
[5cd0959d] | 18 | <othername>$LastChangedBy$</othername>
|
---|
| 19 | <date>$Date$</date>
|
---|
[c881854] | 20 | </sect1info>
|
---|
[bae6e15] | 21 | <?dbhtml filename="cracklib.html"?>
|
---|
[fa48bf3] | 22 | <title>cracklib-&cracklib-version;</title>
|
---|
| 23 |
|
---|
[b4b71892] | 24 | <sect2>
|
---|
| 25 | <title>Introduction to <application>cracklib</application></title>
|
---|
| 26 |
|
---|
[2197589] | 27 | <para>The <application>cracklib</application> package contains a library used
|
---|
| 28 | to enforce strong passwords by comparing user selected passwords to words in a
|
---|
| 29 | chosen wordlist.</para>
|
---|
[b4b71892] | 30 |
|
---|
| 31 | <sect3><title>Package information</title>
|
---|
| 32 | <itemizedlist spacing='compact'>
|
---|
| 33 | <listitem><para>Download (HTTP): <ulink
|
---|
| 34 | url="&cracklib-download-http;"/></para></listitem>
|
---|
| 35 | <listitem><para>Download (FTP): <ulink
|
---|
| 36 | url="&cracklib-download-ftp;"/></para></listitem>
|
---|
| 37 | <listitem><para>Download size: &cracklib-size;</para></listitem>
|
---|
| 38 | <listitem><para>Estimated Disk space required (with cracklib wordlist):
|
---|
| 39 | &cracklib-buildsize;</para></listitem>
|
---|
| 40 | <listitem><para>Estimated build time:
|
---|
| 41 | &cracklib-time;</para></listitem></itemizedlist>
|
---|
| 42 | </sect3>
|
---|
| 43 |
|
---|
| 44 | <sect3><title>Additional downloads</title>
|
---|
| 45 | <itemizedlist spacing='compact'>
|
---|
[07b157f4] | 46 | <listitem><para>Required Patch: <ulink
|
---|
[b4b71892] | 47 | url="&patch-root;/cracklib,&cracklib-version;-blfs-1.patch"/></para></listitem>
|
---|
[07b157f4] | 48 | <listitem><para>Recommended Patch: <ulink
|
---|
[b4b71892] | 49 | url="&patch-root;/cracklib,&cracklib-version;-heimdal-1.patch"/></para></listitem>
|
---|
| 50 | </itemizedlist>
|
---|
| 51 |
|
---|
[2197589] | 52 | <para>You will also need to download a wordlist for use with
|
---|
| 53 | <application>cracklib</application>. There are two wordlists to choose from at
|
---|
| 54 | the following location. Use the <filename>cracklib</filename> word list for
|
---|
| 55 | good security, or opt for the <filename>allwords</filename> word list for
|
---|
| 56 | lightweight machines short on <acronym>RAM</acronym>. You can of course choose
|
---|
| 57 | any other word list that you have at your disposal.</para>
|
---|
[b4b71892] | 58 |
|
---|
[2197589] | 59 | <itemizedlist spacing='compact'>
|
---|
| 60 | <listitem><para>cracklib (&crackdict-size;): <ulink
|
---|
| 61 | url="http://www.cotse.com/wordlists/cracklib"/></para></listitem>
|
---|
| 62 | <listitem><para>allwords (&alldict-size;): <ulink
|
---|
| 63 | url="http://www.cotse.com/wordlists/allwords"/></para></listitem>
|
---|
| 64 | </itemizedlist>
|
---|
[b4b71892] | 65 |
|
---|
| 66 | </sect3>
|
---|
| 67 |
|
---|
| 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2>
|
---|
| 71 | <title>Installation of <application>cracklib</application></title>
|
---|
| 72 |
|
---|
[169987d0] | 73 | <para>First, install the chosen word list for
|
---|
| 74 | <application>cracklib</application>:</para>
|
---|
[b4b71892] | 75 |
|
---|
| 76 | <screen><userinput><command>install -d -m755 /usr/share/dict &&
|
---|
[169987d0] | 77 | install -m644 ../<replaceable>[wordlist]</replaceable> /usr/share/dict &&
|
---|
[b4b71892] | 78 | ln -sf <replaceable>[wordlist]</replaceable> /usr/share/dict/words &&
|
---|
| 79 | echo $(hostname) >> /usr/share/dict/extra.words</command></userinput></screen>
|
---|
| 80 |
|
---|
[4f65b2f] | 81 | <para>The wordlist is linked to <filename>/usr/share/dict/words</filename> as
|
---|
| 82 | historically, <filename>words</filename> is the primary wordlist in the
|
---|
[2197589] | 83 | <filename class="directory">/usr/share/dict</filename> directory. Additionally,
|
---|
| 84 | the value of <command>hostname</command> is echoed to a file called
|
---|
| 85 | <filename>extra.words</filename>. This extra file is intended to be a site
|
---|
| 86 | specific list which includes easy to guess passwords such as company or
|
---|
| 87 | department names, user's names, product names, computer names, domain names,
|
---|
| 88 | etc.</para>
|
---|
[4f65b2f] | 89 |
|
---|
[2197589] | 90 | <para>Now apply the <acronym>BLFS</acronym> patch:</para>
|
---|
[b4b71892] | 91 |
|
---|
| 92 | <screen><userinput><command>patch -Np1 -i ../cracklib,&cracklib-version;-blfs-1.patch</command></userinput></screen>
|
---|
| 93 |
|
---|
[2197589] | 94 | <para>If necessary, apply the <application>Heimdal</application> patch:</para>
|
---|
[b4b71892] | 95 |
|
---|
| 96 | <screen><userinput><command>cp -R cracklib cracklib_krb5 &&
|
---|
| 97 | patch -Np1 -i ../cracklib,&cracklib-version;-heimdal-1.patch</command></userinput></screen>
|
---|
| 98 |
|
---|
[2197589] | 99 | <para>Finally, install the package:</para>
|
---|
[b4b71892] | 100 | <screen><userinput><command>make install</command></userinput></screen>
|
---|
| 101 |
|
---|
| 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | <sect2>
|
---|
| 105 | <title>Contents</title>
|
---|
| 106 |
|
---|
[2197589] | 107 | <para>The <application>cracklib</application> package contains the
|
---|
| 108 | <filename class="libraryfile">libcrack</filename> and optionally, the
|
---|
| 109 | <filename class="libraryfile">libcrack_krb5</filename> libraries.</para>
|
---|
[b4b71892] | 110 |
|
---|
| 111 | </sect2>
|
---|
| 112 |
|
---|
| 113 | <sect2><title>Description</title>
|
---|
| 114 |
|
---|
[2197589] | 115 | <sect3><title>libcrack libraries</title>
|
---|
| 116 | <para>The <filename class="libraryfile">libcrack</filename> libraries provide
|
---|
| 117 | a fast dictionary lookup method for strong password enforcement.</para></sect3>
|
---|
[b4b71892] | 118 |
|
---|
| 119 | </sect2>
|
---|
[fa48bf3] | 120 |
|
---|
| 121 | </sect1>
|
---|