Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21526 - nagios var directory permissions wrong
Summary: nagios var directory permissions wrong
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Dean Bailey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-23 02:51 UTC by Brian Jackson (RETIRED)
Modified: 2003-09-23 23:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Jackson (RETIRED) gentoo-dev 2003-05-23 02:51:18 UTC
The default woner for the /var/nagios directory is wrong. It should belong to the nagios 
user. Without the /var/nagios directory belonging to the nagios user, nagios fails to write 
any info to disk, therefore it is useless. It still runs, but doesn't give any hint about what is 
wrong. I've been looking for this for a few weeks(albeit not ver hard), so it would be nice 
to have it fixed so nobody else runs into this. 

Reproducible: Always
Steps to Reproduce:
1. emerge nagios 
2. start nagios 
3. try to view any of the web interface 
Actual Results:  
recieved the following error from the web interface: 
Error: Could not read host and service status information! 

Expected Results:  
not given me an error
Comment 1 FieldySnuts 2003-05-28 09:56:22 UTC
Should the group be nagios as well? I'm just installing this now.
Comment 2 Brian Jackson (RETIRED) gentoo-dev 2003-05-28 10:29:32 UTC
duallie brian # ls -lahd /var/nagios/ 
drwxrwxr-x    4 nagios   nagios        288 May 28 09:04 /var/nagios/ 
 
I'm not sure if the permissions are correct, but I also added the apache user to the 
nagios group so he could read all the nagios files in /var, and I planned on 
removing world permissions from it. Maybe the Gentoo team just expects users to 
have good habits in that regard, but the program should work out of the box. 
Comment 3 Dean Bailey 2003-06-17 16:33:25 UTC
which version of nagios?
Comment 4 Brian Jackson (RETIRED) gentoo-dev 2003-06-17 17:01:45 UTC
the first one I installed was 1.0beta(something), but I upgraded to 1.0 before I finally 
figured out what was going on, so that didn't fixit. I can test out the latest version on 
a clean system if you want me to. 
Comment 5 Dean Bailey 2003-06-17 21:58:06 UTC
If you could test it that'd be great. I just recently updated the builds so they 
should be good. I'll be doing some more heavy testing on them tomorrow 
as well. 
Comment 6 Brian Jackson (RETIRED) gentoo-dev 2003-08-19 22:00:22 UTC
I haven't had any problems with any of the newer versions 
Comment 7 Brian Jackson (RETIRED) gentoo-dev 2003-09-23 23:53:08 UTC
this was fixed a while back