tomcat-users mailing list archives

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

André,

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

André Warnier wrote:
> André Warnier wrote:
>> epicwinter@hotmail.com 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 java.io.File 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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEUEARECAAYFAkmLZ8wACgkQ9CaO5/Lv0PCsqwCY32MByPxZLRu6dtyVq5+HD2tK
DQCfWHH4qrLiOO2sO7wkHYeYZ66h3hU=
=Enfl
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message