wazuh-packages icon indicating copy to clipboard operation
wazuh-packages copied to clipboard

Change the `authd.pass` ownership and permissions after creating it via deployment variables

Open s-ocando opened this issue 3 years ago • 0 comments

Wazuh version Install type Action performed Platform
4.3.6 Agent Install CentOS 7

When authd.pass is created via deployment variables, it stays with the default ownership and permissions:

-rw-r--r--. 1 root  root     11 Aug 19 06:22 authd.pass 

We should change the ownership to root:wazuh and permissions to 640.

[root@linux-agent vagrant]# ll /var/ossec/etc/
total 48
-rw-r--r--. 1 root  root     11 Aug 19 06:22 authd.pass
-rw-r-----. 1 wazuh wazuh    86 Aug 19 06:22 client.keys
-rw-r-----. 1 root  wazuh 13478 Jul 15 12:20 internal_options.conf
-rw-r-----. 1 root  wazuh   320 Jul 15 12:20 local_internal_options.conf
-rw-r-----. 1 root  wazuh   118 Apr 30  2020 localtime
-rw-rw----. 1 root  wazuh  5651 Aug 19 06:22 ossec.conf
drwxrwx---. 2 root  wazuh  4096 Aug 19 06:23 shared
-rw-r-----. 1 root  wazuh  1229 Jul 15 12:20 wpk_root.pem

s-ocando avatar Aug 19 '22 06:08 s-ocando