File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes No is possible deploy wars and run TomCat as user tomcat and no as ROOT ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "No is possible deploy wars and run TomCat as user tomcat and no as ROOT ?" Watch "No is possible deploy wars and run TomCat as user tomcat and no as ROOT ?" New topic
Author

No is possible deploy wars and run TomCat as user tomcat and no as ROOT ?

Gabriel Pinares
Greenhorn

Joined: Mar 11, 2008
Posts: 16
Hi,

when I run [/usr/local/jakarta/tomcat/bin/./startup.sh;] as ROOT {catalina.out} return:

( OK!, ALL FINE!! )

but when I run [/usr/local/jakarta/tomcat/bin/./startup.sh;] as tomcat {catalina.out} return:




Some idea to fixed this?

┬┐or no is possible?

THANKS
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

There's not really enough information to tell anything, but one problem I often have suggests itself based on the topic title.

If you have been starting Tomcat as ROOT, Tomcat has created a number of files owned by ROOT. If you then attempt to start as user "tomcat" - or any other non-root user, then the Tomcat startup will fail because it's attempting to create and/or access files that user "tomcat" is not permitted to access or change.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: No is possible deploy wars and run TomCat as user tomcat and no as ROOT ?
 
Similar Threads
Getting NullPointerException
Spring Tomcat Instrument loader
Tomcat server - Unable to create directory [C:\Program Files (x86)\tomcat\conf\Catalina\localhost]
How put a Tomcat 7 app folder outside webapps (OS X)?
SEVERE errors when starting tomcat on a mac