nagios-4.0.1 small issue with spec file, please fix

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
Florin Andrei
Posts: 11
Joined: Mon Aug 26, 2013 6:04 pm
Location: California
Contact:

nagios-4.0.1 small issue with spec file, please fix

Post by Florin Andrei »

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:

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
Other than that, the new release seems to generate nice clean RPM packages on Red Hat 5 and compatible. Congrats.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagios-4.0.1 small issue with spec file, please fix

Post by abrist »

Awesome, thanks for your due diligence. One last favor - can you post a bug report on http://tracker.nagios.org with your spec file changes? It will get more exposure to the core devs there.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
Florin Andrei
Posts: 11
Joined: Mon Aug 26, 2013 6:04 pm
Location: California
Contact:

Re: nagios-4.0.1 small issue with spec file, please fix

Post by Florin Andrei »

Locked