directory ownership changes
Posted: Mon May 06, 2019 9:16 am
Hello, I'm running v5.6.1 on a VM CentOS 7 64-bit server.
This is a TEST server, and in this case I'm testing the upgrade to 5.6.1. Almost no one does anything on the server.
I ran an upgrade to 5.6.1, from 5.6.0, using the sudo command.
I have been warned by a log rotate task as follows:
/etc/cron.daily/logrotate:
error: skipping "/usr/local/nagiosxi/var/cleaner.log" because parent directory has insecure permissions
(It's world writable or writable by group which is not "root")
Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
I noticed that the ownership of some directories has changed:
[xxx@nagiostest nagiosxi]$ pwd
/usr/local/nagiosxi
[xxx@nagiostest nagiosxi]$ ls -ald *
drwxr-xr-x 2 root nagios 262 Feb 11 12:22 cron
drwxr-xr-x 4 root nagios 67 May 3 14:44 etc
drwxr-xr-x 17 root nagios 4096 Mar 6 13:03 html
drwxr-xr-x 3 root nagios 25 Feb 11 12:22 nom
drwxr-xr-x 4 root nagios 4096 May 3 14:44 scripts
drwsrwsr-x 2 root nagios 6 Apr 22 16:27 tmp
drwxr-xr-x 2 root nagios 4096 Feb 11 12:22 tools
drwxrwxr-x 7 root nagios 4096 May 6 09:10 var
[xxx@nagiostest nagiosxi]$
Those directories on our production 5.5.11 server are owned by the nagios user.
[xxx@nagiosprod nagiosxi]$ ls -ald *
drwxr-xr-x 2 nagios nagios 290 Jul 2 2018 cron
drwxr-xr-x 3 nagios nagios 46 May 1 2018 etc
drwxr-xr-x 19 nagios nagios 4096 Jan 22 13:14 html
drwxr-xr-x 3 nagios nagios 25 May 1 2018 nom
drwxr-xr-x 3 nagios nagios 4096 May 6 07:05 scripts
drwsrwsr-x 3 nagios nagios 91 Mar 5 17:20 tmp
drwxr-xr-x 2 nagios nagios 4096 May 1 2018 tools
drwxr-xr-x 7 nagios nagios 4096 May 6 09:03 var
[xxx@nagiosprod nagiosxi]$
Is the ownership change intentional? Should my log rotate task be change to acommodate it?
Earl
This is a TEST server, and in this case I'm testing the upgrade to 5.6.1. Almost no one does anything on the server.
I ran an upgrade to 5.6.1, from 5.6.0, using the sudo command.
I have been warned by a log rotate task as follows:
/etc/cron.daily/logrotate:
error: skipping "/usr/local/nagiosxi/var/cleaner.log" because parent directory has insecure permissions
(It's world writable or writable by group which is not "root")
Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
I noticed that the ownership of some directories has changed:
[xxx@nagiostest nagiosxi]$ pwd
/usr/local/nagiosxi
[xxx@nagiostest nagiosxi]$ ls -ald *
drwxr-xr-x 2 root nagios 262 Feb 11 12:22 cron
drwxr-xr-x 4 root nagios 67 May 3 14:44 etc
drwxr-xr-x 17 root nagios 4096 Mar 6 13:03 html
drwxr-xr-x 3 root nagios 25 Feb 11 12:22 nom
drwxr-xr-x 4 root nagios 4096 May 3 14:44 scripts
drwsrwsr-x 2 root nagios 6 Apr 22 16:27 tmp
drwxr-xr-x 2 root nagios 4096 Feb 11 12:22 tools
drwxrwxr-x 7 root nagios 4096 May 6 09:10 var
[xxx@nagiostest nagiosxi]$
Those directories on our production 5.5.11 server are owned by the nagios user.
[xxx@nagiosprod nagiosxi]$ ls -ald *
drwxr-xr-x 2 nagios nagios 290 Jul 2 2018 cron
drwxr-xr-x 3 nagios nagios 46 May 1 2018 etc
drwxr-xr-x 19 nagios nagios 4096 Jan 22 13:14 html
drwxr-xr-x 3 nagios nagios 25 May 1 2018 nom
drwxr-xr-x 3 nagios nagios 4096 May 6 07:05 scripts
drwsrwsr-x 3 nagios nagios 91 Mar 5 17:20 tmp
drwxr-xr-x 2 nagios nagios 4096 May 1 2018 tools
drwxr-xr-x 7 nagios nagios 4096 May 6 09:03 var
[xxx@nagiosprod nagiosxi]$
Is the ownership change intentional? Should my log rotate task be change to acommodate it?
Earl