diff --git a/run-document-server.sh b/run-document-server.sh
index c4ad86f52a12937ba7155ba4e0ce3ee9d02df585..5e2585f9dde9b01ba449bea55ae203ad56501689 100755
--- a/run-document-server.sh
+++ b/run-document-server.sh
@@ -272,6 +272,10 @@ for i in ${CONF_DIR} ${LOG_DIR} ${LIB_DIR} ${DATA_DIR}; do
   chmod -R 755 "$i"
 done
 
+#setup logrotate config rights
+chmod 644 ${CONF_DIR}/logrotate/*
+chown root:root ${CONF_DIR}/logrotate/*
+
 if [ ${ONLYOFFICE_DATA_CONTAINER_HOST} = "localhost" ]; then
 
   read_setting