473,387 Members | 1,678 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,387 software developers and data experts.

Access a file physically on a remote server

Hi,

Is there any way we can access a file using the physical path on a remote
server? I need to read and delete content of a remote directory on the LAN.
All I got so far is access denied so I wonder if it's possible.

Here's the situation:

On a web server using IIS and ASP.NET, my ASP page tries to read a distant
file using a path like \\172.31.3.3\reports\file.html. Once it's read, I have
to delete it.

What windows user is accessing the file? What permissions does he need?

I could access it using HTTP but the problem would be to delete it. I don't
know any way to delete a file using HTTP. Any idea?

Thanks for any help,

Stephane
Nov 19 '05 #1
4 1687
The access denied most likely comes because your application is set up for
anonymous access. You need to be working as your windows login and have
rights to the directory. You should then be able to do what you desire.

As an alternative, you can completely destroy the security of your network
by having a network admin account set up as the anonymous user account on
your webserver. While this effectively sloughs off the work onto the network
admins, which could be fun, I do not recommend this approach.

NOTE: While the second (sarcastic) approach might sound stupid to some (if
it does, great, you are one who understands the implications of granting your
web server anon account full rights), it is far too common. I do not know how
many places I have walked into where the anonymous account had full rights on
directories and databases.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Stephane" wrote:
Hi,

Is there any way we can access a file using the physical path on a remote
server? I need to read and delete content of a remote directory on the LAN.
All I got so far is access denied so I wonder if it's possible.

Here's the situation:

On a web server using IIS and ASP.NET, my ASP page tries to read a distant
file using a path like \\172.31.3.3\reports\file.html. Once it's read, I have
to delete it.

What windows user is accessing the file? What permissions does he need?

I could access it using HTTP but the problem would be to delete it. I don't
know any way to delete a file using HTTP. Any idea?

Thanks for any help,

Stephane

Nov 19 '05 #2
>. I do not know how
many places I have walked into where the anonymous account had full rights
on
directories and databases.
247, as I recall.

--
;-),

Kevin Spencer
Microsoft MVP
..Net Developer
Paranoia is just a state of mind.

"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM> wrote
in message news:1E**********************************@microsof t.com... The access denied most likely comes because your application is set up for
anonymous access. You need to be working as your windows login and have
rights to the directory. You should then be able to do what you desire.

As an alternative, you can completely destroy the security of your network
by having a network admin account set up as the anonymous user account on
your webserver. While this effectively sloughs off the work onto the
network
admins, which could be fun, I do not recommend this approach.

NOTE: While the second (sarcastic) approach might sound stupid to some (if
it does, great, you are one who understands the implications of granting
your
web server anon account full rights), it is far too common. I do not know
how
many places I have walked into where the anonymous account had full rights
on
directories and databases.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Stephane" wrote:
Hi,

Is there any way we can access a file using the physical path on a remote
server? I need to read and delete content of a remote directory on the
LAN.
All I got so far is access denied so I wonder if it's possible.

Here's the situation:

On a web server using IIS and ASP.NET, my ASP page tries to read a
distant
file using a path like \\172.31.3.3\reports\file.html. Once it's read, I
have
to delete it.

What windows user is accessing the file? What permissions does he need?

I could access it using HTTP but the problem would be to delete it. I
don't
know any way to delete a file using HTTP. Any idea?

Thanks for any help,

Stephane

Nov 19 '05 #3
On Thu, 25 Aug 2005 07:06:07 -0700, "Stephane" <St******@discussions.microsoft.com> wrote:

¤ Hi,
¤
¤ Is there any way we can access a file using the physical path on a remote
¤ server? I need to read and delete content of a remote directory on the LAN.
¤ All I got so far is access denied so I wonder if it's possible.
¤
¤ Here's the situation:
¤
¤ On a web server using IIS and ASP.NET, my ASP page tries to read a distant
¤ file using a path like \\172.31.3.3\reports\file.html. Once it's read, I have
¤ to delete it.
¤
¤ What windows user is accessing the file? What permissions does he need?
¤
¤ I could access it using HTTP but the problem would be to delete it. I don't
¤ know any way to delete a file using HTTP. Any idea?
¤
¤ Thanks for any help,

You need to indicate what type of authentication your web application is configured for and whether
you are using impersonation.
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 19 '05 #4
You need to give the iis process windows user access to that remote
directory, just log into that machine find the directory, click security give
full access. Not sure what it is in .net, it was IUSR_machinename in ASP.
It will also make your scripting a lot easier if you just map the network
drive to x: or whaterver on the webserver.

"Stephane" wrote:
Hi,

Is there any way we can access a file using the physical path on a remote
server? I need to read and delete content of a remote directory on the LAN.
All I got so far is access denied so I wonder if it's possible.

Here's the situation:

On a web server using IIS and ASP.NET, my ASP page tries to read a distant
file using a path like \\172.31.3.3\reports\file.html. Once it's read, I have
to delete it.

What windows user is accessing the file? What permissions does he need?

I could access it using HTTP but the problem would be to delete it. I don't
know any way to delete a file using HTTP. Any idea?

Thanks for any help,

Stephane

Nov 19 '05 #5

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

Similar topics

4
by: Rene' Nielsen | last post by:
Context: Running Windows 2003 Server on an intranet. A web is configured with an anonymous access account that is a domain account that has been granted the desired access to a file on another...
7
by: Rob | last post by:
I am an Access developer and have done many Access databases in the standard Front-end on the workstations, backend on the server (over a LAN) but have never worked with Access over Citrix, though...
2
by: William Wisnieski | last post by:
Hello Everyone I've been asked to develop an Access database solution for a small business that currently has three Windows (XP) desktops and one Aapple Emac (OSX) on a peer to peer network. ...
6
by: John | last post by:
Hi We have an access app (front-end+backend) running on the company network. I am trying to setup replication for laptop users who go into field and need the data synched between their laptops...
3
by: Lyle Fairfield | last post by:
In a recent thread there has been discussion about Data Access Pages. It has been suggested that they are not permitted on many or most secure sites. Perhaps, that it is so, although I know of no...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
13
by: Bob Palank | last post by:
Remote server hosts a .mdb file but the client cannot access the DB through VB.Net Express 2005. My Assumptions: 1. One can use VB.Net Express 2005 to write a client resident application to...
23
by: wylbur37 | last post by:
I'm running an Apache server on my own computer (Windows XP Pro). I wrote a simple PHP script (called test3.php) that I'm running by putting the following URL in the address bar of the browser...
38
by: kavsak | last post by:
Hi. Not sure that this is the right place to ask but here goes. I have an application based on access97 and VB6 which I need to upgrade. It has to handle up to 20 concurrent users on a Win2k...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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,...

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.