Details
-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.0
-
None
-
None
-
%
Description
If configuring the the Wrapper Service to run as a specific and a primary group can not be found the RUN_AS_GROUP variable is not set correctly:
In the [fuse-esb]/bin/karaf-service script see the following block:
# Resolve the primary group RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1` if [ "X$RUN_AS_GROUP" = "X" ] then RUN_AS_GROUP=RUN_AS_USER fi
The line:
RUN_AS_GROUP=RUN_AS_USER
should be changed to:
RUN_AS_GROUP=$RUN_AS_USER
As I believe the intention is to set the group equal to the username rather than "RUN_AS_USER".