osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-18-2008, 09:25 AM
New Member
 
Join Date: Feb 2008
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
letmelearn is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 11-18-2008, 01:32 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-18-2008, 10:27 PM
New Member
 
Join Date: Feb 2008
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
letmelearn is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-19-2008, 04:48 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 11-19-2008, 04:53 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -8. The time now is 05:48 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design