Windows – Tomcat cant access network drives on Windows

network-shareresourcestomcatwindowswindows-server-2012

I have Tomcat 8 installed as a service on Windows Server 2012. The problem is that Tomcat can't access network drives. The tomcat manager shows that it is logged on as Local System Account. I've changed that to This account and selected the current user which i use to get logged in on Windows and this user can see the network drives. Can you tell me how to configure Tomcat so that it could be able to access network drives?

Best Answer

It can't access the network drives because it's running as NT authority\Local System. NT authority\Local System doesn't have network access, because it's local. Says so right in the name. (And NT authority\Local Service has the same restriction, of course.)

The equivalent of NT authority\Local System, with network access, is NT authority\Network Service, so set it to run under that account.

NT authority\Network Service does not have a password, but should ignore any password you do provide, so you ought to be fine specifying anything, or nothing, depending on your application's behavior. (If your application requires a value for the password, you should be able to set it to anything and be alright.)