<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></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).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></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<o:p></o:p></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<o:p></o:p></p>
<p class="MsoNormal">make[2]: *** [install-libexecPROGRAMS] Error 1<o:p></o:p></p>
<p class="MsoNormal">make[2]: Leaving directory `/home/pg/monplugins/rpmbuild/BUILD/monitoring-plugins-2.0/plugins'<o:p></o:p></p>
<p class="MsoNormal">make[1]: *** [install-am] Error 2<o:p></o:p></p>
<p class="MsoNormal">make[1]: Leaving directory `/home/pg/monplugins/rpmbuild/BUILD/monitoring-plugins-2.0/plugins'<o:p></o:p></p>
<p class="MsoNormal">make: *** [install-recursive] Error 1<o:p></o:p></p>
<p class="MsoNormal">error: Bad exit status from /var/tmp/rpm-tmp.refu88 (%install)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help would be much appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kind Regards<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Paul<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">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>
</body>
</html>