Bug 717009 - Error in /etc/init.d/jbossas
Summary: Error in /etc/init.d/jbossas
Keywords:
Status: NEW
Alias: None
Product: JBoss Enterprise Application Platform 5
Classification: JBoss
Component: jbossas
Version: 5.1.0
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
: ---
Assignee: Fernando Nasser
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-27 18:08 UTC by Paul
Modified: 2011-06-27 18:09 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---


Attachments (Terms of Use)

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:


Note You need to log in before you can comment on or make changes to this bug.