nagios 4.0.6 - make install-init issue
Posted: Mon Jul 14, 2014 9:56 am
As I mentioned in another thread, I'm compiling Nagios 4.0.6 from source in a CentOS 6 environment in which I don't have root or sudo privileges. Therefore, Nagios only has a few users, groups, and directories it can work with. I'm compiling by doing the following:
Then following up with:
I have to pass the --ignore-errors flag to make here, because I encounter a couple errors:
It seems unusual that this tries to install the init script with the owner/group set to root/root, since I specified two different sets of users account flags during configure, and neither was root/root. Maybe a third set needs to be added (e.g. --with-init-user/--with-init-group)?
Code: Select all
./configure --prefix=/opt/nagios --with-nagios-user=monitor --with-nagios-group=monitor --with-command-user=monitor --with-command-group=monitor --with-init-dir=/home/monitor/scripts --with-lockfile=/home/monitor/nagios.lock --with-httpd-conf=/home/monitor/conf/httpd
make all
Code: Select all
make install-init
Code: Select all
> make --ignore-errors install-init
/usr/bin/install -c -m 755 -d -o root -g root /home/monitor/scripts
/usr/bin/install: cannot change owner and permissions of `/home/monitor/scripts': Operation not permitted
make: [install-daemoninit] Error 1 (ignored)
/usr/bin/install -c -m 755 -d -o root -g root daemon-init /home/monitor/scripts/nagios
/usr/bin/install: cannot change ownership of `/home/monitor/scripts/nagios': Operation not permitted
make: [install-daemoninit] Error 1 (ignored)