[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse
Subject:    Re: [opensuse] How to change group ownership of /var/log/messages
From:       Rodney Baker <rodney.baker () iinet ! net ! au>
Date:       2010-04-28 22:23:15
Message-ID: 201004290741.15491.rodney.baker () iinet ! net ! au
[Download RAW message or body]

On Wed, 28 Apr 2010 19:04:46 Dominique Leuenberger wrote:
> >>> On 4/28/2010 at 10:50, Rodney Baker <rodney.baker@iinet.net.au> wrote:
> > Hi all. I use the tail widget on KDE4 to keep a watch on
> > /var/log/messages. This file is normally readable only by root.
> > 
> > My normal user account is a member of the wheel group and if I chgrp
> > /var/log/messages to wheel then I can monitor it on the desktop, however
> > this
> > change does not survive a reboot (or syslog rolling over the file)
> > because every time the file is created it is created as root:root
> > instead of root:wheel.
> > 
> > Is there a way to tell the system to use the wheel group instead of root
> > for
> > 
> > /var/log/messages? I tried setting SYSLOG_NG_PARAMS="-g wheel" in
> > /etc/sysconfig/syslog and then restarting syslog but this still reset the
> > group ownership to root.
> 
> As logrotate is most likely taking care of rotating the log for you, you
> should check the file /etc/logrotate.d/syslog
> The section for /var/log/message has a line
> create 640 root root
> 
> which you might want to change.
> 
> HTH,
> Dominique

Thanks, Dominique. It seems obvious now (but I couldn't see the forest for the 
trees, so to speak). 

Regards,
Rodney.

-- 
===================================================
Rodney Baker VK5ZTV
rodney.baker@iinet.net.au
=================================================== 

-- 
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse+help@opensuse.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic