You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2016/08/04 12:42:01 UTC
[Bug 59942] New: tomat8.5 write logs with incorret os permission
https://bz.apache.org/bugzilla/show_bug.cgi?id=59942
Bug ID: 59942
Summary: tomat8.5 write logs with incorret os permission
Product: Tomcat 8
Version: 8.5.4
Hardware: PC
OS: Linux
Status: NEW
Severity: critical
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: jiucai@qq.com
When using tomcat8.0, itt starts and write logs as follows:
(apache-tomcat-8.0.x)
-rw-rw-r-- 1 app app 873710 Aug 4 20:08 catalina.log
When using tomcat8.5.x, itt starts and write logs as follows:
(apache-tomcat-8.5.4)
-rw-r----- 1 app app 100824 Aug 4 20:10 catalina.log
So, tomcat8.5 caused other os users can not read its logs and webapps deployed
at tomcat8.5.
the logs files should has permission 664, nit 640.
I thinks its a very important change between 8.0 and 8.5, bug in changelog
there was no one tell users this behaviour。
--
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
[Bug 59942] tomat8.5 write logs with incorret os permission
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59942
jiucai <ji...@qq.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |---
Status|RESOLVED |REOPENED
--- Comment #2 from jiucai <ji...@qq.com> ---
(In reply to Mark Thomas from comment #1)
> This change is listed in the changelog.
>
> If you require further support on this issue, please address you questions
> to the Tomcat users' mailing list.
but in http://tomcat.apache.org/tomcat-8.5-doc/changelog.html
and http://tomcat.apache.org/tomcat-9.0-doc/changelog.html
I can nout find msg about this change, could you give me the change message and
url location ? thanks.
--
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
[Bug 59942] tomat8.5 write logs with incorret os permission
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59942
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
This change is listed in the changelog.
If you require further support on this issue, please address you questions to
the Tomcat users' mailing list.
--
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
[Bug 59942] tomat8.5 write logs with incorret os permission
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59942
Chuck Caldarale <ch...@unisys.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|REMIND |INVALID
--
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
[Bug 59942] tomat8.5 write logs with incorret os permission
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59942
jiucai <ji...@qq.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |REMIND
--- Comment #3 from jiucai <ji...@qq.com> ---
finally, I found it at tomcat9.0 changelog
http://tomcat.apache.org/tomcat-9.0-doc/changelog.html
here:
Tighten up the default file permissions for the .tar.gz distribution so no
files or directories are world readable by default. Configure Tomcat to run
with a default umask of 0027 which may be overridden by setting UMASK in
setenv.sh. (markt)
In Tomcat8.5.x and Tomcat9.0.x, at bin/catalina.sh there sets umask when tomcat
started , becuase umask=0027, so files cerated by tomcat will be 640 and dirs
will be 750.
# Set UMASK unless it has been overridden
if [ -z "$UMASK" ]; then
UMASK="0027"
fi
umask $UMASK
Now, When I start tomcat process, I set env var UMASK to 0022 will change back
the way that log files created as tomcat8.0.
--
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