Page 1 of 1
user nagios permissions
Posted: Wed Oct 07, 2020 1:24 am
by mansonli
Does a local user called nagios has root privileges (defined in /etc/sudoers?) to run commands such as "/etc/init.d/nagios start"? No password is required to run them as nagios?
Re: user nagios permissions
Posted: Wed Oct 07, 2020 4:29 pm
by benjaminsmith
Hi,
When Nagios XI is installed a local nagios account is created and this account has to be able to restart services and run the backend scripts. This is all defined in the
/etc/sudoers file. Also, depending on what OS you are using some of those entries such as ''/etc/init.d/nagios start' are there for backward compatibility.
Let us know if you have any other questions.
--Benjamin
See:
https://support.nagios.com/forum/viewto ... =6&t=53907
Re: user nagios permissions
Posted: Thu Oct 08, 2020 12:41 am
by mansonli
If password of nagios user must be changed because of implementing security policy, will it make nagios services and scripts fail to run or malfunction?
Re: user nagios permissions
Posted: Thu Oct 08, 2020 3:49 pm
by benjaminsmith
Hi,
There isn't a password set on the default nagios account. As mentioned, this will cause issues with starting and stopping services.
Hope that helps answer your question.
--Benjamin
Reference:
https://support.nagios.com/forum/viewto ... =6&t=47890