1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY cracklib-download-http "http://prdownloads.sourceforge.net/cracklib/cracklib-&cracklib-version;.tar.gz">
|
---|
8 | <!ENTITY cracklib-download-ftp " ">
|
---|
9 | <!ENTITY cracklib-http-md5sum "13f82f75b892cbd0ba7cb9069e307006">
|
---|
10 | <!ENTITY cracklib-size "480 KB">
|
---|
11 | <!ENTITY cracklib-buildsize "27.6 MB">
|
---|
12 | <!ENTITY cracklib-time "0.1 SBU">
|
---|
13 | <!ENTITY crackdict-download "http://prdownloads.sourceforge.net/cracklib/cracklib-words.gz">
|
---|
14 | <!ENTITY crackdict-size "4.4 MB">
|
---|
15 | <!ENTITY crackdict-md5sum "d18e670e5df560a8745e1b4dede8f84f">
|
---|
16 | ]>
|
---|
17 |
|
---|
18 | <sect1 id="cracklib" xreflabel="CrackLib-&cracklib-version;">
|
---|
19 | <?dbhtml filename="cracklib.html"?>
|
---|
20 |
|
---|
21 | <sect1info>
|
---|
22 | <othername>$LastChangedBy$</othername>
|
---|
23 | <date>$Date$</date>
|
---|
24 | </sect1info>
|
---|
25 |
|
---|
26 | <title>CrackLib-&cracklib-version;</title>
|
---|
27 |
|
---|
28 | <indexterm zone="cracklib">
|
---|
29 | <primary sortas="a-CrackLib">CrackLib</primary>
|
---|
30 | </indexterm>
|
---|
31 |
|
---|
32 | <sect2 role="package">
|
---|
33 | <title>Introduction to CrackLib</title>
|
---|
34 |
|
---|
35 | <para>The <application>CrackLib</application> package contains a
|
---|
36 | library used to enforce strong passwords by comparing user selected
|
---|
37 | passwords to words in chosen word lists.</para>
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>Download (HTTP): <ulink url="&cracklib-download-http;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download (FTP): <ulink url="&cracklib-download-ftp;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download MD5 sum: &cracklib-http-md5sum;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download size: &cracklib-size;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated disk space required: &cracklib-buildsize;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated build time: &cracklib-time;</para>
|
---|
58 | </listitem>
|
---|
59 | </itemizedlist>
|
---|
60 |
|
---|
61 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
62 | <itemizedlist spacing='compact'>
|
---|
63 | <listitem>
|
---|
64 | <para>Recommended word list (size: &crackdict-size;;
|
---|
65 | md5sum: &crackdict-md5sum;): <ulink url="&crackdict-download;"/></para>
|
---|
66 | </listitem>
|
---|
67 | <listitem>
|
---|
68 | <para>Required patch to create a library used with the Heimdal
|
---|
69 | Kerberos 5 package: <ulink
|
---|
70 | url="&patch-root;/cracklib-&cracklib-version;-heimdal-1.patch"/></para>
|
---|
71 | </listitem>
|
---|
72 | </itemizedlist>
|
---|
73 |
|
---|
74 | <!-- <para>You will also need to download a wordlist for use with
|
---|
75 | <application>cracklib</application>. There are two wordlists
|
---|
76 | to choose from at the following location. Use the
|
---|
77 | <filename>cracklib</filename> word list for good security, or
|
---|
78 | opt for the <filename>allwords</filename> word list for
|
---|
79 | lightweight machines short on RAM. You can of course choose
|
---|
80 | any other word list that you have at your disposal.</para> -->
|
---|
81 |
|
---|
82 | </sect2>
|
---|
83 |
|
---|
84 | <sect2 role="installation">
|
---|
85 | <title>Installation of CrackLib</title>
|
---|
86 |
|
---|
87 | <para>If desired, apply the <application>Heimdal</application> patch
|
---|
88 | (note that with this patch the original library is not affected; this patch
|
---|
89 | only creates an additional library used by the
|
---|
90 | <application>Heimdal</application> password-checking routines):</para>
|
---|
91 |
|
---|
92 | <screen><userinput>patch -Np1 -i ../cracklib-&cracklib-version;-heimdal-1.patch</userinput></screen>
|
---|
93 |
|
---|
94 | <para>Install <application>CrackLib</application> by running the following
|
---|
95 | commands:</para>
|
---|
96 |
|
---|
97 | <screen><userinput>./configure --prefix=/usr --datadir=/lib &&
|
---|
98 | make</userinput></screen>
|
---|
99 |
|
---|
100 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
101 |
|
---|
102 | <screen role="root"><userinput>make install &&
|
---|
103 | mv -v /usr/lib/libcrack.so.2* /lib &&
|
---|
104 | ln -v -sf ../../lib/libcrack.so.2.8.0 /usr/lib/libcrack.so &&
|
---|
105 | install -v -m644 -D ../cracklib-words.gz \
|
---|
106 | /usr/share/dict/cracklib-words.gz &&
|
---|
107 | gunzip -v /usr/share/dict/cracklib-words.gz &&
|
---|
108 | ln -v -s cracklib-words /usr/share/dict/words &&
|
---|
109 | echo $(hostname) >>/usr/share/dict/cracklib-extra-words &&
|
---|
110 | create-cracklib-dict /usr/share/dict/cracklib-words \
|
---|
111 | /usr/share/dict/cracklib-extra-words</userinput></screen>
|
---|
112 |
|
---|
113 | <para>If desired, check the proper operation of the library as an
|
---|
114 | unprivileged user using the tests included with the package:</para>
|
---|
115 |
|
---|
116 | <screen><userinput>make test</userinput></screen>
|
---|
117 |
|
---|
118 | </sect2>
|
---|
119 |
|
---|
120 | <sect2 role="commands">
|
---|
121 | <title>Command Explanations</title>
|
---|
122 |
|
---|
123 | <para><parameter>--datadir=/lib</parameter>: This parameter forces the
|
---|
124 | installation of the <application>CrackLib</application> dictionary to the
|
---|
125 | <filename class='directory'>/lib</filename> hierarchy.</para>
|
---|
126 |
|
---|
127 | <para><command>mv -v /usr/lib/libcrack.so.2* /lib</command> and
|
---|
128 | <command>ln -v -sf ../../lib/libcrack.so.2.8.0 ...</command>: These two
|
---|
129 | commands move the <filename class='libraryfile'>libcrack.so.2.8.0</filename>
|
---|
130 | library and associated symlink from
|
---|
131 | <filename class='directory'>/usr/lib</filename> to
|
---|
132 | <filename class='directory'>/lib</filename>, then recreates the
|
---|
133 | <filename class='symlink'>/usr/lib/libcrack.so</filename> symlink pointing
|
---|
134 | to the relocated file.</para>
|
---|
135 |
|
---|
136 | <para><command>install -v -m644 -D ...</command>: This command creates the
|
---|
137 | <filename class='directory'>/usr/share/dict</filename> directory (if it
|
---|
138 | doesn't already exist) and installs the compressed word list there.</para>
|
---|
139 |
|
---|
140 | <para><command>ln -v -s cracklib-words /usr/share/dict/words</command>: The
|
---|
141 | word list is linked to <filename>/usr/share/dict/words</filename> as
|
---|
142 | historically, <filename>words</filename> is the primary word list in the
|
---|
143 | <filename class="directory">/usr/share/dict</filename> directory. Omit this
|
---|
144 | command if you already have a <filename>/usr/share/dict/words</filename>
|
---|
145 | file installed on your system.</para>
|
---|
146 |
|
---|
147 | <para><command>echo $(hostname) >>...</command>: The value of
|
---|
148 | <command>hostname</command> is echoed to a file called
|
---|
149 | <filename>cracklib-extra-words</filename>. This extra file is intended to be
|
---|
150 | a site specific list which includes easy to guess passwords such as company
|
---|
151 | or department names, user's names, product names, computer names, domain
|
---|
152 | names, etc.</para>
|
---|
153 |
|
---|
154 | <para><command>create-cracklib-dict ...</command>: This command creates the
|
---|
155 | <application>CrackLib</application> dictionary from the word lists.</para>
|
---|
156 |
|
---|
157 | </sect2>
|
---|
158 |
|
---|
159 | <sect2 role="content">
|
---|
160 | <title>Contents</title>
|
---|
161 |
|
---|
162 | <segmentedlist>
|
---|
163 | <segtitle>Installed Programs</segtitle>
|
---|
164 | <segtitle>Installed Libraries</segtitle>
|
---|
165 | <segtitle>Installed Directory</segtitle>
|
---|
166 |
|
---|
167 | <seglistitem>
|
---|
168 | <seg>cracklib-check, cracklib-format, cracklib-packer,
|
---|
169 | cracklib-unpacker and create-cracklib-dict</seg>
|
---|
170 | <seg>libcrack.[so,a] and optionally, libcrack_heimdal.[so,a]</seg>
|
---|
171 | <seg>/lib/cracklib and /usr/share/dict</seg>
|
---|
172 | </seglistitem>
|
---|
173 | </segmentedlist>
|
---|
174 |
|
---|
175 | <variablelist>
|
---|
176 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
177 | <?dbfo list-presentation="list"?>
|
---|
178 | <?dbhtml list-presentation="table"?>
|
---|
179 |
|
---|
180 | <varlistentry id="create-cracklib-dict">
|
---|
181 | <term><filename>create-cracklib-dict</filename></term>
|
---|
182 | <listitem>
|
---|
183 | <para>is used to create the <application>CrackLib</application>
|
---|
184 | dictionary from the given word list(s).</para>
|
---|
185 | <indexterm zone="cracklib create-cracklib-dict">
|
---|
186 | <primary sortas="b-create-cracklib-dict">create-cracklib-dict</primary>
|
---|
187 | </indexterm>
|
---|
188 | </listitem>
|
---|
189 | </varlistentry>
|
---|
190 |
|
---|
191 | <varlistentry id="libcrack">
|
---|
192 | <term><filename class='libraryfile'>libcrack.[so,a]</filename></term>
|
---|
193 | <listitem>
|
---|
194 | <para>provides a fast dictionary lookup method for strong
|
---|
195 | password enforcement.</para>
|
---|
196 | <indexterm zone="cracklib libcrack">
|
---|
197 | <primary sortas="c-libcrack">libcrack.[so,a]</primary>
|
---|
198 | </indexterm>
|
---|
199 | </listitem>
|
---|
200 | </varlistentry>
|
---|
201 |
|
---|
202 | </variablelist>
|
---|
203 |
|
---|
204 | </sect2>
|
---|
205 |
|
---|
206 | </sect1>
|
---|