There are certain shell tests that do not work properly on the 400's qshell. Like -x and -r. These will only work if: 1. The user is the owner of the file or 2. The file's group ownership is by the user's PRIMARY group. If the file's group ownership is in the user's secondary groups, the qshell tests will fail, even though it has authority to run/read it. I have been making changes like this: #!/bin/sh # ----------------------------------------------------------------------------- # Start Script for the CATALINA Server # # $Id: startup.sh,v 1.3 2002/08/04 18:19:43 patrickl Exp $ # ----------------------------------------------------------------------------- os400=false case "`uname`" in OS400*) os400=true;; esac # resolve links - $0 may be a softlink PRG="$0" while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '.*/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`/"$link" fi done PRGDIR=`dirname "$PRG"` EXECUTABLE=catalina.sh # Check that target executable exists if $os400; then # -x will Only work on the os400 if the files are: # 1. owned by the user # 2. owned by the PRIMARY group of the user # this will not work if the user belongs in secondary groups else if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then echo "Cannot find $PRGDIR/$EXECUTABLE" echo "This file is needed to run this program" exit 1 fi fi exec "$PRGDIR"/"$EXECUTABLE" start "$@"
Please attach your proposed changes in diff -u format, instead of the whole file. When you do that I'll be glad to look at them and commit them. Thanks.
Created attachment 13289 [details] Patch for startup.sh
Created attachment 13290 [details] Patch for catalina.sh
Created attachment 13291 [details] Patch for setclasspath.sh
OK, done for Tomcat 5.0.30 and 5.5.5. Thanks for submitting this patch.