From beefc924bfbc24e577491742523fc11f1fc3ce4eff283d5a59d54442a6cbe6b4 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Thu, 26 Nov 2015 10:46:56 +0000 Subject: [PATCH] Accepting request 346364 from home:darix:branches:network:time - silence groupadd/useradd call and drop the shell from the user. OBS-URL: https://build.opensuse.org/request/show/346364 OBS-URL: https://build.opensuse.org/package/show/network:time/chrony?expand=0&rev=7 --- chrony.changes | 5 +++++ chrony.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/chrony.changes b/chrony.changes index 4ee91f6..1a5b264 100644 --- a/chrony.changes +++ b/chrony.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 26 10:45:06 UTC 2015 - mrueckert@suse.de + +- silence groupadd/useradd call and drop the shell from the user. + ------------------------------------------------------------------- Thu Nov 26 01:13:52 UTC 2015 - mrueckert@suse.de diff --git a/chrony.spec b/chrony.spec index 9cb8ed8..76b0ee6 100644 --- a/chrony.spec +++ b/chrony.spec @@ -152,8 +152,8 @@ touch %{buildroot}%{_localstatedir}/lib/chrony/{drift,rtc} rm -rf %{buildroot} %pre -/usr/sbin/groupadd -r chrony || : -/usr/sbin/useradd -r -g chrony -c "Chrony Daemon" -d "%{_localstatedir}/lib/chrony" chrony || : +/usr/sbin/groupadd -r chrony >/dev/null 2>&1 || : +/usr/sbin/useradd -g chrony -s /bin/false -r -c "Chrony Daemon" -d "%{_localstatedir}/lib/chrony" chrony >/dev/null 2>&1 || : # START BIG SYSTEMD %if %{with systemd} %service_add_pre chronyd.service chrony-wait.service