nrpe RPM spec file bug(s)
SCHAER Frederic
frederic.schaer at cea.fr
Fri Dec 21 16:26:15 CET 2007
Hmmm... by the way, the nagios.spec file has the same defect : it's
using "groupadd" whereas it's using "useradd -r" ... if this could also
be corrected...
Regards
________________________________
From: nagios-devel-bounces at lists.sourceforge.net
[mailto:nagios-devel-bounces at lists.sourceforge.net] On Behalf Of SCHAER
Frederic
Sent: Friday, December 21, 2007 2:06 PM
To: nagios-devel at lists.sourceforge.net
Subject: [Nagios-devel] nrpe RPM spec file bug(s)
Hi,
In the nagios spec file, the nagios user is added with command < useradd
-r > which creates a system account + system group.
In the nrpe spec file, there is first a standard groupadd on the Nagios
group, and then a useradd with the -r option for the user.
It looks to me that the first groupadd is then useless, isn't it ?
By the way : when the groupadd is run, there's a grep on the hardcoded
"nagios" value, while just after the %{nsgrp} is used to add the group,
which is also a bug I think...
Nevertheless, if the groupadd has to be kept, would it be possible to
use it also with the "-r" option ? This way, a system group would be
created.
This would avoid conflicts with standard users/groups, and this would
also make things more consistent.
I can easily patch the spec file, but I'm using nrpe on a few hundred
machines, and I guess other people managing clusters may face the same
problem of GID conflicts that I just did, which could probably be easily
be avoided.... so here I'm sharing the problem and potential solution.
Thanks for patching && regards && merry Christmas ! :]
Frederic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20071221/d3aae641/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list