I have a Tomcat installation on a Centos 7 Linux server, and when I deploy a war file to the "./webapps" folder, it explodes the folders and files with "root" as the owner and group. How do I prevent this from happening? I want them to deploy with "tomcat" as the owner and group.
If your exploded WARs are owned by root, then I have to assume that the copy of Tomcat that deploys them is running as root. Since only Tomcat knows how to explode, and Tomcat cannot assume the identity of any user but itself.
The only other possibility was that something else copied/exploded the WARS, and Tomcat is merely taking the blame.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
I can't take it! You are too smart for me! Here is the tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop