You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Strobel, Stefan (TS IC)" <st...@hp.com> on 2014/01/27 10:09:34 UTC

Tomcat as Windows service under technical user

Hi everybody,

I would like to run a Tomcat 7.0.47 as Windows service. But that service shall not be executed as Administrator but as a local technical user. That user is existent, let's call it A. The account is secured with password B.
The question is, how do I install Tomcat as a service (that starts at Windows startup) as the technical user A? I tried various commands, but didn't get it working.

Any ideas, solutions?

Thanks
Stefan


Re: Tomcat as Windows service under technical user

Posted by Cédric Couralet <ce...@gmail.com>.
2014/1/27 Strobel, Stefan (TS IC) <st...@hp.com>:
> Hi everybody,
>
> I would like to run a Tomcat 7.0.47 as Windows service. But that service shall not be executed as Administrator but as a local technical user. That user is existent, let's call it A. The account is secured with password B.
> The question is, how do I install Tomcat as a service (that starts at Windows startup) as the technical user A? I tried various commands, but didn't get it working.
>
> Any ideas, solutions?


Once the service installed, you can change the User with the sc utility :

sc.exe config <serviceName> obj= <domain\username> password= <password>

> Thanks
> Stefan
>

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