I have a weird permission problem with the /usr/local/nagios/libexec folder on my XI server. So I made a Reactor chain which updates the libexec scripts folder with the latest versions of plugins etc.
These were the original permissions:
Code: Select all
ls -la /usr/local/nagios/libexec
total 12376
drwxrwxr-x. 6 apache nagios 12288 May 20 15:42 .
drwxr-xr-x. 9 root root 4096 Jun 12 2014 ..
Code: Select all
grep sysreactor /etc/group
nagios:x:500:nagios,apache,snmptt,sysreactor
Code: Select all
/bin/cp -r /mnt/naf/scripts/* /usr/local/nagios/libexec/Code: Select all
/bin/cp: cannot create regular file `/usr/local/nagios/libexec/check_lin_updates.py': Permission deniedAs a test I tried giving 777 to /usr/local/nagios/libexec
Code: Select all
ls -la /usr/local/nagios/libexec
total 12376
drwxrwxrwx. 6 apache nagios 12288 May 20 15:42 .
drwxr-xr-x. 9 root root 4096 Jun 12 2014 ..
Grtz
Willem