sh: /usr/local/rrdtool/bin/rrdtool: Permission denied

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
cpmonkey
Posts: 4
Joined: Thu Aug 17, 2006 12:23 pm

sh: /usr/local/rrdtool/bin/rrdtool: Permission denied

Post by cpmonkey »

Hello. Newbie to caciti, but not linux. Does anyone know how to resolve this?

1. Ran the previous post. 2/2005 "RRDTool Says /usr/local/bin/: permission denied"

2. Tried chown'ing the file between root, apache, cactiuser, etc. + service httpd restart

3. compile dir is:
# ll
total 100
-rwxr-xr-x 1 root root 40754 Aug 16 15:49 rrdcgi
-rwxr-xr-x 1 root root 4921 Aug 16 15:49 rrdtool
-rwxr-xr-x 1 root root 40591 Aug 16 15:49 rrdupdate
# pwd
/usr/local/rrdtool/bin

4. tail messages
Aug 17 12:27:19 oholuty5 kernel: audit(1155835639.489:574): avc: denied { execute } for pid=7839 comm="sh" name="rrdtool" dev=cciss/c0d0p3 ino=28147715 scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:usr_t tclass=file

5. in /var/log/httpd/ # tail error_log
sh: /usr/local/rrdtool/bin/rrdtool: Permission denied
sh: /usr/local/rrdtool/bin/rrdtool: Permission denied

Looking for any guidance ; will check anything.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Moving to the proper forum.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

is SELinux enabled on this host ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
cpmonkey
Posts: 4
Joined: Thu Aug 17, 2006 12:23 pm

Thanks for the pick up....

Post by cpmonkey »

It is a RedHat platform, Enterprise Linux.

uname -a
Linux oholuty5.oxy.com 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:32:14 EDT 2005 i686 athlon i386 GNU/Linux

I was thinking about maybe an earlier version of rrdtools. I am running out of ideas to throw. I am trying rrdtool-1.2.14

Yesterday, I compiled the rrdtools with this string, but I still got the same message.

./configure --with-rrdtool=/usr/local/rrdtool/bin/rrdtool --with-mysql-lib-dir=/usr/lib/mysql/ --with-net-snmp

I really appreciate the look-over.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

To see if SELinux is enabled :

Code: Select all

$ grep ^SELINUX /etc/selinux/config
SELINUX=disabled
You should install an RRDtool RPM from this repository : http://dag.wieers.com/packages/rrdtool/
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
cpmonkey
Posts: 4
Joined: Thu Aug 17, 2006 12:23 pm

THANKS! It is actually enabled

Post by cpmonkey »

grep ^SELINUX /etc/selinux/config
SELINUX=enforcing
SELINUXTYPE=targeted

Shoulkd I kill it (vi the config file)?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
cpmonkey
Posts: 4
Joined: Thu Aug 17, 2006 12:23 pm

THAT WORKED!

Post by cpmonkey »

That was it, we changed the config file and now it works great.

/etc/selinux/config

Thank you, that was a very big help. I have not messed with selinux file before, so I would never have found it without your help.

I really appreciate it!
bloodrayne
Cacti User
Posts: 53
Joined: Mon Nov 29, 2004 11:43 am

Post by bloodrayne »

Just a quick tip from a linux user ...

SElinux will cause you a LOT of problem like this one ... it's a better idea to deactivate it...
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests