From b6e8d920e20040f6631761cc3e5a2a7add6c12c651c3aadde069aee60ae6bf01 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 8 Jun 2021 06:36:00 +0000 Subject: [PATCH 1/3] Accepting request 897344 from home:kukuk:tiu - Disable MOTD_FILE to allow the use of pam_motd to unify motd message output [bsc#1185897]. Else motd entries of e.g. cockpit will not be shown. OBS-URL: https://build.opensuse.org/request/show/897344 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=103 --- shadow-login_defs-suse.patch | 3 ++- shadow.changes | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/shadow-login_defs-suse.patch b/shadow-login_defs-suse.patch index db3c694..ea0191d 100644 --- a/shadow-login_defs-suse.patch +++ b/shadow-login_defs-suse.patch @@ -14,12 +14,13 @@ Index: etc/login.defs # # Delay in seconds before being allowed another attempt after a login failure -@@ -62,8 +65,7 @@ CONSOLE /etc/securetty +@@ -62,8 +65,8 @@ CONSOLE /etc/securetty # If defined, ":" delimited list of "message of the day" files to # be displayed upon login. # -MOTD_FILE /etc/motd -#MOTD_FILE /etc/motd:/usr/lib/news/news-motd ++MOTD_FILE +#MOTD_FILE /etc/motd:/usr/share/misc/motd # diff --git a/shadow.changes b/shadow.changes index 85095e8..4489f70 100644 --- a/shadow.changes +++ b/shadow.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Jun 4 07:46:34 UTC 2021 - Thorsten Kukuk + +- Disable MOTD_FILE to allow the use of pam_motd to unify motd + message output [bsc#1185897]. Else motd entries of e.g. cockpit + will not be shown. + ------------------------------------------------------------------- Thu Jan 28 22:28:02 UTC 2021 - Stanislav Brabec From faf07ff7875d6ea594aba138f41ef6f0b7a312ea620c695109fc1a6e1aefcfbe Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 8 Jun 2021 06:39:30 +0000 Subject: [PATCH 2/3] Accepting request 897717 from home:mauriziogalli:branches:Base:System - Enable shadowgrp so that we can set more secure group passwords using shadow. OBS-URL: https://build.opensuse.org/request/show/897717 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=104 --- shadow.changes | 6 ++++++ shadow.spec | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/shadow.changes b/shadow.changes index 4489f70..6699bf8 100644 --- a/shadow.changes +++ b/shadow.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Jun 5 13:38:52 UTC 2021 - Maurizio Galli + +- Enable shadowgrp so that we can set more secure group passwords + using shadow. + ------------------------------------------------------------------- Fri Jun 4 07:46:34 UTC 2021 - Thorsten Kukuk diff --git a/shadow.spec b/shadow.spec index 352fd50..8faa3e2 100644 --- a/shadow.spec +++ b/shadow.spec @@ -135,7 +135,7 @@ export LDFLAGS="-pie" autoreconf -fvi %configure \ - --disable-shadowgrp \ + --enable-shadowgrp \ --enable-account-tools-setuid \ --with-audit \ --with-libpam \ From e27cf8c34fce83002bf431f3872e921e391bbe3680eeafcda913cea9d358053f Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 2 Jul 2021 06:52:55 +0000 Subject: [PATCH 3/3] Accepting request 903400 from home:kukuk:branches:Base:System - login.defs/MOTD_FILE: Use "" instead of blank entry [bsc#1187536] - Add /etc/login.defs.d directory OBS-URL: https://build.opensuse.org/request/show/903400 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=105 --- shadow-login_defs-suse.patch | 2 +- shadow.changes | 6 ++++++ shadow.spec | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/shadow-login_defs-suse.patch b/shadow-login_defs-suse.patch index ea0191d..13ed873 100644 --- a/shadow-login_defs-suse.patch +++ b/shadow-login_defs-suse.patch @@ -20,7 +20,7 @@ Index: etc/login.defs # -MOTD_FILE /etc/motd -#MOTD_FILE /etc/motd:/usr/lib/news/news-motd -+MOTD_FILE ++MOTD_FILE "" +#MOTD_FILE /etc/motd:/usr/share/misc/motd # diff --git a/shadow.changes b/shadow.changes index 6699bf8..aa085fd 100644 --- a/shadow.changes +++ b/shadow.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 1 11:51:39 UTC 2021 - Thorsten Kukuk + +- login.defs/MOTD_FILE: Use "" instead of blank entry [bsc#1187536] +- Add /etc/login.defs.d directory + ------------------------------------------------------------------- Sat Jun 5 13:38:52 UTC 2021 - Maurizio Galli diff --git a/shadow.spec b/shadow.spec index 8faa3e2..7786747 100644 --- a/shadow.spec +++ b/shadow.spec @@ -225,6 +225,7 @@ rm -rf %{buildroot}%{_mandir}/{??,??_??} if [ ! -d %{buildroot}%{_distconfdir} ]; then mkdir -p %{buildroot}%{_distconfdir} mv %{buildroot}%{_sysconfdir}/{login.defs,pam.d} %{buildroot}%{_distconfdir} + mkdir -p %{buildroot}%{_sysconfdir}/login.defs.d fi %find_lang shadow @@ -379,6 +380,7 @@ test -f /etc/login.defs.rpmsave && mv -v /etc/login.defs.rpmsave /etc/login.defs %files -n login_defs %if %{defined no_config} +%dir /etc/login.defs.d %attr(0644,root,root) %{_distconfdir}/login.defs %else %attr(0644,root,root) %config %{_sysconfdir}/login.defs