[Bug 294729] New: tomcat 5.5 writing logfile as root
https://bugzilla.novell.com/show_bug.cgi?id=294729 Summary: tomcat 5.5 writing logfile as root Product: openSUSE 10.3 Version: Alpha 6 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: steiner-reg@bio.ifi.lmu.de QAContact: qa@suse.de Found By: --- Hi, this isn't really a severe bug, but fixing it wouldn't harm I guess. In all tomcat 5.5 packages, including the last from factory and all versions in the opensuse software repositories, the /etc/init.d/tomcat55 script contains su $TOMCAT_BASE_USER -s /bin/bash -c "$CATALINA_HOME/bin/startup.sh $TOMCAT_OPTS" >"$CATALINA_BASE/logs//start.log" 2>&1 and a similar call for stopping. That will make both start.log and stop.log be written as root. Changing this to su $TOMCAT_BASE_USER -s /bin/bash -c "$CATALINA_HOME/bin/startup.sh $TOMCAT_OPTS > $CATALINA_BASE/logs//start.log 2>&1" the start.log and stop.log would be written by the user tomcat. That should work fine for the default $CATALINA_BASE/logs/ = /var/log/tomcat55/, because this belongs to tomcat. But additionally, one could use this also on a NFS filesystem mounted with "no_root_squash". That's what we are using, because the webapps dir and the log dir is on some NFS space to make the logs readable for users who can't login to the tomcat server. So if no one sees a problem with writing start.log and stop.log as user tomcat, maybe this could be changed. Actually, one would miss errors of "su" that would then be written to the console instead of the logfile, but I'm not sure if this is would be a problem... Regards, Frank -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=294729
Matej Horvath
https://bugzilla.novell.com/show_bug.cgi?id=294729#c1
Peter Poeml
https://bugzilla.novell.com/show_bug.cgi?id=294729
Peter Poeml
https://bugzilla.novell.com/show_bug.cgi?id=294729
Ales Nosek
https://bugzilla.novell.com/show_bug.cgi?id=294729#c2
Ales Nosek
participants (1)
-
bugzilla_noreply@novell.com