mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-10 04:54:44 +08:00
28 lines
1.3 KiB
XML
28 lines
1.3 KiB
XML
|
<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
|
||
|
<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 &&
|
||
|
patch -Np1 -i ../cracklib-&cracklib-version;-missing-1.patch &&
|
||
|
make DICTPATH=/usr/lib/cracklib_dict SRCDICTS=/usr/share/dict/words install &&
|
||
|
install -m644 cracklib/libcrack.a /usr/lib &&
|
||
|
install -m644 cracklib/crack.h /usr/include &&
|
||
|
install -m754 util/{mkdict,packer,create_cracklib_dict} /usr/sbin</command></userinput></screen>
|
||
|
|
||
|
</sect2>
|