tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonyvie...@gmail.com
Subject Re: How to access files in network drive
Date Sun, 03 Jan 2010 19:50:03 GMT
Tomcat is started under a user account with its own security. Give
that user permission to the path.

On 1/3/10, WM C <doublecrest@live.com> wrote:
>
> Hi -
>
> This is more like a general java question.
>
> In my web app, I need to read files from a network drive folder, which has
> access restriction (my account is permitted).
>
> During development time, since I am using Eclipse and Tomcat is integrated
> inside, so both were run under my account, everything works fine, but when
> deployed onto a testing server, where Tomcat runs using a system account,
> file access was denied.
>
> How to resolve this problem? Is there a way when accessing file, I can pass
> in a user identity as parameter, or "log on" first just like access
> database? Seems java File API does not have this option.
>
> Any suggestions are appreciated!
>
> William
>  		 	   		
> _________________________________________________________________
> Hotmail: Powerful Free email with security by Microsoft.
> http://clk.atdmt.com/GBL/go/171222986/direct/01/

-- 
Sent from my mobile device

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message