Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tentacled permissions with rpm install
#1
Hi. I've installed the Pandora Server RPM but I'm having trouble restarting Tentacle Server
Here is the error I'm getting

[[email protected] ~]# /etc/init.d/tentacle_serverd restart
Tentacle Server does not seem to be running
Sorry, user root is not allowed to execute '/usr/bin/tentacle_server -a 0.0.0.0 -p 41121 -s /var/spool/pandora/data_in -i.*\.conf:conf;.*\.md5:md5;.*\.zip:collections -d' as pandora on myserver.
Tentacle Server could not be started.
Verify that port 41121 is not used.

And here is some of my system info. I'm running CentOS 6

[[email protected] bin]# yum info pandorafms_server
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.secureax.com
* extras: centos.mirror.secureax.com
* updates: centos.mirror.secureax.com
Installed Packages
Name        : pandorafms_server
Arch        : noarch
Version    : 5.1SP1
Release    : 1
Size        : 1.3 M
Repo        : installed
From repo  : artica_pandorafms
Summary    : Pandora FMS Server
URL        : http://www.pandorafms.com
License    : GPL
Description : Pandora FMS is a monitoring system for big IT environments. It uses remote tests, or local agents to grab information. Pandora supports all standard OS (Linux, AIX, HP-UX, Solaris and Windows XP,2000/2003), and support
            : multiple setups in HA enviroments.
[[email protected] ~]# ls -l /usr/bin | grep tentacle
-rwxr-xr-x    1 pandora root      22313 Sep  2 04:08 tentacle_client
-rwxr-xr-x    1 pandora root      40888 Oct 31 21:28 tentacle_server
[[email protected] ~]# ls -lH /etc/init.d | grep tentacle
-rwxr-xr-x  1 root    root  3397 Oct 31 21:28 tentacle_serverd


I read through the script /etc/init.d/tentacle_serverd and found that it's trying to do a sudo -u as pandora, so I added this line to /etc/sudoers and then it worked fine.

root ALL = (pandora) NOPASSWD: /usr/bin/tentacle_server

However, I wanted to check if this is really intended... I didn't find this documented anywhere and it sure is a pain to have to do this every time after instaling Pandora server. Can anybody comment?

 Reply
#2
Hello

Depending on how you have set up pandora on the Centos system on some ocassions you may need to update sudoers file to allow tentacle to start.

vi /etc/sudoers.

If you have any doubts on the content of that file take a look at the attached txt there you can find a copy of the sudoers file from a properly working centos system.

Regards
Ivo


Attached Files


.txt   sudoers.txt (Size: 4 KB / Downloads: 61)
 Reply
#3
So are you basically saying that this rpm assumes that root can sudo as pandora?
 Reply
#4
Hello

What I am saying is to make sure that the user root can run any command anywhere:

Quote:## Allow root to run any commands anywhere
root    ALL=(ALL)      ALL

You also need the user pandora to run tentacle. Have you created that user?

Regards
Ivo
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes