Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FileSystemObject access rights over network

Status
Not open for further replies.

emozley

Technical User
Jan 14, 2003
769
0
0
GB
Hi,

How do I ensure that if I use any FileSystemObject properties in my page that the script runs with the correct privileges.

At the moment if I execute

<%

If FSO.FileExists("\\pc001\c$\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe") Then
Response.Write("File found")
Else
Response.Write("File not found")
End If

%>

It comes back with File not found even though that file clearly exisits. I have a feeling it may be saying 'File not found' because the server executing the script is trying to connect to c$ and getting turned away because it doesn't have rights.
 
The default security requires that the IIS web server uses a local account rather than one with network privilages.

You can use the IIS Admin program to change the account used for anonymous access. It is best to only change access on the pages that will actually need to reach off the web server and out into your network... so, although you could change the site-wide security, you should only change it for the specific ASP that needs greater access.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top