Apr 21, 2004 #1 md1750 MIS Apr 18, 2001 80 US Is there is any way to configure tomcat to run as non-root?.
Apr 21, 2004 #2 sedj Programmer Aug 6, 2002 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 Apr 18, 2001 80 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 Aug 6, 2002 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 Jul 17, 2003 2 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 Jul 17, 2003 2 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