Click to See Complete Forum and Search --> : Running Tomcat as another user.


vhg119
04-04-2005, 07:45 PM
I installed Tomcat from source.

Is there a way to make Tomcat run as a different user? I start Tomcat from the CLI.

goon12
04-05-2005, 12:29 PM
As long as you're not trying to run it on port 80 ( the default is 8080 ) you should be ok.

TOMCAT_HOME/bin/startup.sh - to start
TOMCAT_HOME/bin/shutdown.sh - to stop

If you want to check what port Tomcat is going to attempt to run on, check in $CATALINA_HOME/conf/server.xml

-goon12

vhg119
04-06-2005, 03:51 AM
Thank you. I thought I could do a 'runas' type of command but nevermind.
I just edited the config to have it run as 'tomcat' and then created an rc script for it.