I have installed Tomcat6 using the 32-bit/64-bit Windows Service Installer download version. In the setup instructions, it is recommended that "For optimal security, the service should be run as a separate user, with reduced permissions". I created a new local/standard user (Tomcat) to run the service. The Tomcat service is listed in my list of Services and it's running under my user profile. However, I can't figure out how to set/change which user to start it as.
Windows – Run Tomcat Service as Different User on Windows 7
servicesuserwindowswindows 7
Best Answer
Simply right click on
Computer
and clickManage
.Expand
Services and Applications
and double click onTomcat
(or whatever the service is called`.From here, click the
Log On
tab, and click theBrowse
button, follows by theAdvanced...
button, then theFind Now
button.Select the user and close all back to the screen where you can type the password for the account. Type the password and click OK.
You may want to start/stop the service to test it works - if there are any problems, you can either check the event log, or it will probably give you instant feedback about the issue.