From: yadi.hu@windriver.com Date: Fri, 25 May 2018 02:48:10 +0000 (+0800) Subject: shadow: fix pam configs for chpasswd, newusers X-Git-Tag: uninative-2.1~82 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=f6efc1dbd1f3a0f68ee731ff2b5a5d798ecf2cf8;p=openembedded-core.git shadow: fix pam configs for chpasswd, newusers Fix below errors while pam is enabled on target: root@qemux86:~# newusers newusers: PAM: Authentication failure root@qemux86:~# chpasswd chpasswd: PAM: Authentication failure The configs copied from "chgpasswd" which command works with pam. Signed-off-by: Hu Signed-off-by: Wenzong Fan Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/shadow/files/pam.d/chpasswd b/meta/recipes-extended/shadow/files/pam.d/chpasswd index 9e3efa68ba..b769d92ba4 100644 --- a/meta/recipes-extended/shadow/files/pam.d/chpasswd +++ b/meta/recipes-extended/shadow/files/pam.d/chpasswd @@ -1,4 +1,6 @@ # The PAM configuration file for the Shadow 'chpasswd' service # +auth sufficient pam_rootok.so +account required pam_permit.so password include common-password diff --git a/meta/recipes-extended/shadow/files/pam.d/newusers b/meta/recipes-extended/shadow/files/pam.d/newusers index 4aa3dde48b..4c59dfa478 100644 --- a/meta/recipes-extended/shadow/files/pam.d/newusers +++ b/meta/recipes-extended/shadow/files/pam.d/newusers @@ -1,4 +1,6 @@ # The PAM configuration file for the Shadow 'newusers' service # +auth sufficient pam_rootok.so +account required pam_permit.so password include common-password