aspose 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 Java 8 in Action this week in the Java 8 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: 15665
    
  15

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No is possible deploy wars and run TomCat as user tomcat and no as ROOT ?
 
Similar Threads
Getting NullPointerException
Tomcat server - Unable to create directory [C:\Program Files (x86)\tomcat\conf\Catalina\localhost]
SEVERE errors when starting tomcat on a mac
Spring Tomcat Instrument loader
How put a Tomcat 7 app folder outside webapps (OS X)?