]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
logrotate: logs are now owned by ceph:ceph 5934/head
authorDan van der Ster <daniel.vanderster@cern.ch>
Tue, 15 Sep 2015 07:10:59 +0000 (09:10 +0200)
committerDan van der Ster <daniel.vanderster@cern.ch>
Tue, 15 Sep 2015 07:10:59 +0000 (09:10 +0200)
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 <daniel.vanderster@cern.ch>
src/logrotate.conf
src/rgw/logrotate.conf

index 50e7ee88670487c0c512d3f27087d2f816e81b1b..014ce4532b088b27a2cf0bce7958f166ca1c2663 100644 (file)
@@ -8,4 +8,5 @@
     endscript
     missingok
     notifempty
+    su ceph ceph
 }
index 65ae1132abd666c629fd5d13206413411f1cc86b..036b85bc3b8e08dc1899e929432f1bf31601032d 100644 (file)
@@ -8,4 +8,5 @@
     endscript
     missingok
     notifempty
+    su ceph ceph
 }