tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject Re: Log ownership when running Tomcat using jsvc
Date Fri, 05 Aug 2011 05:35:38 GMT
On 05.08.2011 04:46, Jorge Medina wrote:
> Right, I can't understand why the JULI files are owned by root.
> any ideas?
> 
> If I remember correctly, Tomcat uses Java logging by default. I am
> trying to remember why I switched to JULI (maybe to rotate the logs),
> but I guess I can try to switch to log4j and see if I get a different
> outcome.

Or check with version 1.0.6 or even the soon to be announced 1.0.7 just
to make sure.

Regards,

Rainer

> On Thu, Aug 4, 2011 at 1:36 PM, Rainer Jung <rainer.jung@kippdata.de> wrote:
>> On 04.08.2011 09:44, Mladen Turk wrote:
>>> On 08/03/2011 10:11 PM, Jorge Medina wrote:
>>>> I run Tomcat in a Solaris 10 SPARC machine using jsvc through a init
>>>> script.
>>>>
>>>> jsvc is started by root, but I specify the "-user" option to change to
>>>> the "application" user.
>>>> I use the option "-outfile" and  "-errfile" to specify where to direct
>>>> stdout and stderr, "catalina.out" and "catalina.err" in my
>>>> environment.
>>>>
>>>
>>> jsvc redirects stdout/stderr before setuid (changing to -user)
>>> thus the files are created by superuser.
>>> Actually that's the desired behavior; You have files writtable
>>> by -user during the application life-time but created and
>>> readable by root.
>>
>> He wasn't asking about stdout, stderr, but instead about the JULI files
>> written by Tomcat.
>>
>> Regards,
>>
>> Rainer
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 

-- 
kippdata
informationstechnologie GmbH   Tel: 0228 98549 -0
Bornheimer Str. 33a            Fax: 0228 98549 -50
53111 Bonn                     www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann
===============================
kippdata
informationstechnologie GmbH   Tel: +49 228 98549 -0
Bornheimer Str. 33a            Fax: +49 228 98549 -50
D-53111 Bonn                   www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann


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


Mime
View raw message