nagios-4.0.1 small issue with spec file, please fix
Posted: Wed Nov 06, 2013 3:16 pm
The spec file in 4.0.1 is greatly improved over 4.0.0, thank you. There's still one left-over issue - the permissions on the plugins directory.
Think about it: it's a directory, you don't want to set 0644 permissions on it unless you have a very good reason, otherwise many things will stop working mysteriously, which is exactly what happens on a clean, from-scratch install. The permissions on that directory (and just about any other directory) should be 0755. Patch here:
Other than that, the new release seems to generate nice clean RPM packages on Red Hat 5 and compatible. Congrats.
Think about it: it's a directory, you don't want to set 0644 permissions on it unless you have a very good reason, otherwise many things will stop working mysteriously, which is exactly what happens on a clean, from-scratch install. The permissions on that directory (and just about any other directory) should be 0755. Patch here:
Code: Select all
@@ -214,7 +214,7 @@
%attr(0755,root,root) %config %{_initrddir}/nagios
%attr(0755,root,root) %{_bindir}/nagios
%attr(0755,root,root) %{_bindir}/nagiostats
-%attr(0644,root,root) %{_libdir}/nagios/plugins/
+%attr(0755,root,root) %{_libdir}/nagios/plugins/
%attr(0755,root,root) %{_datadir}/nagios/
%attr(0755,nagios,nagios) %dir %{_sysconfdir}/nagios/
%attr(0644,nagios,nagios) %config(noreplace) %{_sysconfdir}/nagios/*.cfg