file permissions change

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vidhyadhar
Posts: 9
Joined: Thu Apr 20, 2017 9:27 am

file permissions change

Post by vidhyadhar »

I have three issues, I have downloaded a trial version of nagios XI.

First is the file permissions of all the files under etc directory under /usr/local/nagios change from nagios:nagios to apache:nagios. I wanted to ask why this is changing?
drwxrwsr-x. 7 apache nagios 4096 Apr 28 13:27 etc
drwxrwxr-x. 2 nagios nagios 8192 Apr 28 13:13 libexec

b) the files under gets deleted or go missing
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: file permissions change

Post by mcapra »

Did you install Nagios XI on a clean, minimal CentOS or RHEL machine? I'm a bit confused why anything would be "changing" unless you tried to install Nagios XI on top of an existing Nagios Core installation. Can you tell us a bit more about the steps you took that produced these changes in permissions?
Former Nagios employee
https://www.mcapra.com/
vidhyadhar
Posts: 9
Joined: Thu Apr 20, 2017 9:27 am

Re: file permissions change

Post by vidhyadhar »

Hi sorry for the late reply, yes we did install nagios XI on a clean RHEL machine. initially it was set to nagios:nagios but then we started noticing the permissions were different. I also see a lot of different files.
drwxr-xr-x. 8 nagios nagios 73 Apr 26 09:58 nagios
drwxr-xr-x. 6 root root 4096 Apr 7 12:37 nagiosmobile
drwxr-xr-x. 10 nagios nagios 94 Apr 7 12:38 nagiosxi
drwxr-xr-x. 5 apache apache 65 Apr 7 12:38 nagvis
drwxrwxr-x. 7 nagios nagios 4096 Apr 7 12:37 nrdp
drwxrwxr-x. 3 nagios nagios 18 Apr 7 12:37 nsis

and under nagios
root@xxxxx]# pwd
/usr/local/nagios
[root@xxxx]# ls -l
total 32
drwxr-xr-x. 2 nagios nagios 4096 Apr 7 12:38 bin
drwxrwsr-x. 7 apache nagios 4096 Apr 28 13:27 etc
drwxrwxr-x. 2 nagios nagios 8192 Apr 28 13:13 libexec
drwxrwxr-x. 2 nagios nagios 4096 Apr 7 12:37 sbin
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: file permissions change

Post by dwhitfield »

I suspect it is due to running various installs, like SMTP Trap Sender, or the ramdisk installer. My nagiosmobile is owned by root. My nagvis is owned by apache. My etc has the same split permissions yours does.

You said you had three issues, but there was only an a and a b. What was the third? Also, what files are getting deleted? Is that everything under /usr/local/nagios, because you seem to be missing include, var, and share...although my include is empty, so I wouldn't worry too much about that.
Locked