Start Nagios with different user

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
rp346
Posts: 1
Joined: Wed Jul 31, 2013 7:39 am

Start Nagios with different user

Post by rp346 »

Hi Guys,

I recently installed Nagios Core. I want to know if I want to start Nagios with different user then how do I do that ?

Thanks
Roy
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Start Nagios with different user

Post by yancy »

rp346,

how about

Code: Select all

su YOUR_USERNAME -c "/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg"
-Yancy
Locked