tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30087] New: - Solved: using su command in scripts to start Tomcat as non-root user
Date Tue, 13 Jul 2004 21:40:00 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30087>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30087

Solved: using su command in scripts to start Tomcat as non-root user

           Summary: Solved: using su command in scripts to start Tomcat as
                    non-root user
           Product: Tomcat 5
           Version: 5.0.25
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: pcgscrap@comcast.net


Something in SuSE 9.1 changed so now the su command doesn't properly work 
unless you specify the shell using "-s /bin/bash" (or whatever shell you use). 
So older su commands like: 
 
"su myuser -c mycommand" had to change to  
"su -s myshell -c mycommand - myuser"  
 
The information from this link: 
 
http://ftp.lug.ro/suse/projects/apache/jakarta-tomcat/8.1-i386/jakarta-tomcat.changes 
 
gave me a clue as to why my script would not work when using the su command.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message