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 |
|
---|
21 | <sect2>
|
---|
22 | <title>Introduction to <application>cracklib</application></title>
|
---|
23 |
|
---|
24 | <para>The cracklib package contains a library used to enforce strong passwords
|
---|
25 | by comparing user selected passwords to words in a 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 cracklib. There
|
---|
49 | are two wordlists to choose from at the following location. Use the
|
---|
50 | <filename>cracklib</filename> word list for good security, or opt for the
|
---|
51 | <filename>allwords</filename> word list for lightweight machines short on
|
---|
52 | <acronym>RAM</acronym>. You can of course choose any other word list that you
|
---|
53 | have at your disposal.</para>
|
---|
54 |
|
---|
55 | <para>cracklib (&crackdict-size;): <ulink url="http://www.cotse.com/wordlists/cracklib"/></para>
|
---|
56 | <para>allwords (&alldict-size;): <ulink url="http://www.cotse.com/wordlists/allwords"/></para>
|
---|
57 |
|
---|
58 | </sect3>
|
---|
59 |
|
---|
60 | </sect2>
|
---|
61 |
|
---|
62 | <sect2>
|
---|
63 | <title>Installation of <application>cracklib</application></title>
|
---|
64 |
|
---|
65 | <para>First, we need to install the chosen word list for cracklib:</para>
|
---|
66 |
|
---|
67 | <screen><userinput><command>install -d -m755 /usr/share/dict &&
|
---|
68 | install -m644 <replaceable>[wordlist]</replaceable> /usr/share/dict &&
|
---|
69 | ln -sf <replaceable>[wordlist]</replaceable> /usr/share/dict/words &&
|
---|
70 | echo $(hostname) >> /usr/share/dict/extra.words</command></userinput></screen>
|
---|
71 |
|
---|
72 | <para>Our wordlist is linked to <filename>/usr/share/dict/words</filename> as
|
---|
73 | historically, <filename>words</filename> is the primary wordlist in the
|
---|
74 | <filename class="directory">/usr/share/dict</filename> directory. We also echo
|
---|
75 | the value of hostname to a file called extra.words. This extra file is intened
|
---|
76 | to be a site specific list which includes easy to guess passwords such as
|
---|
77 | company or department name, user's names, product names, computer name, domain
|
---|
78 | name, etc.</para>
|
---|
79 |
|
---|
80 | <para>Now apply BLFS patch:</para>
|
---|
81 |
|
---|
82 | <screen><userinput><command>patch -Np1 -i ../cracklib,&cracklib-version;-blfs-1.patch</command></userinput></screen>
|
---|
83 |
|
---|
84 | <para>If necessary, apply the heimdal patch:</para>
|
---|
85 |
|
---|
86 | <screen><userinput><command>cp -R cracklib cracklib_krb5 &&
|
---|
87 | patch -Np1 -i ../cracklib,&cracklib-version;-heimdal-1.patch</command></userinput></screen>
|
---|
88 |
|
---|
89 | <para>Finally install the package:</para>
|
---|
90 | <screen><userinput><command>make install</command></userinput></screen>
|
---|
91 |
|
---|
92 | </sect2>
|
---|
93 |
|
---|
94 | <sect2>
|
---|
95 | <title>Contents</title>
|
---|
96 |
|
---|
97 | <para>The <application>cracklib</application> package
|
---|
98 | contains the <filename class="libraryfile">libcrack</filename>
|
---|
99 | library.</para>
|
---|
100 |
|
---|
101 | </sect2>
|
---|
102 |
|
---|
103 | <sect2><title>Description</title>
|
---|
104 |
|
---|
105 | <sect3><title>libcrack library</title>
|
---|
106 | <para>The <filename class="libraryfile">libcrack</filename> library
|
---|
107 | provides a fast dictionary lookup method for strong password
|
---|
108 | enforcement.</para></sect3>
|
---|
109 |
|
---|
110 | </sect2>
|
---|
111 |
|
---|
112 | </sect1>
|
---|