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