From: Dan van der Ster Date: Tue, 15 Sep 2015 07:10:59 +0000 (+0200) Subject: logrotate: logs are now owned by ceph:ceph X-Git-Tag: v9.1.0~141^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=73d7bed94c5c14cd9d226ffa0ae170c79b8caca8;p=ceph.git 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 --- diff --git a/src/logrotate.conf b/src/logrotate.conf index 50e7ee886704..014ce4532b08 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 65ae1132abd6..036b85bc3b8e 100644 --- a/src/rgw/logrotate.conf +++ b/src/rgw/logrotate.conf @@ -8,4 +8,5 @@ endscript missingok notifempty + su ceph ceph }