I'm working on Wazuh 4.3.6, do the integration Wazuh with Microsoft Teams to send my alerts from Wazuh to Teams, everything good except the error messages about the files permission when I run chmod 750 /var/ossec/integrations/custom-teams* and chown root:wazuh /var/ossec/integrations/custom-teams* :
Aug 29, 2022 @ 11:34:43.000 wazuh-integratord ERROR At wpopenv(): file 'integrations/custom-teams' has write permissions.
Aug 29, 2022 @ 11:34:43.000 wazuh-integratord
ERROR Couldn't execute command (integrations
/tmp/custom-teams-1661747683--1633932925.alert
https://intmaster.webhook.office.com/webhookb2/e3c74e8c-2ee9-45bf-bbd7-408498641d09@264fd170-4e9c-46aa-9faa-8895acff195e/IncomingWebhook/2cb2b716007946aeacc010604c07c059/167bb640-6cda-4a4f-b3dd-a795e951e23c
> /dev/null 2>&1). Check file and permissions.
So I searched around Google and remove the write permission for the file like this command chmod 550 /var/ossec/integrations/custom-teams* => the first error had resolved, but the second error still there.
I was verify my Teams Incoming Webhook by using the PowerShell post and can confirm it work.
So my friends, can you tell me what I have do to with the error wazuh-integratord ERROR Couldn't execute command(...) Check file and permissions.
Here is the permission about my folders & files:
/var/ossec/:
total 4
drwxrwxrwx 2 root wazuh 160 Aug 29 04:07 integrations
drwxrwxrwt 2 root wazuh 23 Aug 29 06:26 tmp
/var/ossec/integrations/:
total 48
-r-xr-xr-x 1 root wazuh 1034 Aug 26 08:35 custom-teams
-rwxrwxrwx 1 root wazuh 4826 Aug 29 02:48 custom-teams.py
-rwxrwxrwx 1 root root 4839 Aug 29 02:45 custom-teams.py.bk
-rwxr-x--- 1 root wazuh 4325 Jul 15 12:18 pagerduty
Thank you so much.
--
You received this message because you are subscribed to a topic in the Google Groups "Wazuh mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/EMhYhxNcLVc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/2c0e4e5d-162a-4c2b-b2f3-d47d9987375cn%40googlegroups.com.