Java Mailing List Archive

http://www.junlu.com/

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

Re: How to install Apache / Tomcat non-root

John Turner

2003-08-12

Replies:


Whichever user account you are using at the time you extract the Tomcat
binaries will be the owner of the Tomcat directory tree.

You have to install Apache as root since it binds to port 80. You
define the unprivileged user in httpd.conf.

As far as not using su, just login as the web server user and start the
scripts, you only need to use su if you're logged in as root.

John

Lars Nielsen Lind wrote:

> Is it possible to do it during install. For instance install Apache and
> Tomcat as user XXX?
>
> What I want is to start the applications as the user XXX without using
> the -su command.
>
>
> /Lars Nielsen Lind
>
>
> tir, 2003-08-12 kl. 18:15 skrev John Turner:
>
>>Yes, it is possible and recommended.
>>
>>1. chown -R webuser:webuser $CATALINA_HOME
>>2. su - webuser -c $CATALINA_HOME/bin/startup.sh
>>
>>John
>>
>>Lars Nielsen Lind wrote:
>>
>>
>>>Hi.
>>>
>>>I want to install Apache and Jakarta-Tomcat as non-root user (they will
>>>use the same user account). Is this possible and what is the best way do
>>>this?
>>>
>>>
>>>
>>>/Lars Nielsen Lind
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>>>For additional commands, e-mail: tomcat-user-help@(protected)
>>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>>For additional commands, e-mail: tomcat-user-help@(protected)
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>



---------------------------------------------------------------------
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.