When I install xi-2012r2.2.tar,it prompt ”Permission denied“

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
huanhuan7777
Posts: 19
Joined: Thu Nov 07, 2013 12:05 am

When I install xi-2012r2.2.tar,it prompt ”Permission denied“

Post by huanhuan7777 »

# cd /tmp/nagiosxi/
# ./fullinstall
------
Running './C-cronjobs'...

Permission denied
You (apache) are not allowed to access to (crontab) because of pam configuration.
RESULT=1


It is why???

Who can tell me ???

Thank you ~~~
huanhuan7777
Posts: 19
Joined: Thu Nov 07, 2013 12:05 am

Re: When I install xi-2012r2.2.tar,it prompt ”Permission den

Post by huanhuan7777 »

The file /etc/pam.d/crond

Code: Select all

#
# The PAM configuration file for the cron daemon
#
#
# No PAM authentication called, auth modules not needed
auth       required   pam_env.so
account    required   pam_access.so
account    include    password-auth
session    required   pam_loginuid.so
session    include    password-auth
auth       include    password-auth
#auth       required   pam_env.so
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: When I install xi-2012r2.2.tar,it prompt ”Permission den

Post by abrist »

What user are you running the install as? (you should be root)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
huanhuan7777
Posts: 19
Joined: Thu Nov 07, 2013 12:05 am

Re: When I install xi-2012r2.2.tar,it prompt ”Permission den

Post by huanhuan7777 »

abrist wrote:What user are you running the install as? (you should be root)
I use root.

When I edited /etc/security/access.conf file like this:

Code: Select all

-:ALL EXCEPT apache:ALL
It worked!

But I don't know it‘s why!

You know?

Thank you vary much~
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: When I install xi-2012r2.2.tar,it prompt ”Permission den

Post by abrist »

Is selinux enabled?

Code: Select all

getenforce
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked