Install - Issue: Permission Denied

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
nickanderson1982
Posts: 72
Joined: Wed Feb 06, 2019 3:22 pm

Install - Issue: Permission Denied

Post by nickanderson1982 »

I am stuck on the install for RHEL

I am at the point :
cd /tmp/nagioscore-nagios-4.4.3/
./configure
make all

When I run the command ./configure
I receive the following
bash: ./configure: Permission denied

What is the work around for that?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Install - Issue: Permission Denied

Post by scottwilkerson »

Are you running this as root?

can you show

Code: Select all

ls -l ./configure
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nickanderson1982
Posts: 72
Joined: Wed Feb 06, 2019 3:22 pm

Re: Install - Issue: Permission Denied

Post by nickanderson1982 »

-rwxrwxr-x. 1 root root 246267 Jan 15 08:58 ./configure
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Install - Issue: Permission Denied

Post by scottwilkerson »

scottwilkerson wrote:Are you running this as root?
Also does the /tmp partition have the noexec flag on it?

Code: Select all

mount
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nickanderson1982
Posts: 72
Joined: Wed Feb 06, 2019 3:22 pm

Re: Install - Issue: Permission Denied

Post by nickanderson1982 »

]# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=32812108k,nr_inodes=8203027,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=00 0)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_a gent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu )
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_pr io,net_cls)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/mapper/vglocal20190104-root00 on / type ext4 (rw,relatime,seclabel,stripe=64,data=ordere d)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=32,pgrp=1,timeout=0,minprot o=5,maxproto=5,direct,pipe_ino=24111)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime,seclabel)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
/dev/mapper/vglocal20190104-tmp00 on /tmp type ext4 (rw,nosuid,nodev,noexec,relatime,seclabel ,stripe=64,data=ordered)
/dev/sda1 on /boot type ext4 (rw,relatime,seclabel,stripe=64,data=ordered)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=6568020k,mode=700, uid=1000,gid=1000)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=6568020k,mode=700)
tmpfs on /run/user/994201123 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=6568020k,mode =700,uid=994201123,gid=994200513)

I didn't see it on that output, how would I do it then?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Install - Issue: Permission Denied

Post by scottwilkerson »

Code: Select all

/dev/mapper/vglocal20190104-tmp00 on /tmp type ext4 (rw,nosuid,nodev,noexec,relatime,seclabel ,stripe=64,data=ordered)
this means you cannot execute the code while in the /tmp directory

You can more it to your home directory and try to compile there

Code: Select all

mv /tmp/nagioscore-nagios-4.4.3 ~/
cd ~/nagioscore-nagios-4.4.3/
./configure
make all
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nickanderson1982
Posts: 72
Joined: Wed Feb 06, 2019 3:22 pm

Re: Install - Issue: Permission Denied

Post by nickanderson1982 »

That worked. Thank You!!!
Ticket Completed
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Install - Issue: Permission Denied

Post by scottwilkerson »

nickanderson1982 wrote:That worked. Thank You!!!
Ticket Completed
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked