Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-06-2009, 04:37 PM   #1
Registered: May 2009
Posts: 36

Rep: Reputation: 15
Which user to deploy/build files for tomcat?

Hello. As I am new to Centos5, I am looking for a little clarification regarding the concepts involved with file ownership of users.

When building a Java web application (compiling and making a WAR file) on a CentOs server, and then subsequently deploying this WAR to tomcat's webapps directory, what is the best practices 'user' that should be performing these operations?

I ask this assuming that tomcat is a service that runs under the tomcat user on the same machine.

Must I log in as user 'tomcat' anytime I build an application so that the owner of the WAR file will be tomcat and thus the tomcat service will have access to the WAR file? Is this neccessary? Or is it possible to log in as any user and perform the build? I haven't tried this yet but wanted to get a handle on the correct concept first.

I am new to linux file permissions and I am trying to comprehend the strategy about how to handle these issues.

I appreciate any help someone can offer to clarify this for me.

Thank you,

Old 05-06-2009, 10:43 PM   #2
Registered: Jan 2006
Location: Culver City, California
Distribution: Fedora
Posts: 64

Rep: Reputation: 21
I doesn't matter who builds the WAR file from a permissions standpoint. A WAR is just a specially organized JAR file, and they don't carry permissions internally like a TAR archive does. At my company we have a policy that only a designated user can deploy webapps. This is the same user that runs the Tomcat server. But depending on the directory permissions, it might be possible for anyone to deploy web applications.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing tomcat 5.5 on a minimal build... true_atlantis Red Hat 2 06-30-2008 04:44 AM
starting tomcat as a specific user kidswipe Linux - General 1 08-24-2007 12:57 AM
tomcat rights to user Raakh Linux - Newbie 1 07-21-2007 05:20 PM
user under which apache tomcat run?? Sridhar Guntur Linux - Security 2 08-28-2003 02:06 PM
normal user can't start tomcat? help!!!! dutao Linux - Software 0 07-24-2003 09:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration