www.uburst.com www.uburst.com

"Adding catagory problem"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

General Questions
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Adding catagory problem"
Posted by Navid on Feb-09-01 at 08:18 PM (EST)

I'm tryin to add a catagor but it says
"File Error

--------------------------------------------------------------------------------
Unable to open ./data/ustorekeeper-categories.txt
"

I did try to change the permission and even if I put the permission for the data directory to 777 it still has the same problem. And Add product and other futures work fine so I assume the problem isn't with the directory settings.
what can the problem be?
thanks

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Adding catagory problem, Bill Weiner, Feb-10-01, (1)
problem fixed but another problem,, Navid, Feb-10-01, (2)
RE: problem fixed but another probl..., Bill Weiner, Feb-12-01, (3)
RE: problem fixed but another probl..., Bill Weiner, Feb-12-01, (4)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Adding catagory problem"
Posted by Bill Weiner on Feb-10-01 at 08:48 AM (EST)
Since the "Add Product" feature is working fine...that means that the data directory has write permission and the data files do have permission to be updated.

So it really just sounds like the permissions on the "ustorekeeper-categories.txt" file accidentally got changed to read-only. Try doing a chmod 777 on the "ustorekeeper-categories.txt" file and see if that corrects the problem.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "problem fixed but another problem,"
Posted by Navid on Feb-10-01 at 03:43 PM (EST)
Thanks alot the add category function works now!
but i found out about another problem. the data directory is visible to general website viewers since the permission for the folder is 777. I tried removing "read" access for "world" from that folder but in that case the store won't function. is there any way to block access to that folder? thanks again
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "RE: problem fixed but another problem,"
Posted by Bill Weiner on Feb-12-01 at 06:33 AM (EST)
You are correct, as described in section 4 at:

http://www.uburst.com/uStorekeeper/security.html

.... it is very important that regular website visitors cannot view the contents of your "data" directory.

So, you've tried a chmod 755 on your data directory... but that results in an "unable to open" error?

Well since a chmod 777 on the "data" directory allows everyone to view the contents of that directory... and a chmod 755 on the "data" directory does not allow order files to be written, then here are a couple suggestions:

1) First I would suggest contacting your web hosting provider... because they may be able to configure your cgi-bin/data directory for you so that it is not viewable by regular website visitors.

2) If your web hosting provider can't help, then they problably have provided "cgi wrap" on your server. CGI WRAP will allow you to run cgi scripts as a specific user... instead of 'nobody' or 'www'. This will basically allow you to set the permission on your data directory to chmod 700... and yet still allow the script to write to your data directory. CGI WRAP is pretty easy to setup... but if you need any assistance, send us a support request with your current script URL settings ... and preferrably a link to your web hosting provider's reference page for their CGI WRAP configuration, and we should be able to assist.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
4 . "RE: problem fixed but another problem,"
Posted by Bill Weiner on Feb-12-01 at 10:56 AM (EST)
Oops. I meant chmod 733 in the above posting. That is, try giving your data directory 733 (Write and Execute) permissions... and if that doesn't work... THEN look into the 2 suggestions that I posted.
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.