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

28 lines
1.3 KiB
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;-header-1.patch &amp;&amp;
patch -Np1 -i ../cracklib-&cracklib-version;-missing-1.patch &amp;&amp;
make DICTPATH=/usr/lib/cracklib_dict SRCDICTS=/usr/share/dict/words install &amp;&amp;
install -m644 cracklib/libcrack.a /usr/lib &amp;&amp;
install -m644 cracklib/crack.h /usr/include &amp;&amp;
install -m754 util/{mkdict,packer,create_cracklib_dict} /usr/sbin</command></userinput></screen>
</sect2>