On Thu, 27 Apr 2006 19:08:27 -0500 you said:
>On Thu, Apr 27, 2006 at 04:55:40PM -0400, Aria Bamdad wrote:
>> I have several applications running in different directories.  Each
>> application is owned by a different linux owner/group.  In order for
>> Tomcat to be able to read these files to serve them, the Tomcat has
>> as it's secondary groups, the group names of each application.
>>
>> The problem I am having is that when any of the applications create
>> a file, the file created has the owner/group tomcat:tomcat which
>> prevents the application owner from accessing the file directly
>> (as a logged in linux user).
>>
>> How do others address this problem? Is there a way to have Tomcat
>> dynamically switch 'group' before serving somthing from each application?
>
>       If the files are in separate directories, it might work to just
>make sure the directory is owned by the appropriate group.  Under NetBSD
>that seems to ensure that any files created are owned appropriately,
>but I'm not sure how it works under linux.  You might need to do a
>"chmod g+s" on the directory.
>
>eric


Eric,

Thanks for your note.  The files are in separate directories and each apps
root directory is owned by the group that owns the app, however, when the
application creates a file (using tomcat) the files newly created have
tomcat-tomcat owner/group.  Tomcat belongs to the groups for all the
different applications but the application owners do not belong to the
tomcat group.  Setting the directory group ownership on Linux does not seem
to force the files within it to have the same ownership.

Aria.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to