logrotate permissions 5.6.2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: logrotate permissions 5.6.2

Post by npolovenko »

@Bitflogger, This command should fix logrotate errors.

Code: Select all

chmod 755 /usr/local/nagiosxi/var/
For some reason, the latest XI update changed permissions on this folder to be writable by a group. I was able to replicate this on my system.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Bitflogger
Posts: 226
Joined: Mon Oct 16, 2017 9:24 am

Re: logrotate permissions 5.6.2

Post by Bitflogger »

Hello,

It looks like the problem is now the permissions on /usr/local/nagiosxi/var

Since I see this on two servers, it seems the upgrade to 5.6.2 has caused it.

[user@server ~]$ ls -ald /usr/local/nagiosxi/*
drwxr-xr-x 2 nagios nagios 296 May 24 09:25 /usr/local/nagiosxi/cron
drwxr-xr-x 4 nagios nagios 67 May 24 09:25 /usr/local/nagiosxi/etc
drwxr-xr-x 17 nagios nagios 4096 Dec 6 17:01 /usr/local/nagiosxi/html
drwxr-xr-x 3 nagios nagios 25 Oct 22 2018 /usr/local/nagiosxi/nom
drwxr-xr-x 4 nagios nagios 4096 May 31 07:10 /usr/local/nagiosxi/scripts
drwsrwsr-x 2 nagios nagios 6 Apr 23 09:13 /usr/local/nagiosxi/tmp
drwxr-xr-x 2 nagios nagios 4096 Oct 22 2018 /usr/local/nagiosxi/tools
drwxrwxr-x 7 nagios nagios 4096 May 31 09:04 /usr/local/nagiosxi/var

Should remove write access for nagios in /usr/local/nagiosxi/var ?

Earl
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: logrotate permissions 5.6.2

Post by npolovenko »

@Bitflogger, Yes, please remove write access for the Nagios group. This command will do it:

Code: Select all

chmod 755 /usr/local/nagiosxi/var/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Bitflogger
Posts: 226
Joined: Mon Oct 16, 2017 9:24 am

Re: logrotate permissions 5.6.2

Post by Bitflogger »

Hello,

This is fixed. Please lock.

Earl
Locked