]> code.ossystems Code Review - openembedded-core.git/commitdiff
shadow: fix pam configs for chpasswd, newusers
authoryadi.hu@windriver.com <yadi.hu@windriver.com>
Fri, 25 May 2018 02:48:10 +0000 (10:48 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 2 Jul 2018 09:40:32 +0000 (10:40 +0100)
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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-extended/shadow/files/pam.d/chpasswd
meta/recipes-extended/shadow/files/pam.d/newusers

index 9e3efa68ba7be6edef575770f3727433adf6dcb7..b769d92ba4849657d9c7eacd2ff49c8e83dde5e1 100644 (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
index 4aa3dde48b586a1440d80740ee39760fe7fa610e..4c59dfa478a3a8d2b0f3ee0c86ae6a8cb61f23f2 100644 (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