blob: 1eacb8a53feb2736bfd2eec7a3a48b660a9006e4 [file] [log] [blame]
Patrick Williams44b3caf2024-04-12 16:51:14 -05001From 38882ab288fd4d2cc2e45dff222ae3412c8fe357 Mon Sep 17 00:00:00 2001
2From: Kang Kai <kai.kang@windriver.com>
3Date: Wed, 20 Jul 2011 19:18:14 +0800
4Subject: [PATCH] shadow: update pam related configure files
5
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006The system-auth in the configure files is from Fedora which put all the 4 pam type rules
7in one file.
8In yocto it obey the way with Debian/Ubuntu, and the names are common-auth, common-account,
9common-password and common-session.
10So update them with oe way.
11
Patrick Williams92b42cb2022-09-03 06:53:57 -050012See meta/recipes-extended/pam/libpam/pam.d/common-password
13
14Upstream-Status: Inappropriate [oe-core specific]
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015
16Signed-off-by: Kang Kai <kai.kang@windriver.com>
Patrick Williams44b3caf2024-04-12 16:51:14 -050017---
18 etc/pam.d/chage | 2 +-
19 etc/pam.d/chgpasswd | 2 +-
20 etc/pam.d/groupadd | 2 +-
21 etc/pam.d/groupdel | 2 +-
22 etc/pam.d/groupmems | 2 +-
23 etc/pam.d/groupmod | 2 +-
24 etc/pam.d/useradd | 2 +-
25 etc/pam.d/userdel | 2 +-
26 etc/pam.d/usermod | 2 +-
27 9 files changed, 9 insertions(+), 9 deletions(-)
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028
Patrick Williams44b3caf2024-04-12 16:51:14 -050029diff --git a/etc/pam.d/chage b/etc/pam.d/chage
30index 8f49f5c..b1f365d 100644
31--- a/etc/pam.d/chage
32+++ b/etc/pam.d/chage
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033@@ -1,4 +1,4 @@
34 #%PAM-1.0
35 auth sufficient pam_rootok.so
36 account required pam_permit.so
37-password include system-auth
38+password include common-password
Patrick Williams44b3caf2024-04-12 16:51:14 -050039diff --git a/etc/pam.d/chgpasswd b/etc/pam.d/chgpasswd
40index 8f49f5c..b1f365d 100644
41--- a/etc/pam.d/chgpasswd
42+++ b/etc/pam.d/chgpasswd
Patrick Williamsc124f4f2015-09-15 14:41:29 -050043@@ -1,4 +1,4 @@
44 #%PAM-1.0
45 auth sufficient pam_rootok.so
46 account required pam_permit.so
47-password include system-auth
48+password include common-password
Patrick Williams44b3caf2024-04-12 16:51:14 -050049diff --git a/etc/pam.d/groupadd b/etc/pam.d/groupadd
50index 8f49f5c..b1f365d 100644
51--- a/etc/pam.d/groupadd
52+++ b/etc/pam.d/groupadd
Patrick Williamsc124f4f2015-09-15 14:41:29 -050053@@ -1,4 +1,4 @@
54 #%PAM-1.0
55 auth sufficient pam_rootok.so
56 account required pam_permit.so
57-password include system-auth
58+password include common-password
Patrick Williams44b3caf2024-04-12 16:51:14 -050059diff --git a/etc/pam.d/groupdel b/etc/pam.d/groupdel
60index 8f49f5c..b1f365d 100644
61--- a/etc/pam.d/groupdel
62+++ b/etc/pam.d/groupdel
Patrick Williamsc124f4f2015-09-15 14:41:29 -050063@@ -1,4 +1,4 @@
64 #%PAM-1.0
65 auth sufficient pam_rootok.so
66 account required pam_permit.so
67-password include system-auth
68+password include common-password
Patrick Williams44b3caf2024-04-12 16:51:14 -050069diff --git a/etc/pam.d/groupmems b/etc/pam.d/groupmems
70index 8f49f5c..b1f365d 100644
71--- a/etc/pam.d/groupmems
72+++ b/etc/pam.d/groupmems
Patrick Williamsc124f4f2015-09-15 14:41:29 -050073@@ -1,4 +1,4 @@
74 #%PAM-1.0
75 auth sufficient pam_rootok.so
76 account required pam_permit.so
77-password include system-auth
78+password include common-password
Patrick Williams44b3caf2024-04-12 16:51:14 -050079diff --git a/etc/pam.d/groupmod b/etc/pam.d/groupmod
80index 8f49f5c..b1f365d 100644
81--- a/etc/pam.d/groupmod
82+++ b/etc/pam.d/groupmod
Patrick Williamsc124f4f2015-09-15 14:41:29 -050083@@ -1,4 +1,4 @@
84 #%PAM-1.0
85 auth sufficient pam_rootok.so
86 account required pam_permit.so
87-password include system-auth
88+password include common-password
Patrick Williams44b3caf2024-04-12 16:51:14 -050089diff --git a/etc/pam.d/useradd b/etc/pam.d/useradd
90index 8f49f5c..b1f365d 100644
91--- a/etc/pam.d/useradd
92+++ b/etc/pam.d/useradd
Patrick Williamsc124f4f2015-09-15 14:41:29 -050093@@ -1,4 +1,4 @@
94 #%PAM-1.0
95 auth sufficient pam_rootok.so
96 account required pam_permit.so
97-password include system-auth
98+password include common-password
Patrick Williams44b3caf2024-04-12 16:51:14 -050099diff --git a/etc/pam.d/userdel b/etc/pam.d/userdel
100index 8f49f5c..b1f365d 100644
101--- a/etc/pam.d/userdel
102+++ b/etc/pam.d/userdel
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500103@@ -1,4 +1,4 @@
104 #%PAM-1.0
105 auth sufficient pam_rootok.so
106 account required pam_permit.so
107-password include system-auth
108+password include common-password
Patrick Williams44b3caf2024-04-12 16:51:14 -0500109diff --git a/etc/pam.d/usermod b/etc/pam.d/usermod
110index 8f49f5c..b1f365d 100644
111--- a/etc/pam.d/usermod
112+++ b/etc/pam.d/usermod
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500113@@ -1,4 +1,4 @@
114 #%PAM-1.0
115 auth sufficient pam_rootok.so
116 account required pam_permit.so
117-password include system-auth
118+password include common-password