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 <yadi.hu@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
yadi.hu@windriver.com
2018-05-25 10:48:10 +08:00
committed by Richard Purdie
parent 4e184cf1c4
commit 4b173dcf7c
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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