-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Léa,

On 3/11/14, 12:31 PM, Lmhelp1 wrote:
> -- Files created by a Tomcat webapp and owner, owner group,
> permissions for this file --
> 
> Hello and thank you for reading my post.
> 
> I am running a "Tomcat v6.0" webapp on a "Debian 7.2 Wheezy" OS.
> 
> In particular, this webapp creates some files on the filesystem.
> 
> The files created have: - "tomcat6" as the owner user, - "tomcat6"
> as the owner group, - 644 as the permissions granted to the owner,
> the owner group and others respectively.
> 
> Is it possible to change this behavior?
> 
> What I like to do is: - set the owner user to "user1", - set the
> owner group to "group1", - set the permissions to 660 for every new
> file created.

You can set the file permissions (bits) by setting the "umask" of the
process.

When creating files, the process uid and gid are used as defaults for
ownership. If you want to use "user1" and "group1", then you should
run Tomcat under those uid and gid settings.

I'm unaware of any setting which will allow a process to run under one
uid but files created by that process are owned by another user. You
might be able to get away with a cron process that re-assigns
ownership of the files periodically.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTH0RgAAoJEBzwKT+lPKRYehAQAIYB0YNPWaB0vqjjlDS42adl
KCmU6dj3CnGfw4I+4b4yLymAdixrv1Y0tuLGvXwWIznUZChhGaL2tVYTacuzO2yt
mwipWy5OIBKchFCxjlL0SsSEfx3OFQ7sbDQuxwHW9wpq1MkqnNXWtv0VhKi7Q9cf
A6JAyJIs4lOHO79KDtYRU+ckB3lT0CynlQGR0xKevdF6CaLE8EHYsAV8YMJhM07p
kPdH1W3UXS6ta3QGybDbVe2ED5WuuWoCJoitavJgocNaOjBkoNzOv8Fyrfn0pvFQ
m6A0Rm+W5apt2kseb1o63COlka8/jV7Bx8BxEiQEzZ29apGb5tc7tflI6c3n6e/H
Hgy4YrZpUrWkH6Aa4NCwyiqzFgcsob1uFBTACnR5+imXiEYX9acqJtJSmc2qdcbF
Ye7OFxyncsH3wvcXwXabJjqakBqFZ85BMizZ4XKRptnOvXOh5rr4K03LdDyqXExn
ufrLvCGWIb1lofhCbqbCK0OQp68minoiEmyi98n9S+9vwfvonG5cUdPNmBpLu2r4
DTEnPnI6w75nvxv7ATdTKFq7AgR0ftJvwqunazFaODLPgadP57q4FEqI38yglrIK
KKBd4xF8HmeV1D+Viqo2OD9NKZX24llFQwVT7v4vXMf+/1SJgnw1uqZJhSCDnVsM
STJCNdoHG2z32H/hgb7z
=gIgR
-----END PGP SIGNATURE-----

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

Reply via email to