[interchange] Use su directive in Debian's logrotate file to avoid skipping.

Stefan Hornburg <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit f7a835192c21c70488d9ac50da6a11bd05ee0fb8
Author: Stefan Hornburg (Racke) <[email protected]>
Date:   Sun Nov 24 12:58:32 2013 +0100

    Use su directive in Debian's logrotate file to avoid skipping.
    
    error: skipping "/var/log/interchange/error.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.

 debian/interchange.logrotate |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/debian/interchange.logrotate b/debian/interchange.logrotate
index e4ad9fa..26cac00 100644
--- a/debian/interchange.logrotate
+++ b/debian/interchange.logrotate
@@ -1,7 +1,7 @@
 #
 # logrotate configuration file for Interchange debian package
 #
-# Copyright 2000,2001,2002 by Stefan Hornburg (Racke) <[email protected]>
+# Copyright 2000,2001,2002,2013 by Stefan Hornburg (Racke) <[email protected]>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -19,6 +19,7 @@
 # MA  02110-1301  USA.
 
 /var/log/interchange/error.log {
+    su interchange interchange
 	rotate 7
 	size=100k
 	compress
@@ -26,6 +27,7 @@
 }
 
 /var/log/interchange/debug.log /var/log/interchange/makecat.log {
+    su interchange interchange
 	rotate 7
 	size=100k
 	compress
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.