<p dir="ltr"><br>
On 31 Jul 2013 14:30, ", Roy" <<a href="mailto:rp346@njit.edu">rp346@njit.edu</a>> wrote:<br>
><br>
> Hi guys,<br>
><br>
> I want to start nagios with non root, nagios user. How do I do that. <br></p>
<p dir="ltr">Something like..</p>
<p dir="ltr">  sudo /etc/init.d/nagios start</p>
<p dir="ltr">should do it.</p>
<p dir="ltr">You'll need to edit /etc/sudoers to allow your non-root user to do this.  Enter 'man sudoers' to read all the gory detail on how to configure it.  However...</p>
<p dir="ltr">If your system is anything like mine (Ubuntu), you'll find you can easily give users sudo access to run any command as root by adding them to the 'admin' group.  This is by virtue of this entry in /etc/sudoers:</p>

<p dir="ltr">  # Members of the admin group may gain root privileges<br>
  %admin ALL=(ALL) ALL<br></p>
<p dir="ltr">Although you might decide this gives them too much power...<br></p>
<p dir="ltr">I hope that helps.</p>
<p dir="ltr">Jim</p>