How to run Tomcat service as different user in RHEL 7

Solution Verified - Updated -

Issue

  • How do I run the Tomcat service as a different user in RHEL 7?
  • When I change TOMCAT_USER property in /etc/sysconfig/tomcat is has not effect.
  • How can I keep my custom user changes to the Tomcat systemd service file?

Environment

  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.