aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/shadow.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/shadow.xml')
-rw-r--r--chapter06/shadow.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/chapter06/shadow.xml b/chapter06/shadow.xml
index 9dbac598e..81e711ff2 100644
--- a/chapter06/shadow.xml
+++ b/chapter06/shadow.xml
@@ -29,6 +29,11 @@ Diffutils, GCC, Gettext, Glibc, Grep, Make, and Sed</seg></seglistitem>
<sect2 role="installation">
<title>Installation of Shadow</title>
+<note><para>If you would like to enforce the use of strong passwords, refer to
+<ulink url="&blfs-root;view/svn/postlfs/cracklib.html"/> for installing Cracklib
+prior to building Shadow. Then add <parameter>--with-libcrack</parameter> to the
+<command>configure</command> command below.</para></note>
+
<para>Prepare Shadow for compilation:</para>
<screen><userinput>./configure --libdir=/lib --enable-shared</userinput></screen>
@@ -68,6 +73,12 @@ file while copying it to its destination:</para>
<indexterm zone="shadow-login_defs"><primary sortas="e-/etc/login.defs">/etc/login.defs</primary></indexterm>
+<note><para>If you built Shadow with Cracklib support, insert the following into
+the <command>sed</command> given below:</para>
+
+<screen><literal>-e 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@'</literal></screen>
+</note>
+
<screen><userinput>sed -e's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
-e 's@/var/spool/mail@/var/mail@' \
etc/login.defs.linux &gt; /etc/login.defs</userinput></screen>