glfs/postlfs/security/cracklib/cracklib-inst.xml

24 lines
996 B
XML
Raw Normal View History

<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/ &amp;&amp;
chmod 0644 /usr/share/dict &amp;&amp;
cp <replaceable>[wordlist]</replaceable> /usr/share/dict &amp;&amp;
chmod 0644 /usr/share/dict/<replaceable>[wordlist]</replaceable> &amp;&amp;
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
<filename class="directory">/usr/share/dict</filename> directory. You are
welcome to shun history and adjust for your own needs.</para>
<para>Now install cracklib using the following commands:</para>
<screen><userinput><command>patch -Np1 -i ../cracklib-&cracklib-version;-blfs-3.patch &amp;&amp;
make install</command></userinput></screen>
</sect2>