Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 97933 invoked from network); 20 Sep 2009 15:55:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Sep 2009 15:55:52 -0000 Received: (qmail 92688 invoked by uid 500); 20 Sep 2009 15:55:51 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 92608 invoked by uid 500); 20 Sep 2009 15:55:51 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 92597 invoked by uid 99); 20 Sep 2009 15:55:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Sep 2009 15:55:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Sep 2009 15:55:43 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id C91B4234C044; Sun, 20 Sep 2009 08:55:21 -0700 (PDT) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: DO NOT REPLY [Bug 47880] New: Lack of +x permissions on script files results cryptic and confusing error messages X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 6 X-Bugzilla-Component: Native:Packaging X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mike.pukuotukas@meska.info X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: default X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 20 Sep 2009 08:55:21 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=47880 Summary: Lack of +x permissions on script files results cryptic and confusing error messages Product: Tomcat 6 Version: 6.0.20 Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P2 Component: Native:Packaging AssignedTo: dev@tomcat.apache.org ReportedBy: mike.pukuotukas@meska.info After the user downloads and extracts the .zip archive containing Tomcat executables, the "executable" flag on the .sh files is not set by default. This results unexpected and very cryptic error messages about the missing files (just because catalina.sh is not executable) and later about the incorrect pathes (just because setclasspath.sh is not executable). This is observed when the tries to executes startup.sh with sh command. The problem is not obvious because the files with these improper permissions are not executed by the user from the command line. Instead, they are executed calling them from another scripts. The failure to execute setclasspath.sh is especially confusing as causes only warnings bout some problems with pathes. I suggest the following change in startup.sh that would make the permission problem obvious: # 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 eval else if [ ! -e "$PRGDIR"/"$EXECUTABLE" ]; then echo "Cannot find $PRGDIR/$EXECUTABLE" echo "This file is needed to run this program" exit 1 fi if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then echo "The $PRGDIR/$EXECUTABLE is not executable" echo ".sh files must have the executable flag set" exit 1 fi fi Steps to reproduce: 1. Use the recent Tomcat distribution, apache-tomcat-6.0.20.zip. Do not use tar.gz as it may preserve the correct permissions. 2. Extract into any empty directory and try to run startup.sh. You will get the message about catalina.sh missing that is not correct. After you set +x for catalina.sh you will get more messages that are never about permissions, leading analysis in confusing directions. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org