浏览代码

r7702@server: jim | 2006-05-22 00:56:58 -0700
Fixed a support issue with Shadow's cracklib sed command.


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7625 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Jim Gifford 19 年之前
父节点
当前提交
f2e18a89ec
共有 2 个文件被更改,包括 16 次插入5 次删除
  1. 11 0
      chapter01/changelog.xml
  2. 5 5
      chapter06/shadow.xml

+ 11 - 0
chapter01/changelog.xml

@@ -36,6 +36,17 @@
     </listitem>
 -->
 
+    <listitem>
+      <para>May 22, 2006</para>
+      <itemizedlist>
+        <listitem>
+          <para>[jim] - Fixed a constant support question asked in #IRC and
+			the mailing lists about shadow's sed additional command
+		        for cracklib. Making it a not with a complete sed command.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
     <listitem>
       <para>May 15, 2006</para>
       <itemizedlist>

+ 5 - 5
chapter06/shadow.xml

@@ -126,17 +126,17 @@ convert-mans UTF-8 ISO-8859-9 man/tr/*.?</userinput></screen>
       <primary sortas="e-/etc/login.defs">/etc/login.defs</primary>
     </indexterm>
 
+<screen><userinput>sed -e's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
+    -e 's@/var/spool/mail@/var/mail@' \
+    etc/login.defs &gt; /etc/login.defs</userinput></screen>
+
     <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>
+<screen><literal>sed -i 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' /etc/login.defs</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 &gt; /etc/login.defs</userinput></screen>
-
     <para>Move a misplaced program to its proper location:</para>
 
 <screen><userinput>mv -v /usr/bin/passwd /bin</userinput></screen>