summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryadi.hu@windriver.com <yadi.hu@windriver.com>2018-05-25 10:48:10 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-29 21:07:17 +0100
commit5256f95d553fc561786dd04b2c07882943e94e5d (patch)
tree55791579b5dbc49b592f90372aae85d31d4bcba2
parentcad89370d814866f82d80aa8aace5fc7ca22e634 (diff)
downloadpoky-5256f95d553fc561786dd04b2c07882943e94e5d.tar.gz
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) Signed-off-by: Hu <yadi.hu@windriver.com> Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/shadow/files/pam.d/chpasswd2
-rw-r--r--meta/recipes-extended/shadow/files/pam.d/newusers2
2 files changed, 4 insertions, 0 deletions
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 @@
1# The PAM configuration file for the Shadow 'chpasswd' service 1# The PAM configuration file for the Shadow 'chpasswd' service
2# 2#
3 3
4auth sufficient pam_rootok.so
5account required pam_permit.so
4password include common-password 6password 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 @@
1# The PAM configuration file for the Shadow 'newusers' service 1# The PAM configuration file for the Shadow 'newusers' service
2# 2#
3 3
4auth sufficient pam_rootok.so
5account required pam_permit.so
4password include common-password 6password include common-password