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

Change default user and group #716

Merged
merged 8 commits into from
Apr 23, 2021
Merged

Change default user and group #716

merged 8 commits into from
Apr 23, 2021

Conversation

DFolchA
Copy link
Contributor

@DFolchA DFolchA commented Apr 14, 2021

Related issue
Closes #651

Description

This PR modifies the user and group used by the wazuh binaries acording to the specifications of the issue #651.

Upgrade Log

[root@centos7 vagrant]# ls -lah /var/ossec/            
total 4.0K
drwxr-x---. 19 root  ossec  242 Mar 16 15:34 .
drwxr-xr-x. 19 root  root   267 Mar 16 15:34 ..
drwxrwx---.  2 root  ossec    6 Nov 30 08:42 .ssh
drwxr-x---.  3 root  ossec   17 Mar 16 15:34 active-response
drwxr-x---.  2 root  ossec  286 Mar 16 15:34 agentless
drwxr-x---.  4 root  ossec   42 Mar 16 15:34 api
drwxr-x---.  5 root  ossec   48 Mar 16 15:34 backup
drwxr-x---.  2 root  ossec 4.0K Mar 16 15:34 bin
drwxrwx---.  7 ossec ossec  265 Mar 16 15:34 etc
drwxr-x---.  5 root  ossec   48 Mar 16 15:34 framework
drwxr-x---.  2 root  ossec   91 Mar 16 15:34 integrations
drwxr-x---.  2 root  ossec   55 Mar 16 15:34 lib
drwxrwx---.  8 ossec ossec  143 Mar 16 15:34 logs
drwxr-x---. 14 root  ossec  181 Mar 16 15:34 queue
drwxr-x---.  5 root  ossec   61 Mar 16 15:34 ruleset
drwxr-x---.  2 ossec ossec    6 Nov 30 08:41 stats
drwxrwx--T.  2 root  ossec    6 Mar 16 15:34 tmp
drwxr-x---.  9 root  ossec  106 Mar 16 15:34 var
drwxr-x---.  6 root  ossec   58 Mar 16 15:34 wodles
[root@centos7 vagrant]# yum install https://s3-us-west-1.amazonaws.com/packages-dev.wazuh.com/warehouse/test/4.2/rpm/var/wazuh-manager-4.2.0-rename.user.x86_64.rpm
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
wazuh-manager-4.2.0-rename.user.x86_64.rpm                                                                                                                                                                                                                         | 107 MB  00:00:28     
Examining /var/tmp/yum-root-QnqK2Z/wazuh-manager-4.2.0-rename.user.x86_64.rpm: wazuh-manager-4.2.0-rename.user.x86_64
. . . .                                                                                                                                                                                                                                    

Complete!
[root@centos7 vagrant]# ls -lah /var/ossec/
total 4.0K
drwxr-x---. 19 root  wazuh  242 Mar 16 15:42 .
drwxr-xr-x. 19 root  root   267 Mar 16 15:34 ..
drwxrwx---.  2 root  wazuh    6 Mar 16 15:15 .ssh
drwxr-x---.  3 root  wazuh   17 Mar 16 15:14 active-response
drwxr-x---.  2 root  wazuh  286 Mar 16 15:42 agentless
drwxr-x---.  4 root  wazuh   42 Mar 16 15:15 api
drwxr-x---.  5 root  wazuh   48 Mar 16 15:15 backup
drwxr-x---.  2 root  wazuh 4.0K Mar 16 15:42 bin
drwxrwx---.  7 wazuh wazuh  267 Mar 16 15:42 etc
drwxr-x---.  5 root  wazuh   48 Mar 16 15:15 framework
drwxr-x---.  2 root  wazuh   91 Mar 16 15:42 integrations
drwxr-x---.  2 root  wazuh  141 Mar 16 15:42 lib
drwxrwx---.  8 wazuh wazuh  143 Mar 16 15:42 logs
drwxr-x---. 16 root  wazuh  219 Mar 16 15:42 queue
drwxr-x---.  5 root  wazuh   46 Mar 16 15:42 ruleset
drwxr-x---.  2 wazuh wazuh    6 Mar 16 15:14 stats
drwxrwx--T.  2 root  wazuh    6 Mar 16 15:42 tmp
drwxr-x---.  9 root  wazuh  106 Mar 16 15:14 var
drwxr-x---.  6 root  wazuh   58 Mar 16 15:15 wodles

Tests

  • Build the package in any supported platform
    • Linux
    • Windows (not applicable)
    • macOS
    • Solaris
  • Package installation
    • Linux
    • Windows (not applicable)
    • macOS
    • Solaris
  • Package upgrade
    • Linux
    • Windows (not applicable)
    • macOS
    • Solaris
  • Package downgrade
    • Linux
    • Windows (not applicable)
    • macOS
    • Solaris
  • Package remove
    • Linux
    • Windows (not applicable)
    • macOS
    • Solaris
  • Package install/remove/install
  • Change added to CHANGELOG.md

@DFolchA DFolchA requested review from okynos and alberpilot April 14, 2021 14:55
@DFolchA DFolchA changed the base branch from master to 4.3 April 14, 2021 15:37
Copy link
Contributor

@okynos okynos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@DFolchA DFolchA changed the base branch from 4.3 to master April 20, 2021 14:35
@DFolchA DFolchA force-pushed the 651-rename-user-4.3 branch from f14dfe8 to 8ce9d31 Compare April 22, 2021 13:13
@chemamartinez chemamartinez mentioned this pull request Apr 23, 2021
26 tasks
@chemamartinez chemamartinez merged commit 2592bae into master Apr 23, 2021
@chemamartinez chemamartinez deleted the 651-rename-user-4.3 branch April 23, 2021 07:03
@rauldpm rauldpm restored the 651-rename-user-4.3 branch May 22, 2023 17:27
@rauldpm rauldpm deleted the 651-rename-user-4.3 branch May 22, 2023 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename wazuh-packages users and groups according to the new Wazuh standard
4 participants