473,394 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Can dotnet write to files outside of the web root?

I'm running Dotnet on Windows 2003 and was wondering, can scripts write to
files/folders outside of the webroot, for instance, in another drive?

How about writing to a network share via UNC? Is that possible? If so can
someone point me to documents that talk about this, or perhaps show me how
this can be done? Thanks!
Jul 21 '05 #1
3 1578
Do you mean a web app user (who accesses the website through your ASP.NET
app) can or cannot write file to somewhere on the web server? Sure he can,
only if he is given the permission to do so. So, you need to decide who the
user would be, from the web server's point of view. If you let everyone who
uses your ASP.NET app become the Administrator on the web server, he can do
anything, including destorying the server, not to mention writing a file. By
default, a web app user is ALWAYS given minimun permission on the web
server, just enough to use the web applications.

You can learn more on ASP.NET security from .NET framework document.

"Shabam" <ch*****@yomama-nospam.com> wrote in message
news:R6********************@adelphia.com...
I'm running Dotnet on Windows 2003 and was wondering, can scripts write to
files/folders outside of the webroot, for instance, in another drive?

How about writing to a network share via UNC? Is that possible? If so can someone point me to documents that talk about this, or perhaps show me how
this can be done? Thanks!

Jul 21 '05 #2
Shabam wrote:
I'm running Dotnet on Windows 2003 and was wondering, can scripts write to
files/folders outside of the webroot, for instance, in another drive?
Yes.

How about writing to a network share via UNC? Is that possible? If so
can someone point me to documents that talk about this, or perhaps show me
how
this can be done? Thanks!


All you have to do is to give permission for the ASPNET user to write on
that directory.

--
Texeme
http://texeme.com

Jul 21 '05 #3
Shabam wrote:
I'm running Dotnet on Windows 2003 and was wondering, can scripts write to
files/folders outside of the webroot, for instance, in another drive?
Yes.

How about writing to a network share via UNC? Is that possible? If so
can someone point me to documents that talk about this, or perhaps show me
how
this can be done? Thanks!


All you have to do is to give permission for the ASPNET user to write on
that directory.

--
Texeme
http://texeme.com

Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: gruddo | last post by:
Hi this is my first post. I have two webservers. I can run php code fine on one but not the other. Both webservers can read files only one can write. I have looked around at other posts and they...
3
by: Matthew Moran | last post by:
I am creating a series of downloadable articles, career tools, spreadsheets, etc. However, some of the content is for "registered" guest. The registrants are stored in a database and logon. I...
1
by: Jon Maz | last post by:
Hi, Although I have placed my "wec.dll" in the correct folder ("wwwroot\wec\bin"), and have configured this "wec" folder in IIS as an application, when an aspx page is hit, I get a "could not...
4
by: JP SIngh | last post by:
Hi All We have an ASP application which links to various word and excel documents stored in a folder called attachments. The documents are extermely confidential in nature and we would like...
2
by: Michael G | last post by:
Hi, I have a file outside of the web root and this file contains db username/passwds, and other config stuff. I include this file as needed in the scripts. Is this a secure way of doing this? ...
4
by: Jerry | last post by:
I'm having just a bit of trouble wrapping my brain around the task of working with folders that are above the site's root folder. I let users upload photos (.jpg/.gif files) which can...
9
by: jab3 | last post by:
So I'm considering a small project that involves online file storage. Let's say I wanted to set up a site that allows people to log-on, create an account, and then have space to upload files. The...
1
by: ib | last post by:
First time I've tried this so I'm probably doing something stupid. 1. Create a new folder: C:\Inetpub\wwwroot\dn2. Make dn2 an application in IIS settings. 2. Start dotnet 2005 and Start a new...
20
by: _mario.lat | last post by:
hallo, I use PHP and I'd like to not write in hardcoded way password and login to access to mysql. how to not write password in code for access to mysql? How can I do? I'd like that who see my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.