2004-04-22 22:04:15 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of <application>cracklib</application></title>
|
|
|
|
|
|
|
|
<para>First, we need to install the chosen word list for cracklib:</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>mkdir -p /usr/share/dict/ &&
|
|
|
|
chmod 0644 /usr/share/dict &&
|
|
|
|
cp <replaceable>[wordlist]</replaceable> /usr/share/dict &&
|
|
|
|
chmod 0644 /usr/share/dict/<replaceable>[wordlist]</replaceable> &&
|
|
|
|
ln -sf <replaceable>[wordlist]</replaceable> /usr/share/dict/words</command></userinput></screen>
|
|
|
|
|
|
|
|
<para>Our word list is linked to
|
|
|
|
<filename>/usr/share/dict/words</filename> as historically,
|
|
|
|
<filename>words</filename> is the only file in the
|
2004-04-27 16:51:44 +08:00
|
|
|
<filename class="directory">/usr/share/dict</filename> directory. You are
|
|
|
|
welcome to shun history and adjust for your own needs.</para>
|
2004-04-22 22:04:15 +08:00
|
|
|
|
|
|
|
<para>Now install cracklib using the following commands:</para>
|
|
|
|
|
2004-05-02 07:16:24 +08:00
|
|
|
<screen><userinput><command>patch -Np1 -i ../cracklib-&cracklib-version;-blfs-3.patch &&
|
2004-04-27 16:51:44 +08:00
|
|
|
make install</command></userinput></screen>
|
2004-04-22 22:04:15 +08:00
|
|
|
|
|
|
|
</sect2>
|