[opensuse] How to change group ownership of /var/log/messages
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. Thanks, 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
On 4/28/2010 at 10:50, Rodney Baker
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 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 28 Apr 2010 19:04:46 Dominique Leuenberger wrote:
On 4/28/2010 at 10:50, Rodney Baker
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
participants (2)
-
Dominique Leuenberger
-
Rodney Baker