Welcome to Pandora FMS Community › Forums › Community support › Bad permission for include/config.php
-
Bad permission for include/config.php
Posted by vjb on July 25, 2007 at 12:26I get the message when I try to access the web console. Please Help!!!!!!
raul replied 17 years, 7 months ago 3 Members · 3 Replies -
3 Replies
-
-
::
For security reasons, config.php must have restrictive permissions, and “other” users cannot read or write to it. It could be writed only for owner (usually www-data or daemon user), normal operation is not possible until you change permissions for include/config.phpfile. Please do it, it’s for your security.
I get the above message when I try to run web console in windows. -
::
WARNING: Only explained the first and last time (this post topic will be locked):
This change can be made AT YOUR OWN RISK:
First, you SHOULD read http://www.openideas.info/phpbb/viewtopic.php?t=242 before posting.
Second, as you can see looking at the code, the perms are ready for UNIX and Linux systems. At this point you can follow two ways (NONE ARE SUPPORTED BY PANDORA TEAM):
a) – Comment checking permissions at /index.php file.
b) – Adding the permissions of your file:
Try adding to the /index.php file between line 54 and 55 the line:
[code:1](substr(sprintf(‘%o’, fileperms(‘include/config.php’)), -4) != “0666”) &&At the end you’ll have:
[code:1](substr(sprintf(‘%o’, fileperms(‘include/config.php’)), -4) != “0640”) &&
(substr(sprintf(‘%o’, fileperms(‘include/config.php’)), -4) != “0666”) &&
(substr(sprintf(‘%o’, fileperms(‘include/config.php’)), -4) != “0600”))I repeat, NONE of this changes are supported. Change it at your own risk or better, use Linux!
Raul