Skip to content

Commit

Permalink
logrotate: logs are now owned by ceph:ceph
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dvanders committed Sep 15, 2015
1 parent 7d89225 commit 73d7bed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/logrotate.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
endscript
missingok
notifempty
su ceph ceph
}
1 change: 1 addition & 0 deletions src/rgw/logrotate.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
endscript
missingok
notifempty
su ceph ceph
}

0 comments on commit 73d7bed

Please sign in to comment.