This is a multi-part message in MIME format.
------_=_NextPart_001_01C84DF2.F5F7D202
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Hi lists,
=20
I just checked in the CVS tree, and nagios/nrpe spec files still
contains the non-system groupadds ...
It's not that I'm willing to see this changes at all costs in the
official spec files since I have patched ones for now, but I guess I'm
not the only one this kind of update will help... am I ?
=20
Regards
=20
________________________________
From: [email protected]
[mailto:[email protected]] On Behalf Of SCHAER
Frederic
Sent: Friday, December 21, 2007 4:26 PM
To: Nagios Developers List
Subject: Re: [Nagios-devel] nrpe RPM spec file bug(s)
=20
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...
=20
Regards
=20
________________________________
From: [email protected]
[mailto:[email protected]] On Behalf Of SCHAER
Frederic
Sent: Friday, December 21, 2007 2:06 PM
To: [email protected]
Subject: [Nagios-devel] nrpe RPM spec file bug(s)
=20
Hi,
=20
In the nagios spec file, the nagios user is added with command which creates a system account + system group.
=20
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 ?
=20
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...
=20
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.
=20
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.
=20
Thanks for patching && regards && merry Christmas ! :]
Frederic
------_=_NextPart_001_01C84DF2.F5F7D202
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
st1\:*{behavior:url(#default#ieooui) }
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]