From 4b173dcf7c96961f2f4c521e4aaeee0db795a1a6 Mon Sep 17 00:00:00 2001 From: "yadi.hu@windriver.com" Date: Fri, 25 May 2018 10:48:10 +0800 Subject: 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. (From OE-Core rev: f6efc1dbd1f3a0f68ee731ff2b5a5d798ecf2cf8) (From OE-Core rev: 67a504e3bfa8272c0ced9caf98e38896c576e3b8) Signed-off-by: Hu Signed-off-by: Wenzong Fan Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster Signed-off-by: Richard Purdie --- meta/recipes-extended/shadow/files/pam.d/chpasswd | 2 ++ meta/recipes-extended/shadow/files/pam.d/newusers | 2 ++ 2 files changed, 4 insertions(+) (limited to 'meta/recipes-extended') 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 -- cgit v1.2.3-54-g00ecf