|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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
__________________
................... ASCII and ye shall receive .................. Knowledge is the only resource on earth that multiplies when shared Support the Shemzilla Project Powered by C# |
|
#3
|
|||
|
|||
|
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 |
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > Read/Write permissions outside of wwwroot? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|