On 2009-05-14 04:47, Dennison Williams wrote: > Hello all, > > I have been noticing that on a semi regular basis the > /usr/local/nagios/etc/htpasswd* files are getting chown'd as > nagios:nagios and chmod'd 640. My web server is running as www-data and > it needs to be able to read these files but every time they get changed > the site goes all "wonky" (a technical term I am sure you are all > familiar with). > > I am guessing there is some cron job that is handling this. A cursory > look through the cron jobs that nagios runs did not reveal anything > enlightening. I was wondering if there was any advice on how to handle > this situation?
I can't tell you what's changing it, but I can recommend some solutions: 1. Add the webserver user to the nagios group. As you note the perms are 640 so the group can read the file. 2. chattr +i the file so its perms can't change. I'd recommend the former. _______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/listinfo/opsview-users
