logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: permissions on log files that RollingFileAppender creates
Date Thu, 27 Mar 2014 13:53:02 GMT
I wonder if different versions of Java use different permissions when
creating files...

Gary


On Thu, Mar 27, 2014 at 8:20 AM, <sschaefer1@woh.rr.com> wrote:

> I am confident it is not a umask issue.
> Even when /etc/profile, the user's .profile and the script that starts up
> the Oracle app all have open umasks, the logger still creates 640.
>
>
> ---- Steffen Ryll <steffen.ryll@iteratec.de> wrote:
> > Could it be that the umask has changed for the user that runs the
> AppServer?
> >
> > Call "umask" on a unix system to find out what the default permissions
> > for newly created files is. Read "man umask" for more info. Note that he
> > output of umask is inverted, it won't show 660 directly, rather
> > something like 006.
> >
> >
> > /Steffen
> >
> > Am 26.03.2014 16:11, schrieb sschaefer1@woh.rr.com:
> > > In my log4j.properties, it is configured to use
> > >
> > >     log4j.appender.logfile=org.apache.log4j.RollingFileAppender
> > >
> > > In previous versions, the log files it auto-created had 660
> (rw-rw----) permissions,
> > > but now it seems to create them with 640 (rw-r-----).
> > >
> > > Is there a property I can set within the log4j.properties file to tell
> > > the file appender what permissions to create the new log files with?
> > >
> > > I am working with an Oracle supplied Apache server.
> > >     Oracle-Application-Server-10g/10.1.3.5.0 Oracle-HTTP-Server
> > >
> > > The previous versions were 10.1.2.x.x that created the log files with
> the desired 660 permissions.
> > > Due to patching level requirements, I have to be at the 10.1.3.5.0
> level.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > > For additional commands, e-mail: log4j-user-help@logging.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message