<div dir="ltr"><div>Try changing owner and group from naemon to pg in spec file.<br></div>Best regards.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 9, 2016 at 7:44 PM, Geldart, Paul <span dir="ltr"><<a href="mailto:paul.geldart@platts.com" target="_blank">paul.geldart@platts.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal">Hi<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am trying to build the monitoring plugins rpm at version 2.0 using the supplied SPEC file, which works ok as root, but comes up with the below error when I try to run the rpmbuild not as root (gets quite far before failure as you can
see).<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">libtool: install: /usr/bin/install -c -o naemon -g naemon check_apt /home/pg/monplugins/rpmbuild/BUILDROOT/platts-monitoring-plugins-2.0-PG1.el6.x86_64/local/apps/monitoring-plugins-2.0/libexec/check_apt<u></u><u></u></p>
<p class="MsoNormal">/usr/bin/install: cannot change ownership of `/home/pg/monplugins/rpmbuild/BUILDROOT/platts-monitoring-plugins-2.0-PG1.el6.x86_64/local/apps/monitoring-plugins-2.0/libexec/check_apt': Operation not permitted<u></u><u></u></p>
<p class="MsoNormal">make[2]: *** [install-libexecPROGRAMS] Error 1<u></u><u></u></p>
<p class="MsoNormal">make[2]: Leaving directory `/home/pg/monplugins/rpmbuild/BUILD/monitoring-plugins-2.0/plugins'<u></u><u></u></p>
<p class="MsoNormal">make[1]: *** [install-am] Error 2<u></u><u></u></p>
<p class="MsoNormal">make[1]: Leaving directory `/home/pg/monplugins/rpmbuild/BUILD/monitoring-plugins-2.0/plugins'<u></u><u></u></p>
<p class="MsoNormal">make: *** [install-recursive] Error 1<u></u><u></u></p>
<p class="MsoNormal">error: Bad exit status from /var/tmp/rpm-tmp.refu88 (%install)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Looking at the readme thought this was because of the two suid plugins dhcp & icmp which I thought about possible removing as do not believe we use those anyway but not so sure now having had a look around so need to fix that error first.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I also noticed that later version of the monitoring plugins do not come with a spec file so probably good to understand whats going on here anyway to help when I get to that point.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Basically I want to build the rpm as non root but am not an expert with rpmbuild so just need a steer on how to tackle it and get rid of the above errors and get the bundle compiling and building with rpm when run as any user.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any help would be much appreciated.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Kind Regards<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Paul<u></u><u></u></p>
<p class="MsoNormal"><u></u><u></u></p>
</div>
<br>
<hr>
<font face="Arial" size="1" color="Gray">The information contained in this message is intended only for the recipient, and may be a confidential attorney-client communication or may otherwise be privileged and confidential and protected from disclosure. If
the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please be aware that any dissemination or copying of this communication is strictly prohibited. If you have
received this communication in error, please immediately notify us by replying to the message and deleting it from your computer. McGraw Hill Financial reserves the right, subject to applicable local law, to monitor, review and process the content of any electronic
message or information sent to or from McGraw Hill Financial e-mail addresses without informing the sender or recipient of the message. By sending electronic message or information to McGraw Hill Financial e-mail addresses you, as the sender, are consenting
to McGraw Hill Financial processing any of your personal data therein.<br>
</font>
</div>
</blockquote></div><br></div>