You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Aria Bamdad <AR...@biostat.bsc.gwu.edu> on 2006/05/01 16:36:04 UTC

Re: Changing tomcat's group

Bob makes an excellent point.  The find command will take care of
any existing directories.  Thanks Bob.

Aria.
On Fri, 28 Apr 2006 16:11:44 -0700 (PDT) Bob Hall said:
>
>
>--- Aria Bamdad <AR...@biostat.bsc.gwu.edu> wrote:
>
>>
>> Solved!!!
>>
>> The solution is to use the linux group sticky bit to
>> force any files
>> created in a directory (and subdirectories) to have
>> the same group
>> as the parent.  For example let's say there are two
>> applications,
>> one for accounting and one for payroll.  If you
>> create a directory
>> for accounting and one for payroll, each belonging
>> to their own
>> group and tomcat belonging to both groups, then
>> tomcat can read the
>> files in both directories but when it creates a
>> file, it ends up
>> being tomcat user and tomcat group.  If you change
>> the settings on the
>> two directories as follows:
>>
>> chmod g+ws /accounting
>> chmod g+ws /payroll
>>
>
>Aria, good to know the problem is solved.
>Wish I had seen your latest post before replying
>a few minutes ago.
>
>To set the group sticky bit on dirs from 'app' down:
>
>$ find ./app -type d | xargs chmod g+s
>
>-Bob
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>

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