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