You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Josh Emmons <je...@capitalprinting.com> on 2003/09/16 00:00:36 UTC

Re: Axis (or tomcat?) runs as root? OT

> I would assume that you are getting this behavior because you are 
> running Tomcat itself as root. Perhaps you are listening on port 80 
> (which requires you to run as root).

I thought so too, but for the life of me I can't find where to set the 
user tomcat runs as (and I'm running on 8080, so I don't need to run as 
root and would prefer not to).  Does tomcat just run as whoever executes 
the $tomcat/bin/startup.sh script?  Surely I don't have to su to nobody 
everytime I want to start or reload tomcat, right?

I'll post to the tomcat list as well, but if you happen to know how to 
sort this, I'd appreciate the help.

Cheers,
-Josh Emmons


Re: Axis (or tomcat?) runs as root? OT

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Josh Emmons wrote:

>>I would assume that you are getting this behavior because you are 
>>running Tomcat itself as root. Perhaps you are listening on port 80 
>>(which requires you to run as root).
>>    
>>
>
>I thought so too, but for the life of me I can't find where to set the 
>user tomcat runs as (and I'm running on 8080, so I don't need to run as 
>root and would prefer not to).  Does tomcat just run as whoever executes 
>the $tomcat/bin/startup.sh script?  Surely I don't have to su to nobody 
>everytime I want to start or reload tomcat, right?
>
Tomcat does indeed just run as whoever executes the script. If you're 
interested in more information you can see an article I wrote for 
devWorks on Securing Linux for Java services at 
http://www-106.ibm.com/developerworks/linux/library/l-secjav.html that 
discusses setting up Tomcat for automatic start, using its own account, 
responding to port 80, and related issues.

  - Dennis

Dennis M. Sosnoski
Enterprise Java, XML, and Web Services Support
http://www.sosnoski.com
Redmond, WA  425.885.7197


RE: Axis (or tomcat?) runs as root? OT

Posted by Samir Shaikh <ss...@worldres.com>.
Tomcat (& Axis) runs as which ever use executes ./startup.sh


> -----Original Message-----
> From: Josh Emmons [mailto:jemmons@capitalprinting.com]
> Sent: Monday, September 15, 2003 3:01 PM
> To: axis-user@ws.apache.org
> Subject: Re: Axis (or tomcat?) runs as root? OT
> 
> 
> > I would assume that you are getting this behavior because you are 
> > running Tomcat itself as root. Perhaps you are listening on port 80 
> > (which requires you to run as root).
> 
> I thought so too, but for the life of me I can't find where 
> to set the 
> user tomcat runs as (and I'm running on 8080, so I don't need 
> to run as 
> root and would prefer not to).  Does tomcat just run as 
> whoever executes 
> the $tomcat/bin/startup.sh script?  Surely I don't have to su 
> to nobody 
> everytime I want to start or reload tomcat, right?
> 
> I'll post to the tomcat list as well, but if you happen to 
> know how to 
> sort this, I'd appreciate the help.
> 
> Cheers,
> -Josh Emmons
>