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.
Being persecuted doesn't in any way prove your righteousness or your beliefs. Many people get persecuted because they are repugnant or annoying. Or just because they can be.
He was expelled for perverse baking experiments. This tiny ad is a model student: