Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc.

Go Back   Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc. > >> General Public > Chit Chat Public
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Chit Chat Public Talk about any thing you want! This forum is public.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-27-2003, 07:06 PM
obj's Avatar
obj obj is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Location: Bucks County, PA
Access below root

Can I access a file below the root? (domain.com folder?) I wanted to run scripts from below the domain.com folder to protect them. I that possible?
Reply With Quote
  #2  
Old 09-27-2003, 07:35 PM
Garreg's Avatar
Garreg Garreg is offline
Resident Optimist
Vortech Inc. Customer
 
Location: UK - Mon to Fri. Mars - all Weekend
Yes.

Most hosts using ASP with an MS Access database use a folder outside of the root to protect it from prying eyes.

Create a folder and set the permission for it via FTP -> 'if' you have a problem send in a TT with the details of the folder / domain and permissions that you require and I'm sure of on the techies will oblige
__________________
Regards to all
Reply With Quote
  #3  
Old 09-27-2003, 07:55 PM
obj's Avatar
obj obj is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Location: Bucks County, PA
Garreg, I did not quite understand your answer but maybe I was not clear on what I'm trying to do.

I am on a Unix server and I'm trying to do the testing with an Instant (temporary) URL

I placed a file in the root folder calling a file ../cgi-bin/file.cgi

All file and folder permissions are set to 755.

When I look at the error log file I see that the link is trying to open the cgi-bin inside the domain folder: domain.com/cgi-bin/file.cgi which is not correct.

My hunch was that it may have to do with the temporary URL. So I made another test setup on a"real" domain and the same happens.

I have the same script running under this setup on a different hosting service and it works.

So I guess my question is: Does Vortech allow to run scripts placed below the root?

Thanks.
Reply With Quote
  #4  
Old 09-27-2003, 07:56 PM
Brangwyn Brangwyn is offline
T3CHN0 STUD
Vortech Inc. Customer
 
Location: New Zealand (Wellington)
Usually you won't need to set permissions (on windows at least) as the default permissions for folders above root already have read/write access.
Reply With Quote
  #5  
Old 09-27-2003, 08:02 PM
Funnyhat's Avatar
Funnyhat Funnyhat is offline
Head Wanker
Junior Member
 
I would guess the folder below your domain folder does not have cgi execute access... Is this on UNIX or windows machine?

Also what are you trying to protect? I guess I thought CGI was like PHP/ASP is the aspect that for someone to steal the code they need to have the actual file not just the output but I could be wrong.

Mark
__________________
Reply With Quote
  #6  
Old 09-27-2003, 08:40 PM
obj's Avatar
obj obj is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Location: Bucks County, PA
This is on Unix and the permissions are set to execute. The script is a store setup and placing all data and scripts below the webfolder is a security measurment.
Reply With Quote
  #7  
Old 09-27-2003, 10:47 PM
Brangwyn Brangwyn is offline
T3CHN0 STUD
Vortech Inc. Customer
 
Location: New Zealand (Wellington)
If a folder is above the root then you can't execute files in it, same applies to both windows and unix afaik.
Reply With Quote
  #8  
Old 09-28-2003, 02:46 AM
alexc
Guest
 
I understand what you mean and personally I consider it a design deficiency (aka something I Do Not Do on my own servers) but changing it would be a major undertaking since thousands of sites are already configured according to this design.

You should be able to include files from below public_html but the actual cgi-bin resides only inside public_html. Of course if it's not software that you're designing yourself I guess you don't have the luxury of juggling its file location so you want to be careful with your permissions and not leave configuration scripts accessible. .htaccess is your friend.
Reply With Quote
  #9  
Old 09-28-2003, 08:40 AM
obj's Avatar
obj obj is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Location: Bucks County, PA
Thanks, Alex. I tried to call a plain html file for testing that was placed below public_html and it did not work either. So I guess I have to place everything in and above plublic_html.

I understand how to set permissions but can someone explain to me how I can make the setup more secure with .htaccess files?

Thanks.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Files in FTP root dir obyone89 Chit Chat Public 2 05-28-2003 10:17 PM


All times are GMT -5. The time now is 01:50 PM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Vortech Inc. ©2005
Page generated in 0.51439 seconds with 16 queries
[Output: 73.05 Kb. compressed to 67.36 Kb. by saving 5.69 Kb. (7.79%)]