[OE-core] [PATCH 1/1] shadow: fix pam configs for chpasswd, newusers

wenzong.fan at windriver.com wenzong.fan at windriver.com
Wed Oct 22 05:19:38 UTC 2014


From: Wenzong Fan <wenzong.fan at windriver.com>

Fix below errors while pam is enabled on target:

  root at qemux86:~# newusers
  newusers: PAM: Authentication failure
  root at qemux86:~# chpasswd
  chpasswd: PAM: Authentication failure

The configs copied from "chgpasswd" which command works with pam.

Signed-off-by: Wenzong Fan <wenzong.fan at windriver.com>
---
 meta/recipes-extended/shadow/files/pam.d/chpasswd |    2 ++
 meta/recipes-extended/shadow/files/pam.d/newusers |    2 ++
 2 files changed, 4 insertions(+)

diff --git a/meta/recipes-extended/shadow/files/pam.d/chpasswd b/meta/recipes-extended/shadow/files/pam.d/chpasswd
index 9e3efa6..b769d92 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 4aa3dde..4c59dfa 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
-- 
1.7.9.5




More information about the Openembedded-core mailing list