tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: running tomcat with root user.....umask in jsvc?
Date Thu, 05 Feb 2009 22:27:24 GMT
Hash: SHA1


I know I'm a bit late, but...

André Warnier wrote:
> André Warnier wrote:
>> wrote:
>>> You are correct, I found a setting that relaxes the group access
>>> permissions on the jailkit. Now I just have one more problem.  When
>>> tomcat creates files in these user directories I need the permissions
>>> to be set appropriately.  What is the best way to set the umask value
>>> when running tomcat using jsvc?
> Replying to myself : upon further reflection, I am not even sure that
> Java would have a method to do this, since it is supposed to be
> platform-independent, and setting filesystem permissions and group
> ownership is rather on the platform-dependent side.

Correct: Java does not provide any permissions-adjusting behavior except
things like "read-only" through the class.

On the other hand, the umask of the JVM process should be whatever the
umask was for the shell that started it. So, if the umask is 022, you
should get files that are readable by anyone. Is that not what you are
experiencing, epicwinter?

- -chris

Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message