Page 2 of 2

Re: Permission denied errors in my audit logs

Posted: Thu Oct 01, 2020 10:59 am
by BackNBlack
Here you go

Code: Select all

ls -la /usr/local/nagios/var/rw/
total 8
drwsr-xr-x 2 nagios nagios 4096 Oct  1 15:17 .
drwxrwxr-x 6 nagios nagios 4096 Oct  1 15:38 ..
prw-rw---- 1 nagios nagios    0 Oct  1 15:17 nagios.cmd
srw-rw---- 1 nagios nagios    0 Oct  1 15:17 nagios.qh
FYI, We have another environment with what is supposed to be a similar configuration. It does not have these errors. I have been comparing the two and have not found any differences yet. To be clear these current access rights are exactly the same in both environments. Felt I needed to mention that.

Anyway, I have made your suggested changes, I wasn't sure so I rebooted afterwards.

Code: Select all

# ls -ld /usr/local/nagios
drwxr-xr-x 8 nagios nagios 4096 Sep 27  2018 /usr/local/nagios

# ls -ld /usr/local/nagios/var/rw/
drwxrwsr-x 2 nagios nagios 4096 Oct  1 15:53 /usr/local/nagios/var/rw/

# grep requiretty /etc/sudoers
Defaults    requiretty
Issue continues to persist.

Thanks

Re: Permission denied errors in my audit logs

Posted: Thu Oct 01, 2020 12:34 pm
by lmiltchev
Change this:

Code: Select all

Defaults    requiretty
to this:

Code: Select all

Defaults:nagios !requiretty
in sudoers.

If you are still having issues after that, open a ticket via our support center here:

https://support.nagios.com/tickets/

We may need to schedule a remote session to further troubleshoot your issue.