From 73d7bed94c5c14cd9d226ffa0ae170c79b8caca8 Mon Sep 17 00:00:00 2001 From: Dan van der Ster Date: Tue, 15 Sep 2015 09:10:59 +0200 Subject: [PATCH] logrotate: logs are now owned by ceph:ceph Add the su directive to avoid this error during logrotate: error: skipping "/var/log/ceph/ceph-osd.0.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. Signed-off-by: Dan van der Ster --- src/logrotate.conf | 1 + src/rgw/logrotate.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/src/logrotate.conf b/src/logrotate.conf index 50e7ee8867048..014ce4532b088 100644 --- a/src/logrotate.conf +++ b/src/logrotate.conf @@ -8,4 +8,5 @@ endscript missingok notifempty + su ceph ceph } diff --git a/src/rgw/logrotate.conf b/src/rgw/logrotate.conf index 65ae1132abd66..036b85bc3b8e0 100644 --- a/src/rgw/logrotate.conf +++ b/src/rgw/logrotate.conf @@ -8,4 +8,5 @@ endscript missingok notifempty + su ceph ceph } -- 2.39.5