Re: Permission denied errors in my audit logs
Posted: Thu Oct 01, 2020 10:59 am
Here you go
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.
Issue continues to persist.
Thanks
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
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
Thanks