Page 1 of 1

file permissions change

Posted: Mon May 01, 2017 1:50 pm
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

Re: file permissions change

Posted: Mon May 01, 2017 2:33 pm
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?

Re: file permissions change

Posted: Tue May 02, 2017 9:31 am
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

Re: file permissions change

Posted: Tue May 02, 2017 3:24 pm
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.