mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-07-21 11:45:07 +01:00
Automatic merge of trunk into multilib
This commit is contained in:
commit
43063fe19c
@ -62,7 +62,9 @@ find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;</userinput></s
|
|||||||
<para id="shadow-login_defs">Instead of using the default
|
<para id="shadow-login_defs">Instead of using the default
|
||||||
<emphasis>crypt</emphasis> method, use the more secure
|
<emphasis>crypt</emphasis> method, use the more secure
|
||||||
<emphasis>SHA-512</emphasis> method of password encryption, which also
|
<emphasis>SHA-512</emphasis> method of password encryption, which also
|
||||||
allows passwords longer than 8 characters. It is also necessary to change
|
allows passwords longer than 8 characters. In addition, set the number of
|
||||||
|
rounds to 500,000 instead of the default 5000, which is much too low to
|
||||||
|
prevent brute force password attacks. It is also necessary to change
|
||||||
the obsolete <filename class="directory">/var/spool/mail</filename> location
|
the obsolete <filename class="directory">/var/spool/mail</filename> location
|
||||||
for user mailboxes that Shadow uses by default to the <filename
|
for user mailboxes that Shadow uses by default to the <filename
|
||||||
class="directory">/var/mail</filename> location used currently. And,
|
class="directory">/var/mail</filename> location used currently. And,
|
||||||
@ -80,6 +82,7 @@ find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;</userinput></s
|
|||||||
</note>
|
</note>
|
||||||
|
|
||||||
<screen><userinput remap="pre">sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \
|
<screen><userinput remap="pre">sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \
|
||||||
|
-e 's@#\(SHA_CRYPT_..._ROUNDS 5000\)@\100@' \
|
||||||
-e 's:/var/spool/mail:/var/mail:' \
|
-e 's:/var/spool/mail:/var/mail:' \
|
||||||
-e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \
|
-e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \
|
||||||
-i etc/login.defs</userinput></screen>
|
-i etc/login.defs</userinput></screen>
|
||||||
|
Loading…
Reference in New Issue
Block a user