source: postlfs/security/cracklib.xml@ aadd9ef

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 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 aadd9ef was aadd9ef, checked in by Randy McMurchy <randy@…>, 19 years ago

Modified Linux-PAM and cracklib instructions to properly create the .so symlinks only in /usr/lib

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

  • Property mode set to 100644
File size: 5.9 KB
RevLine 
[b4b71892]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//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">
[5f084a2]9 <!ENTITY cracklib-http-md5sum "0c84ad7413d9dd3e5c2eaa5f97d53c4a">
10 <!ENTITY cracklib-ftp-md5sum "7f810e310c7f2df33d1eaa2b41ab2435">
[b4b71892]11 <!ENTITY cracklib-size "21 KB">
12 <!ENTITY cracklib-buildsize "17 MB">
13 <!ENTITY cracklib-time "0.10 SBU">
14 <!ENTITY crackdict-size "15.6MB">
15 <!ENTITY alldict-size "466KB">
16]>
17
[fa48bf3]18<sect1 id="cracklib" xreflabel="cracklib-&cracklib-version;">
[c881854]19<sect1info>
[5cd0959d]20<othername>$LastChangedBy$</othername>
21<date>$Date$</date>
[c881854]22</sect1info>
[bae6e15]23<?dbhtml filename="cracklib.html"?>
[fa48bf3]24<title>cracklib-&cracklib-version;</title>
[89adf24]25<indexterm zone="cracklib">
[6a2bce2]26<primary sortas="a-Cracklib">Cracklib</primary></indexterm>
[fa48bf3]27
[b4b71892]28<sect2>
29<title>Introduction to <application>cracklib</application></title>
30
[2197589]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>
[b4b71892]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>
[5f084a2]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>
[b4b71892]45<listitem><para>Download size: &cracklib-size;</para></listitem>
[518538f]46<listitem><para>Estimated disk space required (with cracklib wordlist):
[b4b71892]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'>
[07b157f4]54<listitem><para>Required Patch: <ulink
[b4b71892]55url="&patch-root;/cracklib,&cracklib-version;-blfs-1.patch"/></para></listitem>
[07b157f4]56<listitem><para>Recommended Patch: <ulink
[6a2bce2]57url="&patch-root;/cracklib,&cracklib-version;-heimdal-1.patch"/></para>
58</listitem>
[b4b71892]59</itemizedlist>
60
[2197589]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>
[b4b71892]67
[2197589]68<itemizedlist spacing='compact'>
[89adf24]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>
[2197589]73</itemizedlist>
[b4b71892]74
75</sect3>
76
77</sect2>
78
79<sect2>
80<title>Installation of <application>cracklib</application></title>
81
[17fb537e]82<para>First, as the root user, install the chosen word list for
[169987d0]83<application>cracklib</application>:</para>
[b4b71892]84
[17fb537e]85<screen><userinput role='root'><command>install -d -m755 /usr/share/dict &amp;&amp;
[169987d0]86install -m644 ../<replaceable>[wordlist]</replaceable> /usr/share/dict &amp;&amp;
[b4b71892]87ln -sf <replaceable>[wordlist]</replaceable> /usr/share/dict/words &amp;&amp;
88echo $(hostname) >> /usr/share/dict/extra.words</command></userinput></screen>
89
[4f65b2f]90<para>The wordlist is linked to <filename>/usr/share/dict/words</filename> as
91historically, <filename>words</filename> is the primary wordlist in the
[2197589]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>
[4f65b2f]98
[2197589]99<para>Now apply the <acronym>BLFS</acronym> patch:</para>
[b4b71892]100
101<screen><userinput><command>patch -Np1 -i ../cracklib,&cracklib-version;-blfs-1.patch</command></userinput></screen>
102
[2197589]103<para>If necessary, apply the <application>Heimdal</application> patch:</para>
[b4b71892]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
[17fb537e]108<para>Finally, as the root user, install the package:</para>
[aadd9ef]109<screen><userinput role='root'><command>make install &amp;&amp;
110rm /lib/libcrack.so &amp;&amp;
111ln -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 /lib/libcrack.so; ln -sf ... /usr/lib/libcrack.so</command>:
119These two commands move the <filename class='symlink'>libcrack.so</filename>
120symlink from <filename class='directory'>/lib</filename> to
121<filename class='directory'>/usr/lib</filename>.</para>
[b4b71892]122
123</sect2>
124
125<sect2>
126<title>Contents</title>
127
[89adf24]128<segmentedlist>
129<segtitle>Installed Programs</segtitle>
130<segtitle>Installed Libraries</segtitle>
131<segtitle>Installed Directory</segtitle>
132<seglistitem>
133<seg>create-cracklib-dict, mkdict and packer</seg>
134<seg>libcrack.so and optionally, libcrack_krb5.so</seg>
135<seg>/usr/share/dict</seg>
136</seglistitem>
137</segmentedlist>
138
139<variablelist>
140<bridgehead renderas="sect3">Short Descriptions</bridgehead>
141<?dbfo list-presentation="list"?>
142
143<varlistentry id="libcrack">
144<term><filename class='libraryfile'>libcrack.so</filename></term>
[6a2bce2]145<listitem><para> libraries provide a fast dictionary lookup method for strong
146password enforcement.</para>
[89adf24]147<indexterm zone="cracklib libcrack">
148<primary sortas="c-libcrack">libcrack.so</primary></indexterm>
149</listitem>
150</varlistentry>
151</variablelist>
[b4b71892]152
153</sect2>
[fa48bf3]154
155</sect1>
Note: See TracBrowser for help on using the repository browser.