Why do scripts for starting Tomcat assume that the user group launching tomcat has the same name as the tomcat user ?

Solution Unverified - Updated -


  • I currently have an issue with the package apache-tomcat. Our internal OS norms says that when a user is created (tomcat for example), its principal group is g-tomcat.
  • The init.d script of apache-tomcat assumes that the TOMCAT_USER has a group with the same name as it launch commands such as, which fails when no group exists with the user name
  • What i propose in the BZ#915447 (https://bugzilla.redhat.com/show_bug.cgi?id=915447) is to add a variable TOMCAT_GROUP.
  • Tomcat user and group are defined in same
  • The variable TOMCAT_USER defined in /etc/init.d/tomcat6 is used for group also, due to this, the process cannot be started with any user or group, for ex omc:sysop.
  • Having a separate variable, ex TOMCAT_GROUP will give flexibility on choosing same/different group.


  • Red Hat Enterprise Linux 6
  • tomcat6.noarch 6.0.24-45.el6

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