Tags:
create new tag
, view all tags

Question

I am having an issue on my Windows TWiki 4.2, where the TWiki can't see or access any files on a mapped network drive. I am trying to write a custom plugin, which tries to read from a file stored on the network folder, but it can't. If I copy the same file over to somewhere on the local C:\ it works fine. It also had trouble reading an external perl module on the network drive, but was able to read it fine from somewhere on the local C: drive. Let me know if I can provide any other information to help debug this issue.

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Platform, Permissions, Authentication, Authorisation, Missing functionality, Fatal error

-- VivekThaker - 26 Feb 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

This could be a windows file permissions issue. Are you sure that the local user that the web server is running as has permission to access the files on the mapped drive?

I don't remember windows that well - but isn't the mapping only for your logged in interactive user, and non-existant for any service (such as IIS or apache)?

I guess trying the UNC path might tell you more.

-- SvenDowideit - 26 Feb 2008

Thanks Sven. Your answer helped quite a bit and I'm almost there in terms of fixing the issue. You are correct, the mapping is only for the logged on interactive user. The UNC path does work. My problem is that I want to interface our TWiki to our existing perl scripts and modules which use the specific drive mapping. It would be great if I could just get Apache to recognize the drive mapping. I have already tried to make the Apache service 'Log on as' the interactive user which has the mapping, but that hasn't helped. Let me know if you have any other ideas. Appreciate your insight. Thanks.

-- VivekThaker - 27 Feb 2008

I think you could use the "net use" command to create the map, but it isn't recommended.
Alternatively, you could write a Perl script to change your perl scripts from using mapped drive references to UNC names smile

-- SeanCMorgan - 27 Feb 2008

Seems to be answered. Please feel free to re-open if needed.

-- PeterThoeny - 03 Apr 2008

 
Change status to:
Topic revision: r5 - 2008-04-03 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.