Page 1 of 1

Permissions

Posted: Sat May 04, 2019 12:32 am
by orani
What are the needed permissions for libexec directory and configuration directory.

when i try to "chmod -R o-rwx" both of them and "chown nagios:nagios" both of them i get an error code 13 out of bounds for ALL my services

Any suggestions?

Re: Permissions

Posted: Mon May 06, 2019 12:33 pm
by scottwilkerson
Can you show an example of running the command from the CLI as the nagios user

Re: Permissions

Posted: Mon May 06, 2019 12:34 pm
by scottwilkerson
One thing worth noting is there are several plugins that require suid root

Code: Select all

chmod +x /usr/local/nagios/libexec/*
chmod u+s /usr/local/nagios/libexec/check_dhcp
chmod u+s /usr/local/nagios/libexec/check_icmp

Re: Permissions

Posted: Wed May 08, 2019 5:35 am
by orani
when i run

chmod o-rwx /usr/local/nagios/libexec/*

gui returns error code 13 out of bounds
and
cli returns the following
./check_ping -H x.x.x.x
bash: ./check_ping: Permission denied

permissions of script are

-rwxrwx---. 1 root root 188695 Dec 30 23:33 check_ping

same for every check script

Re: Permissions

Posted: Wed May 08, 2019 5:45 am
by orani
found the problem!

i had changed only the directory permission and not the files included to them.

i fixed it and worked fine

Re: Permissions

Posted: Wed May 08, 2019 7:42 am
by scottwilkerson
orani wrote:found the problem!

i had changed only the directory permission and not the files included to them.

i fixed it and worked fine
Great!

Glad it is resolved.

Locking