From: Sage Weil Date: Tue, 18 Aug 2015 17:46:34 +0000 (-0400) Subject: debian/ceph-common.postinst: fix /var/log/ceph permissions X-Git-Tag: v9.1.0~294^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7c96016876cb86943e4683f61ac1ab35ada8c6bf;p=ceph.git debian/ceph-common.postinst: fix /var/log/ceph permissions Signed-off-by: Sage Weil --- diff --git a/debian/ceph-common.postinst b/debian/ceph-common.postinst index f6e0d7a04c22..6a14f1ec1aeb 100644 --- a/debian/ceph-common.postinst +++ b/debian/ceph-common.postinst @@ -80,7 +80,9 @@ case "$1" in if ! dpkg-statoverride --list /var/log/ceph >/dev/null then chown -R $SERVER_USER:$SERVER_GROUP /var/log/ceph - chmod u=rwx,g=rxs,o= /var/log/ceph + # members of group ceph can log here, but cannot remove + # others' files. non-members cannot read any logs. + chmod u=rwx,g=rwxs,o=t /var/log/ceph fi ;;