how to start nagios with non nagios user

Jim Avery jim at jimavery.me.uk
Fri Aug 2 13:39:27 CEST 2013


On 31 Jul 2013 14:30, ", Roy" <rp346 at njit.edu> wrote:
>
> Hi guys,
>
> I want to start nagios with non root, nagios user. How do I do that.

Something like..

  sudo /etc/init.d/nagios start

should do it.

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

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:

  # Members of the admin group may gain root privileges
  %admin ALL=(ALL) ALL

Although you might decide this gives them too much power...

I hope that helps.

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130802/1988b4b4/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list