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>
|
|
|
|
|
2004-05-03 16:46:59 +08:00
|
|
|
<screen><userinput><command>install -d -m755 /usr/share/dict &&
|
|
|
|
install -m644 <replaceable>[wordlist]</replaceable> /usr/share/dict &&
|
|
|
|
ln -sf <replaceable>[wordlist]</replaceable> /usr/share/dict/words &&
|
|
|
|
echo $(hostname) >> /usr/share/dict/extra.words</command></userinput></screen>
|
2004-04-22 22:04:15 +08:00
|
|
|
|
2004-05-03 16:46:59 +08:00
|
|
|
<para>Our wordlist is linked to
|
2004-04-22 22:04:15 +08:00
|
|
|
<filename>/usr/share/dict/words</filename> as historically,
|
2004-05-03 16:46:59 +08:00
|
|
|
<filename>words</filename> is the primary wordlist in the
|
|
|
|
<filename class="directory">/usr/share/dict</filename> directory. We
|
|
|
|
also echo the value of hostname to a file called extra.words. This
|
|
|
|
extra file is intened to be a site specific list which includes easy to
|
|
|
|
guess passwords such as company or department name, user's names,
|
|
|
|
product names, computer name, domain name, etc.</para>
|
2004-04-22 22:04:15 +08:00
|
|
|
|
2004-05-03 16:46:59 +08:00
|
|
|
<para>Now apply BLFS patch:</para>
|
2004-04-22 22:04:15 +08:00
|
|
|
|
2004-05-03 16:46:59 +08:00
|
|
|
<screen><userinput><command>patch -Np1 -i ../cracklib-&cracklib-version;-blfs-1.patch</command></userinput></screen>
|
|
|
|
|
|
|
|
<para>If necessary, apply the heimdal patch:</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>cp -R cracklib cracklib_krb5 &&
|
|
|
|
patch -Np1 -i ../cracklib-&cracklib-version;-heimdal-1.patch</command></userinput></screen>
|
|
|
|
|
|
|
|
<para>Finally install the package:</para>
|
|
|
|
<screen><userinput><command>make install</command></userinput></screen>
|
2004-04-22 22:04:15 +08:00
|
|
|
|
|
|
|
</sect2>
|