On 12/16/2013 4:04 PM, Chris Wise wrote:
Hi,
I’m wondering if there is a way to force Tomcat to set permissions on log
files when they’re created? It seems as though this would be something
defined in the logging.properties file, but it doesn’t seem like it’s an
option.
I want the permissions of all log files created (on server startup/log
rollover) to be 640. The only way I can think of doing this is either
adding the command to the startup script, or by running a cron job every
hour or so. However, if there is a way to make sure the log files are
never more permissive than 640, that would be greatly preferable.
Thank you,
Chris
1. Create a setenv.sh file in $CATALINA_BASE/bin.
2. Add the following:
#!/bin/bash
umask 0026
Seems to work for me - quickly tested on Fedora 19, Tomcat 7.0.42, JRE
1.7.0_45.
. . . just my two cents
/mde/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org