nrpe RPM spec file bug(s)

Andreas Ericsson ae at op5.se
Mon Jan 7 14:59:10 CET 2008


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                   andreas.ericsson at op5.se
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;13503038;w?http://sf.net/marketplace




More information about the Developers mailing list