Permission denied while installaing nagios fusion server

This support forum board is for questions relating to Nagios Fusion.
Locked
abhishek
Posts: 20
Joined: Fri Oct 21, 2016 12:24 pm

Permission denied while installaing nagios fusion server

Post by abhishek »

Hi,
I got below error while installing the nagios fusion server . Kindly help me to over come from this situation .

Creating product directory...
Reloading httpd:
Creating postgres database and user...
-bash: /root/nagiosfusion/nagiosfusion/create_postgres_db.sh: Permission denied
RESULT=126

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios Fusion technical support.

The script that failed was: './B-installfusion'
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Permission denied while installaing nagios fusion server

Post by avandemore »

What OS and OS version are you using? Please attach the install.log file.
Previous Nagios employee
abhishek
Posts: 20
Joined: Fri Oct 21, 2016 12:24 pm

Re: Permission denied while installaing nagios fusion server

Post by abhishek »

Hi,
I am using Centos 6.8 . PFA for install.log
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Permission denied while installaing nagios fusion server

Post by lmiltchev »

Did you run the installer from the "/tmp" directory? You didn't run it from "/", did you?

What is the output of the following commands?

Code: Select all

grep postgres /etc/group
grep postgres /etc/passwd
sestatus
Be sure to check out our Knowledgebase for helpful articles and solutions!
abhishek
Posts: 20
Joined: Fri Oct 21, 2016 12:24 pm

Re: Permission denied while installaing nagios fusion server

Post by abhishek »

Hi,
I have install nagios fusion from /root/ directoy . And the output is :
[root@nagios-fusion ~]# grep postgres /etc/group
postgres:x:26:
[root@nagios-fusion ~]# grep postgres /etc/passwd
postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash
[root@nagios-fusion ~]# sestatus
SELinux status: disabled
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Permission denied while installaing nagios fusion server

Post by ssax »

Run this command and then try again:

Code: Select all

chmod +x /root/nagiosfusion/nagiosfusion/create_postgres_db.sh
If it still fails, please run this command and send the entire output:

Code: Select all

su - postgres -c /root/nagiosfusion/nagiosfusion/create_postgres_db.sh
Locked