Browse Source

Merge pull request #10818 from Cynerd/shadow-default-encryption-method

shadow: change default encryption method from DES to SHA512
lilik-openwrt-22.03
Rosen Penev 5 years ago
committed by GitHub
parent
commit
5e4c1b638e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions
  1. +1
    -1
      utils/shadow/Makefile
  2. +11
    -0
      utils/shadow/patches/005-set-encrypt-method-sha512.patch

+ 1
- 1
utils/shadow/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=shadow
PKG_VERSION:=4.6
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/shadow-maint/shadow/releases/download/$(PKG_VERSION)


+ 11
- 0
utils/shadow/patches/005-set-encrypt-method-sha512.patch View File

@ -0,0 +1,11 @@
--- 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.

Loading…
Cancel
Save