Page 2 of 2

Re: No sources currently exists

Posted: Wed Sep 30, 2015 1:50 am
by Laude_Volker
There is no file /etc/sudoers.d/nna_conf - Only the file /etc/sudoers.d/nagiosna exists.

[root@dehb-nagios-21 ~]# ll /etc/sudoers.d/
total 4
-r--r----- 1 root root 441 Sep 24 08:43 nagiosna

[root@dehb-nagios-21 ~]# cat /etc/sudoers.d/nagiosna
Defaults:%nnacmd !requiretty

Host_Alias HOST = localhost

Cmnd_Alias LIST = /sbin/iptables --list
Cmnd_Alias SAVE = /etc/init.d/iptables save
Cmnd_Alias UPDATE = /sbin/iptables -I INPUT -p udp -j ACCEPT --dport *
Cmnd_Alias DAEMON = /usr/local/nagiosna/bin/nagiosna *

%nnacmd ALL=(ALL) NOPASSWD:LIST
%nnacmd ALL=(ALL) NOPASSWD:SAVE
%nnacmd ALL=(ALL) NOPASSWD:UPDATE
%nnacmd ALL=(ALL) NOPASSWD:/bin/kill *
%nnacmd ALL=(ALL) NOPASSWD:DAEMON

Re: No sources currently exists

Posted: Wed Sep 30, 2015 3:32 pm
by ssax
Here is what mine looks like on the latest version:

Code: Select all

Defaults:%nnacmd !requiretty

Cmnd_Alias LIST = /sbin/iptables --list
Cmnd_Alias SAVE = /etc/init.d/iptables save
Cmnd_Alias UPDATE = /sbin/iptables -I INPUT -p udp -j ACCEPT --dport *
Cmnd_Alias DAEMONCTL = /usr/local/nagiosna/bin/rc.py *

Defaults:nna !requiretty
nna ALL = NOPASSWD:/usr/local/nagiosna/scripts/change_timezone.sh
nna ALL = NOPASSWD:/usr/local/nagiosna/scripts/upgrade_to_latest.sh

%nnacmd ALL=(ALL) NOPASSWD:LIST
%nnacmd ALL=(ALL) NOPASSWD:SAVE
%nnacmd ALL=(ALL) NOPASSWD:UPDATE
%nnacmd ALL=(ALL) NOPASSWD:/bin/kill *
%nnacmd ALL=(ALL) NOPASSWD:DAEMONCTL
Can you try replacing your with those entries and see if it resolves the issue?

Re: No sources currently exists

Posted: Thu Oct 01, 2015 2:06 am
by Laude_Volker
Since the file /etc/sudoers.d/nna_conf is renamed and modified the problem is solved.

Thanks for your brilliant support.

This service request could be closed from now.