From ac9d1d0b1ab29166e1d2247672932773e97a8dc0 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 10 Oct 2013 11:22:45 +0200 Subject: [PATCH] Icinga 2 directories should belong to the Icinga user. Fixes #4831 --- icinga2.spec.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/icinga2.spec.in b/icinga2.spec.in index 48d1add66..38908614e 100644 --- a/icinga2.spec.in +++ b/icinga2.spec.in @@ -200,12 +200,12 @@ fi %exclude %{_datadir}/%{name}/itl %{_mandir}/man8/%{name}.8.gz -%{_localstatedir}/cache/%{name} +%attr(0750,%{icinga_user},%{icinga_group}) %{_localstatedir}/cache/%{name} %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/log/%{name} %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/log/%{name}/compat %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/log/%{name}/compat/archives -%{_localstatedir}/run/%{name} -%{_localstatedir}/lib/%{name} +%attr(0750,%{icinga_user},%{icinga_group}) %{_localstatedir}/run/%{name} +%attr(0750,%{icinga_user},%{icinga_group}) %{_localstatedir}/lib/%{name} %attr(2755,%{icinga_user},%{icingacmd_group}) %{_localstatedir}/run/icinga2/cmd