user nagios permissions

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mansonli
Posts: 60
Joined: Wed Aug 05, 2020 1:54 am

user nagios permissions

Post 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?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: user nagios permissions

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
mansonli
Posts: 60
Joined: Wed Aug 05, 2020 1:54 am

Re: user nagios permissions

Post 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?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: user nagios permissions

Post 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.

Code: Select all

chage -l nagios
Hope that helps answer your question.
--Benjamin

Reference:
https://support.nagios.com/forum/viewto ... =6&t=47890
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked