Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 27th, 2005, 02:09 PM
Darxide Darxide is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 12 Darxide User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 35 m 19 sec
Reputation Power: 0
Read/Write permissions outside of wwwroot?

Hi, I was wondering if it was possible to enable any kind of read/write permissions outside of the wwwroot directory. This is my problem: I'm trying to use Access databases with ASP and I'm wanting to put the databases outside of the wwwroot directory (They are located in C:\Inetpub\Databases). I can read from those databases just fine, but I can't write to them. Can't add\update\delete at all. Does anyone know how it's possible to set write permissions to this directory?

If that isn't possible, I want to put the databases into a directory in the wwwroot directory but I want the directory completely invisible and unaccessable to web users. I've never used Windows 2000 IIS before, I've always used Linux in the past. I don't know much about how IIS works.

Thanks,
Darxide

Reply With Quote
  #2  
Old February 27th, 2005, 08:57 PM
lewy's Avatar
lewy lewy is offline
Alter Ego Wizard
Click here for more information.
 
Join Date: Jun 2004
Location: Edinburg Tx
Posts: 4,383 lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 1009 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Week 1 Day 23 h 29 m 43 sec
Reputation Power: 1488
As long as the IUSR account has read/write permissions to the folder in question, you should be able to read/write to the db.
In fact, it is Not a good idea to have your database anywhere in your wwwroot folder as a savvy user may be able to download it. It's bad practice.
To use your db located on a different folder say, c: use the following:
Code:
<%
   set conn=Server.CreateObject("ADODB.Connection")
  conn.Provider="Microsoft.Jet.OLEDB.4.0"
  conn.Open "c:/YourFolder/YourDatabase.mdb"
  %>


Feel free to post any additional questions you may have
Comments on this post
Darxide disagrees!
__________________
................... ASCII and ye shall receive ..................
Knowledge is the only resource on earth that multiplies when shared


Support the Shemzilla Project
Powered by C#

Reply With Quote
  #3  
Old February 28th, 2005, 04:02 AM
Darxide Darxide is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 12 Darxide User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 35 m 19 sec
Reputation Power: 0
Thanks lewy. I want to keep the databases out of the wwwroot directory as an added layer of security. The problem I had was the mdb file itself didn't have write permissions turned on (d'oh!) and I thought that it was a problem with IIS not being able to read outside of the wwwroot. I'm learning this IIS stuff slowly... >_<

~Darxide

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Read/Write permissions outside of wwwroot?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT