Command File permissions change


I’m having the following trouble:

I configure the command file like this:

prwxrwxrwx 1 nagios nagioscmd 0 2006-04-21 14:23 nagios.cmd

and everything works great,
but in a while it changes to this:

prw-rw---- 1 nagios nagios 0 2006-04-21 14:23 nagios.cmd

so the external commands fails.

Is there a way to know why it changes?

I’ve taken a look to the crontab, but i did not get a clue about it.

Thanks in advance!

ls -la /usr/local/nagios/var
drwxrwsr-x 2 nagios nagcmd 4096 Apr 14 15:21 rw

thanks for the answer, jakkedup

The problem is solved. The file was erased and created again by the nagios script located in /etc/init.d/ but with wrong file access permissions.