瀏覽代碼

Use SHA-512 to hash passwords. Fixes #2814.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9447 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Matthew Burgess 14 年之前
父節點
當前提交
81313bf207
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 4 0
      chapter01/changelog.xml
  2. 1 1
      chapter06/shadow.xml

+ 4 - 0
chapter01/changelog.xml

@@ -39,6 +39,10 @@
     <listitem>
       <para>2011-01-23</para>
       <itemizedlist>
+        <listitem>
+          <para>[matthew] Change password hashing from MD5 to SHA-512. Fixes
+          <ulink url="&lfs-ticket-root;2814">#2814</ulink>.</para>
+        </listitem>
         <listitem>
           <para>[matthew] Upgrade to File-5.05. Fixes
           <ulink url="&lfs-ticket-root;2821">#2821</ulink>.</para>

+ 1 - 1
chapter06/shadow.xml

@@ -70,7 +70,7 @@ find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;</userinput></scr
     for user mailboxes that Shadow uses by default to the <filename
     class="directory">/var/mail</filename> location used currently:</para>
 
-<screen><userinput remap="configure">sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD MD5@' \
+<screen><userinput remap="configure">sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \
        -e 's@/var/spool/mail@/var/mail@' etc/login.defs</userinput></screen>
 
     <note>