Re: [Nagios-devel] nrpe RPM spec file bug(s)
Posted: Thu Jan 10, 2008 1:55 am
Hi,
I have to manage servers with hundreds of local unix users created, and
all of these servers must have consistent UIDs/GIDs, just because of
local constraints (NFS for instance).
I also need to monitor these (computing) servers, but I cannot afford
having nrpe / Nagios / nagiosplugins create a nagios user whose UID will
collide with one of those local user IDs.
I don't mind creating my own specfile now that I know what went wrong
last time I installed plugins - actually I did create one as this UID
thing was no option for me -, and I was sharing this experience. You
could say I can create user accounts before RPMs are installed, but
actually it's more complicated for me than having the RPM scripts do it

So, you seem to agree with me the missing "-r" option is a bug at least
for redhat systems spec file, don't you ? I think this option is nice,
I'm wondering if other systems might use the same, which would be
great...
>-----Original Message-----
>From: [email protected] [mailto:nagios-devel-
>[email protected]] On Behalf Of Andreas Ericsson
>Sent: Monday, January 07, 2008 2:59 PM
>To: Nagios Developers List
>Subject: Re: [Nagios-devel] nrpe RPM spec file bug(s)
>
>SCHAER Frederic wrote:
>> 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...
>>
>
>>From the useradd man-page on Fedora Core 7:
>
> -r This flag is used to create a system account. That is, a user with
a
> UID lower than the value of UID_MIN defined in /etc/login.defs and
> whose password does not expire. Note that useradd will not create a
> home directory for such an user, regardless of the default setting
> in /etc/login.defs. You have to specify -m option if you want a
home
> directory for a system account to be created. This is an option
> added by Red Hat
>
>
>In short, -r is used to make useradd give the account a UID less than
>500 (or 1000), so as to be easily distinguishable from ordinary
>user-accounts.
>
>Also note that if you're using this option on anything else than a Red
>Hat compatible system (such as SuSE), you need to write your own
spec-file.
>
>--
>Andreas Ericsson [email protected]
>OP5 AB www.op5.se
>Tel: +46 8-230225 Fax: +46 8-230231
>
>
>-----------------------------------------------------------------------
--
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239 ... net/market
place
>_______________________________________________
>Nagios-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/lis ... gios-devel
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
I have to manage servers with hundreds of local unix users created, and
all of these servers must have consistent UIDs/GIDs, just because of
local constraints (NFS for instance).
I also need to monitor these (computing) servers, but I cannot afford
having nrpe / Nagios / nagiosplugins create a nagios user whose UID will
collide with one of those local user IDs.
I don't mind creating my own specfile now that I know what went wrong
last time I installed plugins - actually I did create one as this UID
thing was no option for me -, and I was sharing this experience. You
could say I can create user accounts before RPMs are installed, but
actually it's more complicated for me than having the RPM scripts do it
So, you seem to agree with me the missing "-r" option is a bug at least
for redhat systems spec file, don't you ? I think this option is nice,
I'm wondering if other systems might use the same, which would be
great...
>-----Original Message-----
>From: [email protected] [mailto:nagios-devel-
>[email protected]] On Behalf Of Andreas Ericsson
>Sent: Monday, January 07, 2008 2:59 PM
>To: Nagios Developers List
>Subject: Re: [Nagios-devel] nrpe RPM spec file bug(s)
>
>SCHAER Frederic wrote:
>> 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...
>>
>
>>From the useradd man-page on Fedora Core 7:
>
> -r This flag is used to create a system account. That is, a user with
a
> UID lower than the value of UID_MIN defined in /etc/login.defs and
> whose password does not expire. Note that useradd will not create a
> home directory for such an user, regardless of the default setting
> in /etc/login.defs. You have to specify -m option if you want a
home
> directory for a system account to be created. This is an option
> added by Red Hat
>
>
>In short, -r is used to make useradd give the account a UID less than
>500 (or 1000), so as to be easily distinguishable from ordinary
>user-accounts.
>
>Also note that if you're using this option on anything else than a Red
>Hat compatible system (such as SuSE), you need to write your own
spec-file.
>
>--
>Andreas Ericsson [email protected]
>OP5 AB www.op5.se
>Tel: +46 8-230225 Fax: +46 8-230231
>
>
>-----------------------------------------------------------------------
--
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239 ... net/market
place
>_______________________________________________
>Nagios-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/lis ... gios-devel
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]