how to map network drive for tomcat app to read/write file

I've got a pair of windows 2008 servers. The web server receives data and needs to save this data (a java app running on tomcat receives data & tries need to write large image files to file server:e.g. LocalFILEserver\targetFolder). I think I have multiple questions. (1) How does one have a drive automatically mapped in Windows every time the machine reboots (without having to login?) I know there is an option when mapping a drive to "reconnect automatically" but is that how one does this? (2) The developer has asked the I give the accounts LocalWebServer\Users, LocalWebServer\IIS_IUSRS permission to read and write on the LocalFILEserver\targetFolder. How does one grant local accounts from one 2008 server read/write to another servers shared folder? They're not AD accounts so I'm not sure how to do this. I've had some Active Directory resource accounts created which can be given permissions on both machines.Is that the wrong approach? Thanks in advance.
pjlennonAsked:
Who is Participating?
 
KuldeepchaturvediCommented:
For the second part, you can have your tomcat run under an "admin" or other previlaged user.

Note that since Tomcat is installed as a service, you can manage it with the Services tool by clicking Start->Administrative Tools->Services and looking for service called Apache Tomcat

So there you can assign a user under which this service needs to run.

Then you can grant the read/write access to this user on the mapped drive and you should be good.

Also automatically reconnect on logon should make your drive to map everytime the machine is booted.
0
 
gheistCommented:
(1) Use UNC or seek NT4 era guides
(2) This is the only way. Local accounts will connect is passwords and usernames match only interactively.
0
 
pjlennonAuthor Commented:
Thank you both - gheist, where would I use a UNC?
0
 
gheistCommented:
unc like \\.\share\file can replace c:\file
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.