From 7afe64b2388ff1672ce18f2f4c8fef563b04bba7 Mon Sep 17 00:00:00 2001 From: Mayte Ariza Date: Tue, 27 Aug 2019 13:31:04 +0200 Subject: [PATCH] Removed write permissions for group and other in Integrations folder (#226) * Removed go-w permissions in integrations folder * Modified permissions command --- wazuh/config/01-wazuh.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wazuh/config/01-wazuh.sh b/wazuh/config/01-wazuh.sh index 2a4ac9ed..e0f005b0 100644 --- a/wazuh/config/01-wazuh.sh +++ b/wazuh/config/01-wazuh.sh @@ -259,6 +259,9 @@ main() { # When modifiying some files using the Wazuh API (i.e. /var/ossec/etc/ossec.conf), group rw permissions are needed for changes to take place. # https://github.com/wazuh/wazuh/issues/3647 chmod -R g+rw ${WAZUH_INSTALL_PATH} + + # Files inside /var/ossec/integrations should not have write permissions for group and other. + chmod -R 750 "/var/ossec/integrations/" } main