Page 1 of 1

macOS Client Install Error: "Permission Denied"

Posted: Tue Feb 07, 2017 2:27 pm
by TCN-Link
I'm following the document on how to install the Nagios client on macOS (in this case, the version is 10.12.3). I have XCode with command Line Tools installed. I tried running the bash script for fullinstall like it instructs both using sudo preceding the command and sudo -i. This is what I get.

Code: Select all

Current step is 0-usersgroups
./fullinstall: line 36: ./0-usersgroups: Permission denied
0-usersgroups appears to have already completed successfully.  Moving on to the next step.
Current step is 1-services
./fullinstall: line 36: ./1-services: Permission denied
1-services appears to have already completed successfully.  Moving on to the next step.
Current step is A-subcomponents
./fullinstall: line 36: ./A-subcomponents: Permission denied
A-subcomponents appears to have already completed successfully.  Moving on to the next step.
Starting NRPE Agent

##########################################################
###                                                    ###
###    Nagios Mac OSX Agent Installation Complete!     ###
###                                                    ###
##########################################################

If you experience any problems, please attach the file logs-all-steps-1486410377.tar.gz that was just created to any support requests.


Permissions issues tell me these scripts didn't run. What are the permissions supposed to be so I can double-check them? What else could be causing such problems?
The log file it mentions is attached.

Thank you!

Re: macOS Client Install Error: "Permission Denied"

Posted: Tue Feb 07, 2017 3:48 pm
by rkennedy
Two things come to mind with this issue -

1. Are the files executable? Please show us the full output of ls -la ran from that folder.
2. I don't have a Mac here to test with, but what happens if you append sudo to line 36 like this? I'm wondering if this will affect it.

Code: Select all

	sudo ./"$step" | tee -a "log/$step.log"

Re: macOS Client Install Error: "Permission Denied"

Posted: Wed Feb 08, 2017 2:13 pm
by TCN-Link
They are bash scripts, so they're executable.

I had another look at the scripts and it turns out that the properties on the scripts changed upon extracting them from the tar.gz file. I'm not sure how.
I downloaded the client install again. It seems to work.

Thank you!

Re: macOS Client Install Error: "Permission Denied"

Posted: Wed Feb 08, 2017 2:25 pm
by rkennedy
Great to hear that's all it was! Are we good to mark this thread resolved then, or do you have further questions about the agent?

Re: macOS Client Install Error: "Permission Denied"

Posted: Thu Feb 16, 2017 4:59 pm
by TCN-Link
Go ahead and resolve this. Thanks again!