Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong permissions in the guide to restore the db Wazuh server files in multi-node #7857

Open
Desvelao opened this issue Oct 9, 2024 · 0 comments · Fixed by #7878, #7879, #7880, #7881 or #7882
Open
Assignees
Labels
level/task Task issue type/bug Bug issue

Comments

@Desvelao
Copy link
Member

Desvelao commented Oct 9, 2024

In the guide to restore the Wazuh server files for multi-node, there is a command to set the user owner of the /var/ossec/queue/db/ files that causes an error in the Wazuh server.

Command:

chown -R root:wazuh /var/ossec/queue/db/

Error:

2024/10/07 13:22:24 wazuh-db: CRITICAL: Unable to bind to socket 'queue/db/wdb': 'Permission denied'. Closing local server.

In the same page, there is another similar reference for single-node and this is using the wazuh user instead of root (that causes the problem).

The user should be changed to wazuh to work.

Related documentation page:
https://documentation.wazuh.com/4.8/user-manual/files-backup/restoring/wazuh-central-components.html

This problem was seen through a user question that is using Wazuh 4.8.2. Regarding the documentation I see the problem could exist from 4.4 to current (4.9) where the same page displays different commands to change the permissions of these files for single-node and multi-node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment