Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: running tomcat5 as a user other than root

srevilak

2004-01-13

Replies:

pablo> I am trying to run tomcat 5 as any user other than root on my
pablo> sun box so that I can configure mod_jk2 using unix sockets
pablo> rather than channel sockets. (reference
pablo> http://www.cymulacrum.net/tomcat/tomcat_mod_jk2.html ).
pablo>
pablo> I have tried doing many things in my init scripts like a "su -c
pablo> tomcat $TOMCAT_HOME/bin/startup.sh" but I have been
pablo> unsuccessful. I know it is probably something stupid or simple
pablo> that I am just missing , but I am just not seeing it. If any
pablo> of you know how to do this and would like to share how , I
pablo> would greatly appreciate it.

This is just a silly observation:

su -c tomcat $TOMCAT_HOME/bin/startup.sh

Usually, -c as a su option means that the next argument is a command.
Maybe try

su tomcat -c $TOMCAT_HOME/bin/startup.sh

instead.

--
Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.