Tagged cracklib.xml

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4195 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Manuel Canales Esparcia 2005-05-13 19:05:44 +00:00
parent 152fb77485
commit 9623b6e8ca

View File

@ -16,104 +16,126 @@
]> ]>
<sect1 id="cracklib" xreflabel="cracklib-&cracklib-version;"> <sect1 id="cracklib" xreflabel="cracklib-&cracklib-version;">
<?dbhtml filename="cracklib.html"?>
<sect1info> <sect1info>
<othername>$LastChangedBy$</othername> <othername>$LastChangedBy$</othername>
<date>$Date$</date> <date>$Date$</date>
</sect1info> </sect1info>
<?dbhtml filename="cracklib.html"?>
<title>cracklib-&cracklib-version;</title> <title>Cracklib-&cracklib-version;</title>
<indexterm zone="cracklib"> <indexterm zone="cracklib">
<primary sortas="a-Cracklib">Cracklib</primary></indexterm> <primary sortas="a-Cracklib">Cracklib</primary>
</indexterm>
<sect2> <sect2 role="package">
<title>Introduction to <application>cracklib</application></title> <title>Introduction to Cracklib</title>
<para>The <application>cracklib</application> package contains a library used <para>The <application>cracklib</application> package contains a
to enforce strong passwords by comparing user selected passwords to words in a library used to enforce strong passwords by comparing user selected
chosen wordlist.</para> passwords to words in a chosen wordlist.</para>
<sect3><title>Package information</title> <bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&cracklib-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&cracklib-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum (HTTP): &cracklib-http-md5sum;</para>
</listitem>
<listitem>
<para>Download MD5 sum (FTP): &cracklib-ftp-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &cracklib-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &cracklib-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &cracklib-time;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing='compact'> <itemizedlist spacing='compact'>
<listitem><para>Download (HTTP): <ulink <listitem>
url="&cracklib-download-http;"/></para></listitem> <para>Required Patch: <ulink
<listitem><para>Download (FTP): <ulink url="&patch-root;/cracklib,&cracklib-version;-blfs-1.patch"/></para>
url="&cracklib-download-ftp;"/></para></listitem> </listitem>
<listitem><para>Download MD5 sum (HTTP): <listitem>
&cracklib-http-md5sum;</para></listitem> <para>Recommended Patch: <ulink
<listitem><para>Download MD5 sum (FTP):
&cracklib-ftp-md5sum;</para></listitem>
<listitem><para>Download size: &cracklib-size;</para></listitem>
<listitem><para>Estimated disk space required (with cracklib wordlist):
&cracklib-buildsize;</para></listitem>
<listitem><para>Estimated build time:
&cracklib-time;</para></listitem></itemizedlist>
</sect3>
<sect3><title>Additional downloads</title>
<itemizedlist spacing='compact'>
<listitem><para>Required Patch: <ulink
url="&patch-root;/cracklib,&cracklib-version;-blfs-1.patch"/></para></listitem>
<listitem><para>Recommended Patch: <ulink
url="&patch-root;/cracklib,&cracklib-version;-heimdal-1.patch"/></para> url="&patch-root;/cracklib,&cracklib-version;-heimdal-1.patch"/></para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
<para>You will also need to download a wordlist for use with <para>You will also need to download a wordlist for use with
<application>cracklib</application>. There are two wordlists to choose from at <application>cracklib</application>. There are two wordlists
the following location. Use the <filename>cracklib</filename> word list for to choose from at the following location. Use the
good security, or opt for the <filename>allwords</filename> word list for <filename>cracklib</filename> word list for good security, or
lightweight machines short on <acronym>RAM</acronym>. You can of course choose opt for the <filename>allwords</filename> word list for
lightweight machines short on RAM. You can of course choose
any other word list that you have at your disposal.</para> any other word list that you have at your disposal.</para>
<itemizedlist spacing='compact'> <itemizedlist spacing='compact'>
<listitem><para>cracklib (&crackdict-size;) at <ulink <listitem>
url="http://www.cotse.com/tools/wordlists.htm"/></para></listitem> <para>cracklib (&crackdict-size;) at <ulink
<listitem><para>allwords (&alldict-size;) at <ulink url="http://www.cotse.com/tools/wordlists.htm"/></para>
url="http://www.cotse.com/tools/wordlists.htm"/></para></listitem> </listitem>
<listitem>
<para>allwords (&alldict-size;) at <ulink
url="http://www.cotse.com/tools/wordlists.htm"/></para>
</listitem>
</itemizedlist> </itemizedlist>
</sect3>
</sect2> </sect2>
<sect2> <sect2 role="installation">
<title>Installation of <application>cracklib</application></title> <title>Installation of Cracklib</title>
<para>First, as the root user, install the chosen word list for <para>First, as the <systemitem class="username">root</systemitem>
user, install the chosen word list for
<application>cracklib</application>:</para> <application>cracklib</application>:</para>
<screen><userinput role='root'><command>install -v -d -m755 /usr/share/dict &amp;&amp; <screen role="root"><userinput>install -v -d -m755 /usr/share/dict &amp;&amp;
install -v -m644 ../<replaceable>[wordlist]</replaceable> /usr/share/dict &amp;&amp; install -v -m644 ../<replaceable>[wordlist]</replaceable> /usr/share/dict &amp;&amp;
ln -v -sf <replaceable>[wordlist]</replaceable> /usr/share/dict/words &amp;&amp; ln -v -sf <replaceable>[wordlist]</replaceable> /usr/share/dict/words &amp;&amp;
echo $(hostname) >> /usr/share/dict/extra.words</command></userinput></screen> echo $(hostname) >> /usr/share/dict/extra.words</userinput></screen>
<para>The wordlist is linked to <filename>/usr/share/dict/words</filename> as <para>The wordlist is linked to <filename>/usr/share/dict/words</filename>
historically, <filename>words</filename> is the primary wordlist in the as historically, <filename>words</filename> is the primary wordlist in the
<filename class="directory">/usr/share/dict</filename> directory. Additionally, <filename class="directory">/usr/share/dict</filename> directory.
the value of <command>hostname</command> is echoed to a file called Additionally, the value of <command>hostname</command> is echoed to a file
<filename>extra.words</filename>. This extra file is intended to be a site called <filename>extra.words</filename>. This extra file is intended to be
specific list which includes easy to guess passwords such as company or a site specific list which includes easy to guess passwords such as company
department names, user's names, product names, computer names, domain names, or department names, user's names, product names, computer names, domain
etc.</para> names, etc.</para>
<para>Now apply the <acronym>BLFS</acronym> patch:</para> <para>Now apply the BLFS patch:</para>
<screen><userinput><command>patch -Np1 -i ../cracklib,&cracklib-version;-blfs-1.patch</command></userinput></screen> <screen><userinput>patch -Np1 -i ../cracklib,&cracklib-version;-blfs-1.patch</userinput></screen>
<para>If necessary, apply the <application>Heimdal</application> patch:</para> <para>If necessary, apply the <application>Heimdal</application>
patch:</para>
<screen><userinput><command>cp -R cracklib cracklib_krb5 &amp;&amp; <screen><userinput>cp -R cracklib cracklib_krb5 &amp;&amp;
patch -Np1 -i ../cracklib,&cracklib-version;-heimdal-1.patch</command></userinput></screen> patch -Np1 -i ../cracklib,&cracklib-version;-heimdal-1.patch</userinput></screen>
<para>Finally, as the root user, build and install the package:</para> <para>Finally, as the <systemitem class="username">root</systemitem>
<screen><userinput role='root'><command>make install &amp;&amp; user, build and install the package:</para>
<screen role="root"><userinput>make install &amp;&amp;
rm -v /lib/libcrack.so &amp;&amp; rm -v /lib/libcrack.so &amp;&amp;
ln -v -sf ../../lib/libcrack.so.2.7 /usr/lib/libcrack.so</command></userinput></screen> ln -v -sf ../../lib/libcrack.so.2.7 /usr/lib/libcrack.so</userinput></screen>
</sect2> </sect2>
<sect2> <sect2 role="commands">
<title>Command explanations</title> <title>Command Explanations</title>
<para><command>rm -v /lib/libcrack.so; ln -v -sf ... <para><command>rm -v /lib/libcrack.so; ln -v -sf ...
/usr/lib/libcrack.so</command>: These two commands move the /usr/lib/libcrack.so</command>: These two commands move the
@ -123,15 +145,16 @@ symlink from <filename class='directory'>/lib</filename> to
</sect2> </sect2>
<sect2> <sect2 role="content">
<title>Contents</title> <title>Contents</title>
<segmentedlist> <segmentedlist>
<segtitle>Installed Programs</segtitle> <segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle> <segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directory</segtitle> <segtitle>Installed Directory</segtitle>
<seglistitem> <seglistitem>
<seg>create-cracklib-dict, mkdict and packer</seg> <seg>create-cracklib-dict, mkdict, and packer</seg>
<seg>libcrack.so and optionally, libcrack_krb5.so</seg> <seg>libcrack.so and optionally, libcrack_krb5.so</seg>
<seg>/usr/share/dict</seg> <seg>/usr/share/dict</seg>
</seglistitem> </seglistitem>
@ -140,15 +163,19 @@ symlink from <filename class='directory'>/lib</filename> to
<variablelist> <variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead> <bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?> <?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libcrack"> <varlistentry id="libcrack">
<term><filename class='libraryfile'>libcrack.so</filename></term> <term><filename class='libraryfile'>libcrack.so</filename></term>
<listitem><para> libraries provide a fast dictionary lookup method for strong <listitem>
<para>provide a fast dictionary lookup method for strong
password enforcement.</para> password enforcement.</para>
<indexterm zone="cracklib libcrack"> <indexterm zone="cracklib libcrack">
<primary sortas="c-libcrack">libcrack.so</primary></indexterm> <primary sortas="c-libcrack">libcrack.so</primary>
</indexterm>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>
</sect2> </sect2>