osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Error: I am able to write to the configuration file....even though its set to 444

This is a discussion on Error: I am able to write to the configuration file....even though its set to 444 within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; When I log into the store admin I get this warning... Error: I am able to write to the configuration ...

      
  1. #1
    New Member
    Join Date
    Apr 2011
    Posts
    7
    Rep Power
    0


    Default Error: I am able to write to the configuration file....even though its set to 444

    When I log into the store admin I get this warning...

    Error: I am able to write to the configuration file: /home/xyz/public_html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

    I have set and reset and deleted and recreated and reset etc etc the permissions on that file without any change.

    Currently it's set to 0444

    Any suggestions would be appreciated.

    Cheers
    Jay

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Error: I am able to write to the configuration file....even though its set to 444

    Try chmod 400 and also make sure you set both the catalog and admin configure.php files - there are two!
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Apr 2011
    Posts
    7
    Rep Power
    0


    Default Re: Error: I am able to write to the configuration file....even though its set to 444

    Again thanks for the help. I did not realise there were 2. Once I set the permissions on the admin one it was all good.

  4. #4
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Lightbulb Re: Error: I am able to write to the configuration file....even though its set to 444

    Hosting plans with installation, configuration, contributions, support and maintenance.

  5. #5
    Member
    Join Date
    Oct 2011
    Posts
    34
    Rep Power
    0


    Default Re: Error: I am able to write to the configuration file....even though its set to 444

    I am also having this problem

    Warning: I am able to write to the configuration file: /home/askdanbl/public_html/store/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

    File permission are 644 which as far as I know is secure. I cannot set the permissions any lower. If I try 444 the permissions revert back to 644

    2 questions?

    1. Are 444 permissions securtiy overkill? 644 should be secure.
    2. Is there anyway to remove the error message from the public store?

    If there is really no problem with 644 permissions, removing the message from the public store will fix my problem.

  6. #6
    Member
    Join Date
    Oct 2011
    Posts
    34
    Rep Power
    0


    Default Re: Error: I am able to write to the configuration file....even though its set to 444

    I am sorry if this comes across the wrong way, but don't you think the biggest security problem here is that the script is advertising the everyone who visits that the store is insecure?

    Why is this "insecure store" warning appearing on the public site?

  7. #7
    Member
    Join Date
    Oct 2011
    Posts
    34
    Rep Power
    0


    Default Re: Error: I am able to write to the configuration file....even though its set to 444

    Going to have to uninstall until this is worked out. I don't want to get hacked because my store is asking people to hack it.

  8. #8
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: Error: I am able to write to the configuration file....even though its set to 444

    I would stick with 444 as per the wiki instructions ... are you sure you have done this on BOTH configure.php files?

    Otherwise,

    Just edit catalog/admin/includes/modules/dashboard/system.php

    Look for: <!-- Start check for configure file -->

    You can remove that section - but I would strongly recommend that you just fix the permissions on BOTH of the configure files.

    Security is a real issue in the eCommerce world and this code is just checking if the configure file is writable which it should not be.

    Regards.
    pgmarshall
    _______________________________

  9. #9
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: Error: I am able to write to the configuration file....even though its set to 444

    Sorry I mis-read your post ... you want to remove from the public side.

    It is there because the old system did not warn you from within admin. (and probably should be removed!)

    Go to: catalog/includes/warnings.php

    and remove the bit after:

    // check if the configure.php file is writeable

    Leave the other bit - that was the code within the admin panel! Which I thought was a bit odd for you to ask to remove!!

    Regards.
    pgmarshall
    _______________________________

  10. #10
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: Error: I am able to write to the configuration file....even though its set to 444

    I have actually just updated this in the core since it makes no sense to broadcast insecurities to the outside world.

    r1550 - oscmax2 - osCmax - osCommerce Maximized - Google Project Hosting

    If you follow the link above you will be able to see which bit of code to remove.

    Thanks for pointing it out.

    Regards.
    Last edited by pgmarshall; 10-22-2011 at 08:17 AM.
    pgmarshall
    _______________________________

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 04-24-2009, 08:02 PM
  2. Warning: I am able to write to the configuration file
    By pete in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 06-18-2008, 06:43 PM
  3. Warning: I am able to write to the configuration file
    By Lefuneste in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 12-26-2003, 04:15 PM
  4. Error: I can not write to this file.
    By angie201 in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 05-25-2003, 02:15 AM
  5. Warning: I am able to write to the configuration file
    By talon in forum osCommerce 2.2 Installation Help
    Replies: 28
    Last Post: 01-28-2003, 06:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •