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