tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Hall <rfha...@yahoo.com>
Subject Re: Changing tomcat's group
Date Fri, 28 Apr 2006 23:11:44 GMT


--- Aria Bamdad <ARIA@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


Mime
View raw message