source: postlfs/security/cracklib.xml@ 86af98a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 86af98a was 86af98a, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Updated trunk sources to use DocBook DTD XML 4.4

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3629 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY cracklib-download-http "http://www.crypticide.com/users/alecm/security/cracklib,&cracklib-version;.tar.gz">
8 <!ENTITY cracklib-download-ftp "ftp://ftp.cerias.purdue.edu/pub/tools/unix/libs/cracklib/cracklib.&cracklib-version;.tar.gz">
9 <!ENTITY cracklib-http-md5sum "0c84ad7413d9dd3e5c2eaa5f97d53c4a">
10 <!ENTITY cracklib-ftp-md5sum "7f810e310c7f2df33d1eaa2b41ab2435">
11 <!ENTITY cracklib-size "21 KB">
12 <!ENTITY cracklib-buildsize "21.8 MB">
13 <!ENTITY cracklib-time "0.05 SBU">
14 <!ENTITY crackdict-size "15.6 MB">
15 <!ENTITY alldict-size "466 KB">
16]>
17
18<sect1 id="cracklib" xreflabel="cracklib-&cracklib-version;">
19<sect1info>
20<othername>$LastChangedBy$</othername>
21<date>$Date$</date>
22</sect1info>
23<?dbhtml filename="cracklib.html"?>
24<title>cracklib-&cracklib-version;</title>
25<indexterm zone="cracklib">
26<primary sortas="a-Cracklib">Cracklib</primary></indexterm>
27
28<sect2>
29<title>Introduction to <application>cracklib</application></title>
30
31<para>The <application>cracklib</application> package contains a library used
32to enforce strong passwords by comparing user selected passwords to words in a
33chosen wordlist.</para>
34
35<sect3><title>Package information</title>
36<itemizedlist spacing='compact'>
37<listitem><para>Download (HTTP): <ulink
38url="&cracklib-download-http;"/></para></listitem>
39<listitem><para>Download (FTP): <ulink
40url="&cracklib-download-ftp;"/></para></listitem>
41<listitem><para>Download MD5 sum (HTTP):
42&cracklib-http-md5sum;</para></listitem>
43<listitem><para>Download MD5 sum (FTP):
44&cracklib-ftp-md5sum;</para></listitem>
45<listitem><para>Download size: &cracklib-size;</para></listitem>
46<listitem><para>Estimated disk space required (with cracklib wordlist):
47&cracklib-buildsize;</para></listitem>
48<listitem><para>Estimated build time:
49&cracklib-time;</para></listitem></itemizedlist>
50</sect3>
51
52<sect3><title>Additional downloads</title>
53<itemizedlist spacing='compact'>
54<listitem><para>Required Patch: <ulink
55url="&patch-root;/cracklib,&cracklib-version;-blfs-1.patch"/></para></listitem>
56<listitem><para>Recommended Patch: <ulink
57url="&patch-root;/cracklib,&cracklib-version;-heimdal-1.patch"/></para>
58</listitem>
59</itemizedlist>
60
61<para>You will also need to download a wordlist for use with
62<application>cracklib</application>. There are two wordlists to choose from at
63the following location. Use the <filename>cracklib</filename> word list for
64good security, or opt for the <filename>allwords</filename> word list for
65lightweight machines short on <acronym>RAM</acronym>. You can of course choose
66any other word list that you have at your disposal.</para>
67
68<itemizedlist spacing='compact'>
69<listitem><para>cracklib (&crackdict-size;) at <ulink
70url="http://www.cotse.com/tools/wordlists.htm"/></para></listitem>
71<listitem><para>allwords (&alldict-size;) at <ulink
72url="http://www.cotse.com/tools/wordlists.htm"/></para></listitem>
73</itemizedlist>
74
75</sect3>
76
77</sect2>
78
79<sect2>
80<title>Installation of <application>cracklib</application></title>
81
82<para>First, as the root user, install the chosen word list for
83<application>cracklib</application>:</para>
84
85<screen><userinput role='root'><command>install -v -d -m755 /usr/share/dict &amp;&amp;
86install -v -m644 ../<replaceable>[wordlist]</replaceable> /usr/share/dict &amp;&amp;
87ln -v -sf <replaceable>[wordlist]</replaceable> /usr/share/dict/words &amp;&amp;
88echo $(hostname) >> /usr/share/dict/extra.words</command></userinput></screen>
89
90<para>The wordlist is linked to <filename>/usr/share/dict/words</filename> as
91historically, <filename>words</filename> is the primary wordlist in the
92<filename class="directory">/usr/share/dict</filename> directory. Additionally,
93the value of <command>hostname</command> is echoed to a file called
94<filename>extra.words</filename>. This extra file is intended to be a site
95specific list which includes easy to guess passwords such as company or
96department names, user's names, product names, computer names, domain names,
97etc.</para>
98
99<para>Now apply the <acronym>BLFS</acronym> patch:</para>
100
101<screen><userinput><command>patch -Np1 -i ../cracklib,&cracklib-version;-blfs-1.patch</command></userinput></screen>
102
103<para>If necessary, apply the <application>Heimdal</application> patch:</para>
104
105<screen><userinput><command>cp -R cracklib cracklib_krb5 &amp;&amp;
106patch -Np1 -i ../cracklib,&cracklib-version;-heimdal-1.patch</command></userinput></screen>
107
108<para>Finally, as the root user, build and install the package:</para>
109<screen><userinput role='root'><command>make install &amp;&amp;
110rm -v /lib/libcrack.so &amp;&amp;
111ln -v -sf ../../lib/libcrack.so.2.7 /usr/lib/libcrack.so</command></userinput></screen>
112
113</sect2>
114
115<sect2>
116<title>Command explanations</title>
117
118<para><command>rm -v /lib/libcrack.so; ln -v -sf ...
119/usr/lib/libcrack.so</command>: These two commands move the
120<filename class='symlink'>libcrack.so</filename>
121symlink from <filename class='directory'>/lib</filename> to
122<filename class='directory'>/usr/lib</filename>.</para>
123
124</sect2>
125
126<sect2>
127<title>Contents</title>
128
129<segmentedlist>
130<segtitle>Installed Programs</segtitle>
131<segtitle>Installed Libraries</segtitle>
132<segtitle>Installed Directory</segtitle>
133<seglistitem>
134<seg>create-cracklib-dict, mkdict and packer</seg>
135<seg>libcrack.so and optionally, libcrack_krb5.so</seg>
136<seg>/usr/share/dict</seg>
137</seglistitem>
138</segmentedlist>
139
140<variablelist>
141<bridgehead renderas="sect3">Short Descriptions</bridgehead>
142<?dbfo list-presentation="list"?>
143
144<varlistentry id="libcrack">
145<term><filename class='libraryfile'>libcrack.so</filename></term>
146<listitem><para> libraries provide a fast dictionary lookup method for strong
147password enforcement.</para>
148<indexterm zone="cracklib libcrack">
149<primary sortas="c-libcrack">libcrack.so</primary></indexterm>
150</listitem>
151</varlistentry>
152</variablelist>
153
154</sect2>
155
156</sect1>
Note: See TracBrowser for help on using the repository browser.