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! 3 1617
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*****@yoma ma-nospam.com> wrote in message
news:R6******** ************@ad elphia.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!
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 point at not giving permissions to the
apache user.
I have chmod 777 the directory /var/www/html
and the subdirectory test
|
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 want to ensure that someone registered cannot simply
pass someone the path to the files for download. However,
I am not creating an actual system user name for the
folders where the various documents exist.
|
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 load type wec"
error. This error disappears if I cut-and-paste this wwwroot\wec\bin
directory into the wwwroot folder.
Thus the problem is that IIS is ignoring the fact that the sub-folder has
been configured as an application, and is refusing...
|
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
restrict the access to them through the application only.
How can we prevent users from guessing the name of the document and reach it
by tying http://myserver/attachments/thisdocument.doc
|
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? Would the contents of
this file ever be visible to web users under normal or abnormal conditions?
Thanks, Mike
| |
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 subsequently be viewed
on the site's pages. My hosting provider is requiring that any files my Web
app writes get written to a folder that is above the app's root folder (for
security purposes).
When writing the files I understand how to use MapPath to...
|
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 problem
I'm having concerns permissions, basically.
1) How do I automatically create users in Linux from a PHP script
running under Apache's uid/gid?
2) Once 1 is done, how, when they log back on (authenticated with SQL
which will keep up...
|
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 website in C:\Inetpub\wwwroot\dn2
3. On the default.aspx page (in design view) just write the word "hello".
4. Run the website from dotnet - get explorer window with "hello" (all ok)
5. Start an internet explorer window at http://localhost/dn2/ -...
|
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 code don't see my paswords.
there is a solution?
Thank you in advance.
Mario.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |