osCmax v2.5 User Manual
Results 1 to 5 of 5

Help needed urgently please chmod: changing permissions not permitted

This is a discussion on Help needed urgently please chmod: changing permissions not permitted within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; My host is about to suspend my account permanently because of an error that has occured since they upgraded their ...

      
  1. #1
    New Member
    Join Date
    Feb 2008
    Posts
    17
    Rep Power
    0


    Default Help needed urgently please chmod: changing permissions not permitted

    My host is about to suspend my account permanently because of an error that has occured since they upgraded their server!

    The error message is:
    "chmod: changing permissions of
    `/hsphere/local/home/mysite.com/catalog//images/image
    cache': Operation not permitted"

    They are receiving thousands of these errors a day. Does anyone know how to clear this error? I found some info on another site about removing:

    umask(0);
    !is_dir ($cachedir)
    ? mkdir ($cachedir, 0777)
    : system ("chmod 0777 ".$cachedir);

    But I don't know which file to remove it from. Please can anyone help?

    thank you
    LML

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Help needed urgently please chmod: changing permissions not permitted

    Try deleting in FCKeditor directory

    Delete /catalog/FCKeditor/editor/filemanager/browser/default/connectors/asp/*
    Delete /catalog/FCKeditor/editor/filemanager/browser/default/connectors/aspx/*
    Delete /catalog/FCKeditor/editor/filemanager/browser/default/connectors/cfm/*
    Delete /catalog/FCKeditor/editor/filemanager/browser/default/connectors/perl/*
    Delete /catalog/FCKeditor/editor/filemanager/browser/default/connectors/test.html

    And modify
    /catalog/FCKeditor/editor/filemanager/connectors/php/upload.php

    PHP Code:
    ...
     * == 
    END LICENSE ==
     *
     * 
    This is the "File Uploader" for PHP.
     */
     
     
    // Arbitrary Upload Exploit Fix
     
    if (strpos ($_SERVER['PHP_SELF'], 'upload.php') !== false)
     {
     die (
    'This file can not be used on its own.');
     }
     
     require(
    './config.php') ;
     require(
    './util.php') ;
     require(
    './io.php') ;
     require(
    './commands.php') ;
     require(
    './phpcompat.php') ;
    ... 
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    New Member
    Join Date
    Feb 2008
    Posts
    17
    Rep Power
    0


    Default Re: Help needed urgently please chmod: changing permissions not permitted

    I found the offending code it was:
    umask(0);
    !is_dir ($cachedir)
    ? mkdir ($cachedir, 0777)
    : system ("chmod 0777 ".$cachedir);

    and it was in html_output.php

    My host said that this code does the following:
    That code is basically saying, Is it NOT a directory, if it is NOT a directory then make the directory, if it IS a directory, change its permissions. There's a couple of reasons that might 1) be failing (most likely user permissions vs apaches running user (myaccountname vs httpd)) or 2) be now logging the issue (most likely the improved PHP version or it should of been logging before).

    Does anyone know if I should have this code in there or not?
    Any clues greatfully receive.

    Much releaved
    LetMeLearn

  4. #4
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Help needed urgently please chmod: changing permissions not permitted

    Sorry - but that code does not exist in that file. Re-install or please explain WHICH file - as HTML_OUTPUT should not be creating or working with files.....
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  5. #5
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Help needed urgently please chmod: changing permissions not permitted

    Also review your passwords and acess. Makesure your ADMIN is secured. I forgot you are using osCommerce fourm....
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

Similar Threads

  1. Setting permissions CHMOD
    By xess in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 12-23-2004, 10:20 AM
  2. newbie guide to php wanted urgently !!
    By annie in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 10-16-2004, 10:51 AM
  3. Changing the layout..hELP Needed!!
    By kellycog in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 06-29-2004, 05:33 PM
  4. Help needed changing link color in info box header
    By 13Moons in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 03-04-2004, 01:12 AM
  5. CHMOD
    By Eller in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 10-01-2003, 09:25 PM

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
  •