Forum Discussion

Levi_Park's avatar
Levi_Park
Copper Contributor
Oct 21, 2022

Folder permission issues when starting a program as a service

Hi,

 

I'm installing a solution data center in a Windows Server 2019 environment, and when I set the NAS drive to a shared directory.

 

If run the bat file right away, Tomcat will run normally, but if start it as a service, it will not start normally, saying that do not have access to the nas folder.

 

The account running the bat file and the service logon account are the same and nas folder has been granted full access to the account.

What makes this difference?

 

Thanks.

4 Replies

  • Does the account have the 'Log on as a service' right? (GPO/Computer Configuration/Windows Settings/Security Settings/Local Policies/User Rights Assignment)

Resources