news logfiles should be owned by news:news for news.daily

Bug #740968 reported by Koos van den Hout
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rsyslog (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: rsyslog

news.daily could not open /var/log/news/news.notice , /var/log/news/news.err and /var/log/news/news.crit to process and rotate them since rsyslog writes them as user:group syslog:adm.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: rsyslog 4.2.0-2ubuntu8.1
ProcVersionSignature: Ubuntu 2.6.32-28.55-generic 2.6.32.27+drm33.12
Uname: Linux 2.6.32-28-generic i686
Architecture: i386
Date: Wed Mar 23 13:39:59 2011
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: rsyslog

Revision history for this message
Koos van den Hout (koos-kzdoos) wrote :
Revision history for this message
Koos van den Hout (koos-kzdoos) wrote :

Workaround, separate logging rules for newws (for readability) and change the FileOwner and FileGroup.

diff -uNr rsyslog.d.orig/50-default.conf rsyslog.d/50-default.conf
--- rsyslog.d.orig/50-default.conf 2011-03-23 14:14:53.000000000 +0100
+++ rsyslog.d/50-default.conf 2011-03-23 13:27:43.000000000 +0100
@@ -22,12 +22,6 @@
 mail.warn -/var/log/mail.warn
 mail.err /var/log/mail.err

-#
-# Logging for INN news system.
-#
-news.crit /var/log/news/news.crit
-news.err /var/log/news/news.err
-news.notice -/var/log/news/news.notice

 #
 # Some "catch-all" log files.
diff -uNr rsyslog.d.orig/60-news.conf rsyslog.d/60-news.conf
--- rsyslog.d.orig/60-news.conf 1970-01-01 01:00:00.000000000 +0100
+++ rsyslog.d/60-news.conf 2011-03-23 13:37:23.000000000 +0100
@@ -0,0 +1,12 @@
+$FileOwner news
+$FileGroup news
+
+#
+# Logging for INN news system.
+#
+news.crit /var/log/news/news.crit
+news.err /var/log/news/news.err
+news.notice -/var/log/news/news.notice
+
+$FileOwner syslog
+$FileGroup adm

Revision history for this message
dino99 (9d9) wrote :

Closing that outdated report as EOL has been reached long time ago

Changed in rsyslog (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.