Re: running tomcat as root

Darian Shimy <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <F7BC2FD707C3D3118C8800508B6F997D0A8AFBE8@24hrsdexch2.24hourfit.com>
Run it a non-root user (e.g., tomcat).  Realistically, the biggest problem
is the OS cannot protect the server from malicious code.  You webapp would
have access to run any command as root using java.lang.Runtime.exec(String)
which is not a good idea.


> -----Original Message-----
> From: Sam Seaver [mailto:[email protected]]
> Sent: Friday, March 28, 2003 1:58 PM
> To: [email protected]
> Subject: running tomcat as root
>
>
> I have a question...
>
> Tomcat is installed at /usr/local/tomcat and i start it up as root.
>
> Does this pose any greater security risk than running it as
> normal user?
>
> thanks
> Sam
>
> _________________________________________________________________
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [email protected] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-> resources.html
>
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.