openwrt-packages/utils/shadow/patches/005-set-encrypt-method-sha5...

12 lines
301 B
Diff

--- a/etc/login.defs
+++ b/etc/login.defs
@@ -317,7 +317,7 @@ CHFN_RESTRICT rwh
# Note: If you use PAM, it is recommended to use a value consistent with
# the PAM modules configuration.
#
-#ENCRYPT_METHOD DES
+ENCRYPT_METHOD SHA512
#
# Only works if ENCRYPT_METHOD is set to SHA256 or SHA512.