Re: [Nagios-devel] Problems with 3.0b5 init script?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Problems with 3.0b5 init script?

Post by Guest »


--Apple-Mail-82--143189449
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed


> I guess the root privileges are dropped after reading the config
> files. So for an startup as root nagios can access the file.
> The reload just sends a HUP Signal to the process now running as
> nagios user. So it won't work.

Thanks, Hendrik -- yes, that is what I was thinking, too. I assume
this is a change from the 2.x branch, in which case it might be wise
to have nagios 3.x read resources.cfg only after dropping its root
privileges to explicitly force people to correct this. (I.e., prevent
nagios from running at all as opposed to potentially running for a
long time and then acting weird.)

best,
Jeff


--Apple-Mail-82--143189449
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=ISO-8859-1

I guess the root privileges are =
dropped after reading the config files.=A0So for an startup as root =
nagios can access the file.The reload =
just sends a HUP Signal to the process now running as nagios=A0user. So =
it won't work.Thanks, Hendrik -- yes, that is =
what I was thinking, too. I assume this is a change from the 2.x branch, =
in which case it might be wise to have nagios 3.x read resources.cfg =
only after dropping its root privileges to explicitly force people to =
correct this. (I.e., prevent nagios from running at all as opposed to =
potentially running for a long time and then acting weird.)best,Jeff=

--Apple-Mail-82--143189449--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked