Bug 717009

Summary: Error in /etc/init.d/jbossas
Product: [JBoss] JBoss Enterprise Application Platform 5 Reporter: Paul <purban>
Component: jbossasAssignee: Fernando Nasser <fnasser>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Paul 2011-06-27 18:08:37 UTC
Description of problem:

The init script for jbossas assumes that the variables (names) for JBOSSUS and JBOSSGR are the same. 

The testing logic  if [ -z "`id -g $JBOSSGR 2>/dev/null`" ] assumes that the userid and groupid are the same. 


Version-Release number of selected component (if applicable):


How reproducible:

Create a group with a different name as the user. 


Steps to Reproduce:
1. groupadd -g 1234 grandma
2. useradd -g 1234 booya
3. id -g grandma ( you could also edit the jbossas file and replace the JBOSSUS and JBOSSGR variables, then start jboss) 
  
Actual results:

id: grandma: No such user



Expected results:

If you were to use getent group grandma
You'd get a positive output. 


Additional info: