Permissions

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Permissions

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Permissions

Post by scottwilkerson »

Can you show an example of running the command from the CLI as the nagios user
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Permissions

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: Permissions

Post 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
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: Permissions

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Permissions

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked