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
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]