Page 1 of 1

need to fix permissions issue on libexec directory

Posted: Wed Mar 18, 2015 12:54 pm
by bosecorp
accidentally changed the permission on

/usr/loca/nagios/libexec

and now I am getting this error in some of the check.

Warning: This plugin must be either run as root or setuid root.

I need to know what specifc permission I need have in the libexec directory and in all the respective plugins

Re: need to fix permissions issue on libexec directory

Posted: Wed Mar 18, 2015 1:03 pm
by cmerchant
This should reset the permissions:

Code: Select all

cd /usr/local/nagiosxi/scripts
./reset_config_perms

Re: need to fix permissions issue on libexec directory

Posted: Wed Mar 18, 2015 1:11 pm
by bosecorp
great!

how do I do the same in the workers?

Re: need to fix permissions issue on libexec directory

Posted: Wed Mar 18, 2015 1:24 pm
by tgriep
Did you change the permission's on your workers?
If not, they should be fine.

Re: need to fix permissions issue on libexec directory

Posted: Wed Mar 18, 2015 1:27 pm
by bosecorp
Yes, I did as well.

Re: need to fix permissions issue on libexec directory

Posted: Wed Mar 18, 2015 1:40 pm
by tgriep
Run this

Code: Select all

chown -R nagios.nagios  /usr/local/nagios/libexec
chmod -R 755  /usr/local/nagios/libexec

Re: need to fix permissions issue on libexec directory

Posted: Thu Mar 19, 2015 10:44 am
by bosecorp
you can close the ticket now