Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

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:26

    I 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
  • manu

    Member
    July 25, 2007 at 14:45
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The file must be owned by the user which runs apache, probably www-data, apache…it depends on the system
    Use chown to change it.

  • vjb

    Member
    July 25, 2007 at 16:53
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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.

  • raul

    Member
    July 25, 2007 at 20:08
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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