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?
Permissions
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Permissions
Can you show an example of running the command from the CLI as the nagios user
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Permissions
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_icmpRe: Permissions
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
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
found the problem!
i had changed only the directory permission and not the files included to them.
i fixed it and worked fine
i had changed only the directory permission and not the files included to them.
i fixed it and worked fine
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Permissions
Great!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
Glad it is resolved.
Locking