Weird permission problem
Posted: Fri May 20, 2016 9:25 am
Hello,
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:
The user Reactor is uing to do stuff is called sysreactor. This user is in the nagios group:
The Reactor chain executes this command over SSH with the sysreactor user:
But I'm getting this error:
This is already weird as the sysreactor user in the group and the nagios group has 7 as permissions, so it should be able to write files?
As a test I tried giving 777 to /usr/local/nagios/libexec
Then tried again with same 'Permission denied' result. What could be causing this beahviour? On other servers with identical permissions (eg nls) this chains works perfect...
Grtz
Willem
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