[interchange] Use su directive in Debian's logrotate file to avoid skipping.
Stefan Hornburg
interchange-cvs at icdevgroup.org
Sun Nov 24 11:59:47 UTC 2013
commit f7a835192c21c70488d9ac50da6a11bd05ee0fb8
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
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) <racke at linuxia.de>
+# Copyright 2000,2001,2002,2013 by Stefan Hornburg (Racke) <racke at linuxia.de>
#
# 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
More information about the interchange-cvs
mailing list