diff options
author | yadi.hu@windriver.com <yadi.hu@windriver.com> | 2018-05-25 10:48:10 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-29 21:07:17 +0100 |
commit | 5256f95d553fc561786dd04b2c07882943e94e5d (patch) | |
tree | 55791579b5dbc49b592f90372aae85d31d4bcba2 | |
parent | cad89370d814866f82d80aa8aace5fc7ca22e634 (diff) | |
download | poky-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/chpasswd | 2 | ||||
-rw-r--r-- | meta/recipes-extended/shadow/files/pam.d/newusers | 2 |
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 | ||
4 | auth sufficient pam_rootok.so | ||
5 | account required pam_permit.so | ||
4 | password include common-password | 6 | 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 @@ | |||
1 | # The PAM configuration file for the Shadow 'newusers' service | 1 | # The PAM configuration file for the Shadow 'newusers' service |
2 | # | 2 | # |
3 | 3 | ||
4 | auth sufficient pam_rootok.so | ||
5 | account required pam_permit.so | ||
4 | password include common-password | 6 | password include common-password |