Apr 21, 2004 #1 md1750 MIS Joined Apr 18, 2001 Messages 80 Location US Is there is any way to configure tomcat to run as non-root?.
Apr 21, 2004 #2 sedj Programmer Joined Aug 6, 2002 Messages 5,610 if it is a permissions thing, just "chmod -R 777 $TOMCAT_HOME" and then just run it as some other user ... Bear in mind that if you are starting tomcat on port 80, then only root user can bind to that port. Upvote 0 Downvote
if it is a permissions thing, just "chmod -R 777 $TOMCAT_HOME" and then just run it as some other user ... Bear in mind that if you are starting tomcat on port 80, then only root user can bind to that port.
Apr 21, 2004 Thread starter #3 md1750 MIS Joined Apr 18, 2001 Messages 80 Location US Is there a way to workaround it like in the case of apache where is start as root but runs as nobody. Upvote 0 Downvote
Is there a way to workaround it like in the case of apache where is start as root but runs as nobody.
Apr 22, 2004 #4 sedj Programmer Joined Aug 6, 2002 Messages 5,610 work around what ? You don't need to start tomcat as root unless you start it on port 80 ... Upvote 0 Downvote
May 24, 2004 #5 milkchaser Programmer Joined Jul 17, 2003 Messages 2 Location US Check out the jakarta commons-daemon (jsvc) which is supposed to let you start as root and switch to another user. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html Upvote 0 Downvote
Check out the jakarta commons-daemon (jsvc) which is supposed to let you start as root and switch to another user. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
May 24, 2004 #6 milkchaser Programmer Joined Jul 17, 2003 Messages 2 Location US Here are a couple of alternative solutions using iptables and rinetd (under Linux, anyway). http://linux.org.mt/article/tomcat-ports Upvote 0 Downvote
Here are a couple of alternative solutions using iptables and rinetd (under Linux, anyway). http://linux.org.mt/article/tomcat-ports