Yay broken permissions


#1

so i installed nagiosQL and got it working properly. thing is that it wants a seperate permission set on nagios files to write to them. i made a couple shell scripts that switch the permissions back and forth. thats all fine and dandy… a few recursive chowns later i seem to have broken the permissions on my nagios.cmd file. now when i try to change a note on a host or acknowledge an outage i get “Error: Could not stat() command file ‘/usr/local/nagios/var/rw/nagios.cmd’!”

could someone please let me know what the correct owner / permissions on the file should be? mine is currently-

root@sentry:/usr/local/nagios/var/rw # ls -la nagios.cmd
prwxr-xr-x 1 nagios nagcmd 0 Nov 21 13:32 nagios.cmd

i tried with the group nagios as well. no dice.

i seem to remember a ‘www-user’ group or sumpthin like that?


#2

www-user or nobody (depends how apache runs) should be in te nagiocmd group (check your group names and user associations)

Luca