• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
pintu shah
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to change the owner of the war file in tomcat?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the OS. Nothing at all to do with Tomcat.


 
pintu shah
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we can change by right clicking on the war file and going to properties..
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Pie
Posts: 18106
51
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic