Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Invalid
-
1.2.2
-
None
-
None
Description
hello there,
I am not sure fi this is bug or on purpose.
tomcat document says like below.
- https://tomcat.apache.org/tomcat-8.5-doc/security-howto.html
- 29) Security Considerations -> Non Tomcat settings
Tomcat runs with a default umask of 0027 to maintain these permissions for files created while Tomcat is running (e.g. log files, expanded WARs, etc.).
I can also check the default value of umask in the catalina.sh
# Set UMASK unless it has been overridden if [ -z "$UMASK" ]; then UMASK="0027" fi umask $UMASK
however, if i run the tomcat using by jsvc, 0077 is applied by default.
- unix/native/arguments.c : 176
- args->umask = 0077;
does jsvc conform the default value described in the docment?