Search code examples
tomcatwindows-servicestomcat8.5

access denied rights for start tomcat-service on windows server


I am using tomcat on windows server und faced a problem while updating the tomcat version. the problem ist that the assgined user don't have the rights to start tomcat.

Here my attempts with tomcat versions:

  • v8.5.43/ -> tomcat startet succesfully

  • v8.5.45/ -> access denied

  • v8.5.46/ -> access denied
  • v8.5.47/ -> access denied
  • v8.5.49/ -> access denied
  • v8.5.50/ -> access denied

  • v9.0.30/ -> access denied

The user has already the LogonAsService privilege. Do you know which rights the user who start tomcat should have?


Solution

  • Here the solution:

    from Tomcat 8.5.44 the user must have read and exeute permissions on the Tomcat-Install-Directory.

    ICACLS "Tomcat-Install-Directory" /grant %UserName%:(OI)(CI)(RX) /T
    

    Source