sudoers reset after update

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

sudoers reset after update

Post by WillemDH »

hello,

Following Ludmill's guidelines in this post: http://support.nagios.com/forum/viewtop ... 16&t=30574

I added entry in sudoers file.

Code: Select all

nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_init_service *
After update to R2.3 from R2.1, the entries were deleted. Will I have to re-add this entry every time I upgrade Nagios XI?

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: sudoers reset after update

Post by slansing »

It looks like in the "install-sudoers" script that is packaged with the XI tarball, it handles replacement of the current sudoers file with a new one that has our standard lines included. You could modify this script when you download upgrades to tell it not to do that, or at least backup your current sudoers file first so you can see what the new changes (if any) would be.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: sudoers reset after update

Post by WillemDH »

Ok, thanks Sam, put it my post-upgrade to-do list. This thread can be closed.

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: sudoers reset after update

Post by abrist »

Closing.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked