For space reasons, we need to move some files off our main file/webserver to another network fileserver. However, the original file/webserver is still responsible for providing access to these files, so that everything is seamless to the users.

I can provide transparent file access by using DFS on the original server. I can also provide transparent web access using an IIS Virtual Directory.

However, Perl CGI scripts running on the webserver can't access the new (remote) fileserver using UNC paths. This code snippet:

if (-e "\\\\server\\share\\file") { print "Found it\n"; }
else { print "Not found\n"; }

works on my local PC, but not on the webserver. I've been Googling around, and have run into similar examples, but no solutions.

Some environment info:

  • Original File/Webserver: Windows Server 2003

  • IIS: Version 6

  • IIS Authentication: Integrated Windows Authentication

  • IIS Virtual Directory: configured to use a single AD user's security credentials

  • DFS: Normal DFS link setup and working (works from outside this original fileserver, not from inside it)

Any help would be greatly appreciated!

link|improve this question
1  
Does the user running the IIS Service have read permissions to that UNC directory? – Mike Caron Oct 27 '10 at 19:58
I don't think so. Isn't IIS run by default under a local account, IUSR_<computername>? I have full permission to that UNC dir, so I can add any user I want, but I didn't think I could add a local account from a different server. Looks like it is possible, but it didn't solve the problem, assuming that IUSR is really the right user running IIS. How can I tell that? – jimtut Oct 27 '10 at 20:11
This would be better asked on serverfault.com. It has nothing to do with programming, you just need to configure your network permissions correctly. – cjm Oct 27 '10 at 20:32
Sounds good. I've posted it there and will close this. – jimtut Oct 27 '10 at 20:48
feedback

migrated from stackoverflow.com Oct 28 '10 at 9:25

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.