aspose file tools*
The moose likes Tomcat and the fly likes how to change the owner of the war file in tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to change the owner of the war file in tomcat?" Watch "how to change the owner of the war file in tomcat?" New topic
Author

how to change the owner of the war file in tomcat?

pintu shah
Greenhorn

Joined: Nov 12, 2010
Posts: 24
how to change the owner of the war file in tomcat?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60997
    
  65

From the OS. Nothing at all to do with Tomcat.



[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
pintu shah
Greenhorn

Joined: Nov 12, 2010
Posts: 24
we can change by right clicking on the war file and going to properties..
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
pintu shah wrote:how to change the owner of the war file in tomcat?


Just curious why do you want to do this?
pintu shah
Greenhorn

Joined: Nov 12, 2010
Posts: 24

whenever you want to deploy third party's war file at that time you have to change the owner of the war file to current system name or user name.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

pintu shah wrote:
whenever you want to deploy third party's war file at that time you have to change the owner of the war file to current system name or user name.


No you don't. You just have to make sure that the server has to have read access rights to the WAR. Usually, that means that the WAR has been assigned to the Tomcat userID, or at least to a user group that Tomcat is a member of, but with "anyone can read" rights, Tomcat can read the WAR regardless of owner or group assigned to the WAR file.

If you deploy a WAR via JSR-88 or the Tomcat management webapp, all that's required is that the person deploying the WAR have read access rights to it, since the remote deployer copies the WAR to Tomcat using tomcat's own file access rights. That's because file access rights aren't part of the (WAR) file, they're part of the filesystem directory entry for the file, and HTTP file upload neither will nor can copy access rights. For one thing, they're not OS independent.


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: how to change the owner of the war file in tomcat?