Page 1 of 1

linux-nrpe-agent Install - Permission Denied

Posted: Fri Aug 16, 2019 3:42 am
by peakyblinder
Hi All,

First time having to install the nrpe agent on a linux server. I "know enough" to get by but this is confusing me somewhat.

I'm trying to install the linux-nrpe-agent on a RedHat server. Following the document it should just be a case of running the 'fullinstall' using something like 'sudo sh fullinstall'.
It runs but then fails with permission denied on;
$ sudo sh fullinstall
fullinstall: line 4: ./init.sh: Permission denied

When the script calls the next script, it keeps failing with permission denied. Doesnt even spit out an install.log
Even if I switch to root (sudo su), it still doesnt work.

I know this is probably pretty simple for someone... any ideas?

Thanks,

Re: linux-nrpe-agent Install - Permission Denied

Posted: Fri Aug 16, 2019 6:40 am
by scottwilkerson
Are you installing from a directory that has noexec set on it? some systems are locked down and do not allow executing from directories under /tmp

In this case you would want to move the install directory somewhere else like your users home directory and install from there.

Re: linux-nrpe-agent Install - Permission Denied

Posted: Fri Aug 16, 2019 8:10 am
by peakyblinder
Awesome!! I learn something everyday!

You're correct, running it from my home directory without problems.

Thank you sir!

Re: linux-nrpe-agent Install - Permission Denied

Posted: Fri Aug 16, 2019 8:28 am
by scottwilkerson
peakyblinder wrote:Awesome!! I learn something everyday!

You're correct, running it from my home directory without problems.

Thank you sir!
Great!

Locking