Add new Dockerfile for Wazuh indexer

This commit is contained in:
vcerenu
2022-02-02 18:06:20 -03:00
parent 09f87ef233
commit d0476d3f35
21 changed files with 1444 additions and 198 deletions

View File

@@ -12,7 +12,7 @@ services:
- "514:514/udp"
- "55000:55000"
environment:
- ELASTICSEARCH_URL=https://elasticsearch:9700
- ELASTICSEARCH_URL=https://wazuh-indexer:9700
- ELASTIC_USERNAME=admin
- ELASTIC_PASSWORD=admin
- FILEBEAT_SSL_VERIFICATION_MODE=none
@@ -29,7 +29,7 @@ services:
- filebeat_etc:/etc/filebeat
- filebeat_var:/var/lib/filebeat
elasticsearch:
wazuh-indexer:
image: wazuh-indexer
hostname: node1
restart: always
@@ -62,9 +62,9 @@ services:
- SERVER_SSL_ENABLED=false
depends_on:
- elasticsearch
- wazuh-indexer
links:
- elasticsearch:elasticsearch
- wazuh-indexer:wazuh-indexer
- wazuh:wazuh
volumes:

View File

@@ -3,8 +3,8 @@ version: '3'
services:
generator:
image: wazuh/opendistro-certs-generator:0.1
image: certs_creator #wazuh/opendistro-certs-generator:0.1
hostname: opendistro-certs-generator
volumes:
- ./production_cluster/wazuh_indexer_ssl_certs/certs.yml:/usr/src/config/myconf.yml
- ./production_cluster/wazuh_indexer_ssl_certs/certs.yml:/usr/share/wazuh-indexer/plugins/opensearch-security/tools/config.yml
- ./production_cluster/wazuh_indexer_ssl_certs/:/usr/src/certs/out/

View File

@@ -1,17 +1,18 @@
# Wazuh Docker Copyright (C) 2021 Wazuh Inc. (License GPLv2)
FROM centos:8
FROM ubuntu:20.04
ARG WAZUH_VERSION=4.3.0-1
USER root
RUN apt-get update && apt install curl -y
# Update and install dependecies
RUN yum install initscripts -y
RUN curl https://packages-dev.wazuh.com/pre-release/apt/pool/main/w/wazuh-indexer/wazuh-indexer_${WAZUH_VERSION}_amd64.deb --output wazuh-indexer_${WAZUH_VERSION}_amd64.deb && \
dpkg -i wazuh-indexer_${WAZUH_VERSION}_amd64.deb
#Download and install Wazuh indexer
RUN curl https://s3.amazonaws.com/warehouse.wazuh.com/stack/indexer/stable/wazuh-indexer-${WAZUH_VERSION}.x86_64.rpm --output wazuh-indexer-${WAZUH_VERSION}.x86_64.rpm && \
rpm -i wazuh-indexer-${WAZUH_VERSION}.x86_64.rpm && \
yum clean all && rm -rf /var/cache/yum && rm -rf wazuh-indexer-${WAZUH_VERSION}.x86_64.rpm
WORKDIR /usr/share/wazuh-indexer/plugins/opensearch-security/tools/
RUN rm wazuh-cert-tool.sh && \
curl -sO https://packages-dev.wazuh.com/resources/4.3/install_functions/opendistro/wazuh-cert-tool.sh &&\
chmod 750 wazuh-cert-tool.sh
COPY config/entrypoint.sh /

View File

@@ -3,7 +3,7 @@ version: '3.7'
services:
wazuh-master:
image: wazuh/wazuh-odfe:4.2.5
image: wazuh/wazuh-odfe:4.3.0
hostname: wazuh-master
restart: always
ports:
@@ -38,7 +38,7 @@ services:
- ./production_cluster/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf
wazuh-worker:
image: wazuh/wazuh-odfe:4.2.5
image: wazuh/wazuh-odfe:4.3.0
hostname: wazuh-worker
restart: always
environment:
@@ -88,8 +88,8 @@ services:
- ./production_cluster/wazuh_indexer_ssl_certs/wazuh-indexer.key:/etc/wazuh-indexer/certs/wazuh-indexer.key
- ./production_cluster/wazuh_indexer_ssl_certs/wazuh-indexer.pem:/etc/wazuh-indexer/certs/wazuh-indexer.pem
- ./production_cluster/wazuh_indexer_ssl_certs/admin.pem:/etc/wazuh-indexer/certs/admin.pem
- ./production_cluster/wazuh_indexer_ssl_certs/admin.key:/etc/wazuh-indexer/certs/admin.key
- ./production_cluster/wazuh-indexer/opnesearch-node1.yml:/etc/wazuh-indexer/opensearch.yml
- ./production_cluster/wazuh_indexer_ssl_certs/admin.key:/etc/wazuh-indexer/certs/admin-key.pem
- ./production_cluster/wazuh-indexer/opensearch-node1.yml:/etc/wazuh-indexer/opensearch.yml
- ./production_cluster/wazuh-indexer/internal_users.yml:/usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig/internal_users.yml
wazuh-indexer-2:
@@ -111,7 +111,7 @@ services:
- ./production_cluster/wazuh_indexer_ssl_certs/root-ca.pem:/etc/wazuh-indexer/certs/root-ca.pem
- ./production_cluster/wazuh_indexer_ssl_certs/wazuh-indexer-2.key:/etc/wazuh-indexer/certs/wazuh-indexer-2.key
- ./production_cluster/wazuh_indexer_ssl_certs/wazuh-indexer-2.pem:/etc/wazuh-indexer/certs/wazuh-indexer-2.pem
- ./production_cluster/wazuh-indexer/opnesearch-node2.yml:/etc/wazuh-indexer/opensearch.yml
- ./production_cluster/wazuh-indexer/opensearch-node2.yml:/etc/wazuh-indexer/opensearch.yml
- ./production_cluster/wazuh-indexer/internal_users.yml:/usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml
wazuh-indexer-3:
@@ -133,7 +133,7 @@ services:
- ./production_cluster/wazuh_indexer_ssl_certs/root-ca.pem:/etc/wazuh-indexer/certs/root-ca.pem
- ./production_cluster/wazuh_indexer_ssl_certs/wazuh-indexer-3.key:/etc/wazuh-indexer/certs/wazuh-indexer-3.key
- ./production_cluster/wazuh_indexer_ssl_certs/wazuh-indexer-3.pem:/etc/wazuh-indexer/certs/wazuh-indexer-3.pem
- ./production_cluster/wazuh-indexer/opnesearch-node3.yml:/etc/wazuh-indexer/opensearch.yml
- ./production_cluster/wazuh-indexer/opensearch-node3.yml:/etc/wazuh-indexer/opensearch.yml
- ./production_cluster/wazuh-indexer/internal_users.yml:/usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml
kibana:

View File

@@ -1,21 +1,21 @@
-----BEGIN CERTIFICATE-----
MIIDazCCAlOgAwIBAgIUeEaU6PZXSb2RQhzz6NQDsnXgPCYwDQYJKoZIhvcNAQEL
MIIDazCCAlOgAwIBAgIUaIlPP3pCoqvkHYK4/3ATalS/l4MwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMjAxMjUxNTM4MjRaFw0yMzAx
MjUxNTM4MjRaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEw
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMjAxMjgxODE1MDRaFw0yMzAx
MjgxODE1MDRaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEw
HwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQDKJlBieT/1IJkd4AoUja9eFy6Z+k1yskwRLdVHuYLL
EhbDhsOOnoB0Yg7XAylxbyvXvxeNC5uQJWrU5nDwf70cGNmIG29sDd9XXKmEj7lo
NffkHBD+/UQb9aodWVaTVnu81qB+jCwi/vThaslb7ycmC+wyPz+P3SZbhQKT3BTI
2vYNzznPcugs1qFhnA0Mn4DuY4daEkFDYXjxtxfE8rWZOr+bbhxjgdAp25KaA1Sz
k47DiodTxASOumODtR/j/CPm4W9oZQ0y+cAE+mYg8TmMz+kyPK1oW8mMsjUHK1/m
EiBCMX1rdOVFNQ3ia7aX+xJzH/7ZDJPg7tG0MbfUxv+7AgMBAAGjUzBRMB0GA1Ud
DgQWBBTwTfEThtctV2m1mXpoUE0o7fQgXzAfBgNVHSMEGDAWgBTwTfEThtctV2m1
mXpoUE0o7fQgXzAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCq
1JHCAZCKFyJh/Dx8vjvXIhPeOjNBWcx4Dl4mw+DlkNyAfX6xJprUy3f/hIuXhZcs
TvLjLi2IFcGk/lGUh1SIxyAmyz49rSm/B0rYWR+rBwrEFHZwYHegS/oGtLn1kwZz
kMn3WzLFMwBLoSOs5tT3i3E0EAuH/MsO9a61HJUKbWJGG9cv3OtcCSU6wb+lQyK5
mTsI8kjVAuKmuzwl9S3I7TqXolhwodz9MAagmLcwSfAU8Ce7qTwwpBOz4YkOHqkH
JAZhYEcLbLKCh2mGtB84mdA2pHoxK8y/J05P85ENwcYooFD7gYcsHphkKKKszNmf
AArKqDwDGSRGfbq/3rOE
AQUAA4IBDwAwggEKAoIBAQDtxUl6m3HlUPeTIXQu+BVCOiscwtVXTlSaIlOhz/cu
Py5ptLRMHdO1vTIawPag9Y1bLaLpkPuGSVUIXFhhfvc20OlQ0HaHMVu+zA6B+pV0
uZTg4HAX7NJhGMh9qv1APtoeTx7wbG48f6+udV2bbay4a/+jQ8wkYeeTcRNSs7cz
zN30ToPUul/41ekROqvCwl7ss7BF0V/9V2ZgMnwdix7ogEZckYEvDkDccud+cF+f
CRBABKlueFL5C2+d5AkhQef8BqzjnwsRSlWSRulfcU4G0pkmVG+v59PnGaOuKVs/
g6zOfvCmb3nKSMmJJs5sJfEN0JD1Xir6nJlEQMukRBKZAgMBAAGjUzBRMB0GA1Ud
DgQWBBRH3Gak7M/uyi4SvAv8sd3oX3uHADAfBgNVHSMEGDAWgBRH3Gak7M/uyi4S
vAv8sd3oX3uHADAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBv
1wBbjz5JSBU9UfJh5IPxTudOTtHQgU1N55M8Qz0cNBpc6dtyL/+xc85UoTKo9BEH
ZluycPDyFeIjEyvCTLTdJLkRY4gqKGgnI9JtR4nOGLjX2le1o78uL6aayYTHaQVF
Q/5K7q+JOwDXu4haBupKl43fZSFQhMQOpsKt9+PHymBXSxP35FrLNVG+UQcQNiwT
2u9Vm0K36TEmTc+eeVPo6L2bTqhWbURSJpsnMXEGssIUVuzHu2iPjsJpf6rW93DD
ZI41gjPBBuDrOPxuNQ5M9wz5j9Ckv3CHBXwg868qUAklv6tj+7bovbngof67HL4W
GzUBqvUWcjo4dV/ZkA1Z
-----END CERTIFICATE-----

View File

@@ -1,28 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDKJlBieT/1IJkd
4AoUja9eFy6Z+k1yskwRLdVHuYLLEhbDhsOOnoB0Yg7XAylxbyvXvxeNC5uQJWrU
5nDwf70cGNmIG29sDd9XXKmEj7loNffkHBD+/UQb9aodWVaTVnu81qB+jCwi/vTh
aslb7ycmC+wyPz+P3SZbhQKT3BTI2vYNzznPcugs1qFhnA0Mn4DuY4daEkFDYXjx
txfE8rWZOr+bbhxjgdAp25KaA1Szk47DiodTxASOumODtR/j/CPm4W9oZQ0y+cAE
+mYg8TmMz+kyPK1oW8mMsjUHK1/mEiBCMX1rdOVFNQ3ia7aX+xJzH/7ZDJPg7tG0
MbfUxv+7AgMBAAECggEBAI1K0F6z3vdHjJ4sDP+mtI9wZpsrL1zesHpFbdCPIpMr
loudsywJL0GplDPGuv3VNXC72Qs1tMrAzHX4h7Ihpp1v5QPUIUIGRDf8xWOpTW9A
YX6n+10uyp88S2XuHqwnA5/O6CjrcqIXUDQKfqlqdBOMu8+3E4dLjNblFhMg/coQ
ueGY8BV7bLIIBCxZV9Ca/DuQZQQXBRJjGDEcxWl+GBuWR81P9D5BITma+js9yZKw
yvZckvfObSyJ9nR5bsWPlybn3GrdGHeBwXvGXswDekwj9wsRVc00LcQ0BwrwCn7I
xjnB0XuoH4+T4OrIS08XQROzKalhUOZKwYilKEt78ikCgYEA+xX+z3QW5lVcDVIx
IIU2elZlr515NqSDBkFbdUSAlDQqPxyqQg3y110xymypdJwvh3DL3tuLyAswANKD
M3nj8U/hhKKcDjxiHutk/3R3sb+z/X6apS7nfWHn7X2G97Xv1GSp+Jxv+bZAQ+jP
k4fe3CB8JHu+V9My69XYBwx6468CgYEAzhsisB+Y0nKBIfoMoB752fFbPissycMI
QliFZsp8upIZ8dGeThubhuSMTAvL73rZpN3pJCrAwxKDvwf/sPIK2Q/ux8oB3rUr
jkTNM2D51VRNkcNbedg2LJETNzrqChH+J4ZeSMXHG7kkgJHfNiyMOwAzR0pFTtQC
tRDrF1j8i7UCgYA2NiuMEx6WoLt9TM+6m8iFZX4TCscPGzoG8bmTejTgytqMQd4o
4OYbxc1oTUnRGZ/ReHMsLO7jRDcbFliplpm2km64untDP5pX3q8x0K2/PQrZoqo1
HAlzMt5mkoG/nhKoIwvn1679lXIOt4eJ7P4bPRBQuD8Cq2EFNmisLO+jlQKBgGeR
MykVd5GogEM2h0mexyZBJfxjbaolGu1b1g0FCxAlgmwFTWsqbEioZ+d+tgesz9kM
ua623Q4pK5K+zjl4JwNUAkTauX3TxANFh2ed/2y3ZBMu+7SKdQ6ICAPk0t4klHYA
Czi+SYMg0brZkjSCxiSPwTS9mX43AvVBfyDIUn9RAoGBAKfABXsKw34AI2M/Dhyh
2tpjW/luRWhzeO9pBDbe7jHOKqXSdFuRj0uniTiAHiK2ozL0xCXvG7b2l2rQQ6dn
cPCPagKSZmyFQcHxRr6QG+EGAbKa61eVWlGgEmp8jinv96V9eifgg+W+yH988PwC
e+liYHi4YGgobcnMDrIUdWrw
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDtxUl6m3HlUPeT
IXQu+BVCOiscwtVXTlSaIlOhz/cuPy5ptLRMHdO1vTIawPag9Y1bLaLpkPuGSVUI
XFhhfvc20OlQ0HaHMVu+zA6B+pV0uZTg4HAX7NJhGMh9qv1APtoeTx7wbG48f6+u
dV2bbay4a/+jQ8wkYeeTcRNSs7czzN30ToPUul/41ekROqvCwl7ss7BF0V/9V2Zg
Mnwdix7ogEZckYEvDkDccud+cF+fCRBABKlueFL5C2+d5AkhQef8BqzjnwsRSlWS
RulfcU4G0pkmVG+v59PnGaOuKVs/g6zOfvCmb3nKSMmJJs5sJfEN0JD1Xir6nJlE
QMukRBKZAgMBAAECggEANp+sUc6ES/pd5h85YdD8kUprvR/Fg1krdn2MWRA96RH6
x64L/bCcgpQEfsD15+SBpQDG/IGiRydxsYoFg+B3StCTyU0a7dQZD6wxaQr4auh3
m3H0TorJiiT3amdt5uSJl4z1vqYqbRuocJvl9V8s3vFwuUFKFNGpMeY4WjePTwbA
SoVvXHsatA6QPNfIYJXIdWD5DdPMIABWuFThm/hDfq1n57DsKQa3/pvyj4tMqKw9
K0cgVJWqCFqAlza7WErn9NDvGOZxJqzmgAbjnj9l18VRHp1uzKn0oZBM50zuvykU
HpEoe+GCktNy8PhDx3w60gxftKgFilgRyHvVNYwAAQKBgQD/IghMwhWTrNlzxj20
oQ2NwUnPNJjsu0ZklAAp4axekipu3kI5bNyoBBBTg1uJwHnfLOJxmCPuCBzvqcA+
kr8jUH7DuKAHEdDyt6rGAyAnLHKI9+WRztXJqBwhk/CmHoxM/cT5sdEog3Z8WAes
sm7IPnI1J/0BevrcmDDwrot2AQKBgQDulCY3lZgpWj9PSKzkwxBYMGwVDKYwin38
NY4a/jf+PzIXVrZSeLDmSgkNqgvsHCnjrzfI6dC+wG3wjblgM4ocAM3C6eG8Obnp
Bv+llfDGsndO9VO0oLeycyPkukrVBnG90KL+FEdJleLMb8Zcw8f8xF09lks5gmSX
ZEfv4mKMmQKBgQC9Csp7lZPHSFwXnNw76tnQH1hBYAev4VPXUpKMddryd/tZCvam
9jLJi7lNKBe7ihLDes6OvNxik0BdlLoNo05dLFfBThvFIT5hmhW/grFgVV7IfmZs
E4X1VcsCVkwJyrjKk35QRaFlE4PHvrJxFAVh+mNFX8voPOeEbIBW1f4gAQKBgBK1
NUX4igT8GajK5xvNG/P+YAtKgaGeyoBDZtBBDPz30aK43vUal6yHM6yJoAO0tagv
7izoAMFkb3qEcnvTrsnBWmElW9kZobVfIh7G4imChw5++EBatezdUHw4C3Qm3DZp
LM7Fok1n3m/vd9uAUqdEcpdIuL9atS6V43oxA09JAoGBALO0H5n/jQxfzS1FzAR8
ywA093adt4v84C8BsVj/nsMk56mqTquWtAuEgur7sWk2sBosb9qKsN0VmWG8h4nk
aV/nJopx77c8GAWzyiJ5W34mhS0LiTfax8L0FBx79eis+/lXr2bujgNJkGE7JHOu
zNDYtcVvKModj/du4hXIKExr
-----END PRIVATE KEY-----

View File

@@ -1,21 +1,21 @@
-----BEGIN CERTIFICATE-----
MIIDazCCAlOgAwIBAgIULAht6hsQE8zjr2rgFMp7AGNsjWAwDQYJKoZIhvcNAQEL
MIIDazCCAlOgAwIBAgIUKLi6nm5vryQ/9xCQOJsSZpsxT5MwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMjAxMjUxNTM4MzNaFw0yMzAx
MjUxNTM4MzNaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEw
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMjAxMjcxOTQ3MDhaFw0yMzAx
MjcxOTQ3MDhaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEw
HwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQC/++0tPSSbcSvhVG1VSu+GdJEECzJYrmflmBU6s+PP
zQ4wvQSuZKlItQdOyJgoOfX1LZDfmoPvg4cmtaozJZyXqSOEj+Y2RXu+CB1SbonQ
PvWWPIGHS2LDWuVF3xgi0yvwiDcbydThjv4iQ9peVwG+6d2Ehg8lo6eENUsnqh2U
hn8mGg3mUx+AeGLE8lVQtyFG5ucjn5lobOGbobWVDddCOibCEnoyLXRHH5Z+PQ1d
+qCe8QHh7+y9HEo7Qy5HHuZgeAaDglUXrymNE9LvZ+yeeztt1LBsy8bQPqCJ5dS0
e4DffxSURZqUFqMLsUDcIMZw1Gb1YNxeX9VzngVew4QRAgMBAAGjUzBRMB0GA1Ud
DgQWBBRGuAOx1cBaeCbgkVevNEQ6TnCOCzAfBgNVHSMEGDAWgBRGuAOx1cBaeCbg
kVevNEQ6TnCOCzAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQAJ
S8e8tpUAkEB/zxdCF5R/RsFu0cpeBSma2hEd5o5vjuOCo1lX0Mjx3p16ZI6nlkGG
TByVQAQmvETyc2SY/TX9OqBzZIqqSs1mRQOJvF7kEBI6o3JDiURynd54uPKboO6Y
rsWAtFwcpzOF+zTUeCNFXPzCwivoKFvnxh2bUFX0WxxTBrR5scKR23BKoMAWeR+h
7cXsjd+wI8EhhVduJRvFV8m+rXPgBDHo446aAp0aDC8hEWhnWAIrJKIsmV06ZtKc
Kun1/kyNF8QloO4XNoY3DAKWmBW99PgV3gci535AZDMMCrDzZ4bcoqLMfXVR6odh
eumaeNEXCPMIb5+vAao3
AQUAA4IBDwAwggEKAoIBAQCbp1+YDLidHAF/7qfVN8kLixNgclux6FNcupmSo7om
gtS42zAfimDvlukhRTL/keV4yis2WwhLq/CP/FGvPVoSLnqXUx9oyW4X7zCHastq
dHj62wI+SgcbqTZidTqFdPt4WnJ17UauUuBGLqeDZALwUD2l45aYPPj6N+LjjdBW
Ag2Q6g3iWJM2uAY3Qu5IHf8yngkGWuFsKYleyGSdRWzSr6OUKsDj0ZljD3fKhWB1
5+KFL/n9uRoHGrT/1O1FJFxUzX7PCO+6c16NN9tO1BP4dwiP+u8kORiiVoJ7xWlU
BJd88rfIV1Rds94nBGAl1H9eJMEe0dbdFCQEzhPf0KB3AgMBAAGjUzBRMB0GA1Ud
DgQWBBTRbzcDxJ1bHGdtqtvYUAGAV1xFGzAfBgNVHSMEGDAWgBTRbzcDxJ1bHGdt
qtvYUAGAV1xFGzAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBr
uuCdm/zj5BfGD6Dg3V0nPOHeHv4b4UN4husPFRSb0YanZWTHpENfrbhRFknM9Ut1
k6ces6c0m9UvDJQtIGkXQM57EXe2PYbDhPeP3GWvc1ymQoPoHwPmKtnrd2vTV0ni
MxAkr2BwX9Az0NrEef0ccAgyYXm+JBnQK4ZxTln4bBkK6+aZ34w9lGUSql33pdk4
v9wySOffEOkaCFqXH6xZ1P4pJqcydaM75JXMuMg8DteSixARjuI5Ce6cyiki1Yte
nK8GqZC8lsM/s8ag3dHq0FT9gP0VGonKATqdknGa5bxCo/NolUhcyPgYPiTpz4s9
w8668jDUM62W84lvKa6P
-----END CERTIFICATE-----

View File

@@ -1,28 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC/++0tPSSbcSvh
VG1VSu+GdJEECzJYrmflmBU6s+PPzQ4wvQSuZKlItQdOyJgoOfX1LZDfmoPvg4cm
taozJZyXqSOEj+Y2RXu+CB1SbonQPvWWPIGHS2LDWuVF3xgi0yvwiDcbydThjv4i
Q9peVwG+6d2Ehg8lo6eENUsnqh2Uhn8mGg3mUx+AeGLE8lVQtyFG5ucjn5lobOGb
obWVDddCOibCEnoyLXRHH5Z+PQ1d+qCe8QHh7+y9HEo7Qy5HHuZgeAaDglUXrymN
E9LvZ+yeeztt1LBsy8bQPqCJ5dS0e4DffxSURZqUFqMLsUDcIMZw1Gb1YNxeX9Vz
ngVew4QRAgMBAAECggEAIp6hVGkUMtujmAyLcrgCnXJjvCDwwUEiByr3mRBbYluN
1YggUfpg9HWAjdpqZcad7cp7t3a7l/NV6csUmAiORmL/vqXcU6kP+WKpNvYr79uK
mb7rdKRJeQTpF0J1rcH6yHMnzOEGfG42saMeu6hg7jZp9b3e+WCbkqGxncN1dhTC
sNsHGGwlvfR0z7soAuVewysnJ5fckEP3mpHnEhegIz9LHeZvRbavpI1q/cgz2+FT
h1AAHXSio1dLEypHbTKw3uf+FA9Jpalbm6mBuY+7L0Lh5qkJ3sPdhQn6EfcDPY7O
YnsfAfY02g48ZsTbaRokPMDN95DWV0MmS4bMaUMlYQKBgQDtVJfC6ZOANtZCKFXO
/Rs20i9CYMXOp4m7qlfiKAezp5bh2uUlh49/BeAUJ45Hf5o+RleAhowmS3PTjy9t
vDBuU0m13K9b2e8KlFOSEkkwRhEChkHa3aTsIYgI1cXhTVIl9sRRHWLmFe0C5DEG
WQMjYL6POByAI8DNMdPv0aqe7QKBgQDPFiPODbRav0vabFl3E1R7ff2PpXSKgGj6
Y/oeM+iAKwE6/9aHIqsDLaSMzAVXb0TMvEEjI77tIfGg3Azv/lfq3j4bXMEWVY6H
92JBDqagSxzzbFcqelyzEKLFBYG01MUEwOz8oNcIiQNndw8xakH04csBzHTMWUMb
3jUujDJxNQKBgQDNZN6KkzdSSSMY0mug3bAFu9WmrrXCaYBr57pzQY2Yz7tm79hM
qItptR3+k1UxT5+fsaTc2JTGN5qgR1UWtT183Zv3RmyFI5EbKM9CpYytuJXUB3lK
/3NR4Jsoekns+MvVi0DPqo0C74rVa8N56OMsZPfGXxtbUpXzf+IZtOzi6QKBgCKp
2BBzps7R2oaTQF54M9n/+uOClIFigS/4cDOCCNb7W9deX7B7ExkTGMoglHxQObnz
gQu6vgi/d8yvSNMbReggj1DRM9jjNVp5BE9TfnyyVgRBDE4l8UJf9H76Lv3v55Km
IIUg/x2Eobc97KMe4C93ZB3G9X4HKv6NMWW7Pe5JAoGBAJwsmcmyhgCmJ1F5dYj4
kOZaiJrM8XNKdeIskzpyyfJRAbLWtClc2iZdOBP3YKnSYB5CyI16Padp60cDhVrX
5M1s/Uf8aJP+T/dtXPKH+Mug1Qbc5vBHKpEGaZNuvfbauTAH2B+QaoeVmEqNQg7T
lO5yoHbI38TYyvnY4YAmJ+N2
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCbp1+YDLidHAF/
7qfVN8kLixNgclux6FNcupmSo7omgtS42zAfimDvlukhRTL/keV4yis2WwhLq/CP
/FGvPVoSLnqXUx9oyW4X7zCHastqdHj62wI+SgcbqTZidTqFdPt4WnJ17UauUuBG
LqeDZALwUD2l45aYPPj6N+LjjdBWAg2Q6g3iWJM2uAY3Qu5IHf8yngkGWuFsKYle
yGSdRWzSr6OUKsDj0ZljD3fKhWB15+KFL/n9uRoHGrT/1O1FJFxUzX7PCO+6c16N
N9tO1BP4dwiP+u8kORiiVoJ7xWlUBJd88rfIV1Rds94nBGAl1H9eJMEe0dbdFCQE
zhPf0KB3AgMBAAECggEAFJRvnjHoYtVmGV0bkaRbj4wm1rSoDQCzrOn7DhlZrmfT
6lEIrtLj+CmSz1RP5tyKY4sPZZNpqF+mYdMxlaLd+tNsX/+cgoVHaiC04OKs3Hlj
2X8Fb+jnwa+AwknPn/+UlBgZVCA4HSpV/tGCUmvxu4ZQcFOEAMLnBGZJOF7ysbxE
9Q08spPjQQgYfScS9pRhKRj8PG+qepifpMAg4GtiT9u70r2DC+IbxmE15MUtA/qM
vqHhGLaH3LiuEI0sBEvU95mgQAGaScDiJR1uQ7VrRHQJlxYnxoNywe+8cvpi+qjK
E3NvQpI0NP1/BroDMP2je2FYedWipolR9vNpRK5FyQKBgQDLnI1jqMyl86xMzePi
G7gp/9IAi+5xwCs4o8THmozi3ktn0ma5hlg2RjP19tdslr39I47L9RMPnis+SYIE
Qzdol+wV0VhQmBt7yot+EnPgPqz1zxhGmeji+wImGgV+1acBV++YaDYimI8Ux1uG
Z4faczDrhpAG8TaECr5PCcieFQKBgQDDs/MzI0hVs+xzgLlcTrA7jgZnCVxtAVBa
NAEN0tJ1AC2lL5nYlcfd0x2ebRmluRCGmS8HfZ/3lTTARTE+HED/Vf2C0svStSwx
aDEu9zFYgxCI5ZYzwxcubvlpoEUaLS9jJPAiW/rSuImAinA3hDDq92VJwcr4qFu0
WrB7iMlzWwKBgQCwkEZvmI42jnLoe1ZU2dK+4O87uByCmbEhQaq/qH7psPjUxDh+
Q0i1b/VZIr+2k5WXMUGADjqEPZWkQtwzVBJ1aeC5Hrulz/FtTLvgDKJdYBxeYELd
3lN8mUxIvCHt1donqRjFIgFnyMGytBnjGF5PibpvU1YMHxo2MJbNNV+57QKBgQCo
nly2O/kwNqVNY6TSHs6Dkbx8fLlRBmfIQLSDx5kjzDKH+DqTPYKG40bK4O/PNWRC
xKubxabV+I4J99QU0t1B40JZvOx3MTjRnRd7gurWe578hOxkzvwjOuTVGI1Rn4sL
3qC0yhGUDAIVabKEcvZ/DQgNg9cxZkYVYGpdFh+UrwKBgGGb0yr7dBuvzVaJ5fLj
ITwJr6kqD41JVd0MKpGzIDGubMaGTtdc6N6GjIyNzgJAQ9VDv0l45BUYfjKtNp90
al8RIfH0xUdPGHT/7JBgyEWZqBF88dC9Kn4JVfKzoaQK89a2RM554MxKuQOKw2Yr
q6EnyW8xKHg3z06lzZeFF51C
-----END PRIVATE KEY-----

View File

@@ -0,0 +1,56 @@
---
# This is the internal user database
# The hash value is a bcrypt hash and can be generated with plugin/tools/hash.sh
_meta:
type: "internalusers"
config_version: 2
# Define your internal users here
## Demo users
admin:
hash: "$2y$12$K/SpwjtB.wOHJ/Nc6GVRDuc1h0rM1DfvziFRNPtk27P.c4yDr9njO"
reserved: true
backend_roles:
- "admin"
description: "Demo admin user"
kibanaserver:
hash: "$2a$12$4AcgAt3xwOWadA5s5blL6ev39OXDNhmOesEoo33eZtrq2N0YrU3H."
reserved: true
description: "Demo kibanaserver user"
kibanaro:
hash: "$2a$12$JJSXNfTowz7Uu5ttXfeYpeYE0arACvcwlPBStB1F.MI7f0U9Z4DGC"
reserved: false
backend_roles:
- "kibanauser"
- "readall"
attributes:
attribute1: "value1"
attribute2: "value2"
attribute3: "value3"
description: "Demo kibanaro user"
logstash:
hash: "$2a$12$u1ShR4l4uBS3Uv59Pa2y5.1uQuZBrZtmNfqB3iM/.jL0XoV9sghS2"
reserved: false
backend_roles:
- "logstash"
description: "Demo logstash user"
readall:
hash: "$2a$12$ae4ycwzwvLtZxwZ82RmiEunBbIPiAmGZduBAjKN0TXdwQFtCwARz2"
reserved: false
backend_roles:
- "readall"
description: "Demo readall user"
snapshotrestore:
hash: "$2y$12$DpwmetHKwgYnorbgdvORCenv4NAK8cPUg8AI6pxLCuWf/ALc0.v7W"
reserved: false
backend_roles:
- "snapshotrestore"
description: "Demo snapshotrestore user"

View File

@@ -0,0 +1,40 @@
network.host: wazuh-indexer
node.name: wazuh-indexer
cluster.initial_master_nodes: wazuh-indexer,wazuh-indexer-2,wazuh-indexer-3
cluster.name: "wazuh-cluster"
discovery.seed_hosts: wazuh-indexer,wazuh-indexer-2,wazuh-indexer-3
http.port: 9700-9799
transport.tcp.port: 9800-9899
node.max_local_storage_nodes: "3"
path.data: /var/lib/wazuh-indexer
path.logs: /var/log/wazuh-indexer
###############################################################################
# #
# WARNING: Insecure demo certificates set up in this file. #
# Please change on production cluster! #
# #
###############################################################################
plugins.security.ssl.http.pemcert_filepath: /etc/wazuh-indexer/certs/wazuh-indexer.pem
plugins.security.ssl.http.pemkey_filepath: /etc/wazuh-indexer/certs/wazuh-indexer.key
plugins.security.ssl.http.pemtrustedcas_filepath: /etc/wazuh-indexer/certs/root-ca.pem
plugins.security.ssl.transport.pemcert_filepath: /etc/wazuh-indexer/certs/wazuh-indexer.pem
plugins.security.ssl.transport.pemkey_filepath: /etc/wazuh-indexer/certs/wazuh-indexer.key
plugins.security.ssl.transport.pemtrustedcas_filepath: /etc/wazuh-indexer/certs/root-ca.pem
plugins.security.ssl.http.enabled: true
plugins.security.ssl.transport.enforce_hostname_verification: false
plugins.security.ssl.transport.resolve_hostname: false
plugins.security.audit.type: internal_opensearch
plugins.security.authcz.admin_dn:
- "CN=admin,OU=Docu,O=Wazuh,L=California,C=US"
plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.nodes_dn:
- "CN=wazuh-indexer,OU=Docu,O=Wazuh,L=California,C=US"
- "CN=wazuh-indexer-2,OU=Docu,O=Wazuh,L=California,C=US"
- "CN=wazuh-indexer-3,OU=Docu,O=Wazuh,L=California,C=US"
- "CN=filebeat,OU=Docu,O=Wazuh,L=California,C=US"
plugins.security.restapi.roles_enabled:
- "all_access"
- "security_rest_api_access"
plugins.security.system_indices.enabled: true
plugins.security.system_indices.indices: [".opendistro-alerting-config", ".opendistro-alerting-alert*", ".opendistro-anomaly-results*", ".opendistro-anomaly-detector*", ".opendistro-anomaly-checkpoints", ".opendistro-anomaly-detection-state", ".opendistro-reports-*", ".opendistro-notifications-*", ".opendistro-notebooks", ".opensearch-observability", ".opendistro-asynchronous-search-response*", ".replication-metadata-store"]

View File

@@ -0,0 +1,40 @@
network.host: wazuh-indexer-2
node.name: wazuh-indexer-2
cluster.initial_master_nodes: wazuh-indexer,wazuh-indexer-2,wazuh-indexer-3
cluster.name: "wazuh-cluster"
discovery.seed_hosts: wazuh-indexer,wazuh-indexer-2,wazuh-indexer-3
http.port: 9700-9799
transport.tcp.port: 9800-9899
node.max_local_storage_nodes: "3"
path.data: /var/lib/wazuh-indexer
path.logs: /var/log/wazuh-indexer
###############################################################################
# #
# WARNING: Insecure demo certificates set up in this file. #
# Please change on production cluster! #
# #
###############################################################################
plugins.security.ssl.http.pemcert_filepath: /etc/wazuh-indexer/certs/wazuh-indexer-2.pem
plugins.security.ssl.http.pemkey_filepath: /etc/wazuh-indexer/certs/wazuh-indexer-2.key
plugins.security.ssl.http.pemtrustedcas_filepath: /etc/wazuh-indexer/certs/root-ca.pem
plugins.security.ssl.transport.pemcert_filepath: /etc/wazuh-indexer/certs/wazuh-indexer-2.pem
plugins.security.ssl.transport.pemkey_filepath: /etc/wazuh-indexer/certs/wazuh-indexer-2.key
plugins.security.ssl.transport.pemtrustedcas_filepath: /etc/wazuh-indexer/certs/root-ca.pem
plugins.security.ssl.http.enabled: true
plugins.security.ssl.transport.enforce_hostname_verification: false
plugins.security.ssl.transport.resolve_hostname: false
plugins.security.audit.type: internal_opensearch
plugins.security.authcz.admin_dn:
- 'CN=admin,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.nodes_dn:
- 'CN=wazuh-indexer,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
- 'CN=wazuh-indexer-2,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
- 'CN=wazuh-indexer-3,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
- 'CN=filebeat,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
plugins.security.restapi.roles_enabled:
- "all_access"
- "security_rest_api_access"
plugins.security.system_indices.enabled: true
plugins.security.system_indices.indices: [".opendistro-alerting-config", ".opendistro-alerting-alert*", ".opendistro-anomaly-results*", ".opendistro-anomaly-detector*", ".opendistro-anomaly-checkpoints", ".opendistro-anomaly-detection-state", ".opendistro-reports-*", ".opendistro-notifications-*", ".opendistro-notebooks", ".opensearch-observability", ".opendistro-asynchronous-search-response*", ".replication-metadata-store"]

View File

@@ -0,0 +1,40 @@
network.host: wazuh-indexer-2
node.name: wazuh-indexer-2
cluster.initial_master_nodes: wazuh-indexer,wazuh-indexer-2,wazuh-indexer-3
cluster.name: "wazuh-cluster"
discovery.seed_hosts: wazuh-indexer,wazuh-indexer-2,wazuh-indexer-3
http.port: 9700-9799
transport.tcp.port: 9800-9899
node.max_local_storage_nodes: "3"
path.data: /var/lib/wazuh-indexer
path.logs: /var/log/wazuh-indexer
###############################################################################
# #
# WARNING: Insecure demo certificates set up in this file. #
# Please change on production cluster! #
# #
###############################################################################
plugins.security.ssl.http.pemcert_filepath: /etc/wazuh-indexer/certs/wazuh-indexer-2.pem
plugins.security.ssl.http.pemkey_filepath: /etc/wazuh-indexer/certs/wazuh-indexer-2.key
plugins.security.ssl.http.pemtrustedcas_filepath: /etc/wazuh-indexer/certs/root-ca.pem
plugins.security.ssl.transport.pemcert_filepath: /etc/wazuh-indexer/certs/wazuh-indexer-2.pem
plugins.security.ssl.transport.pemkey_filepath: /etc/wazuh-indexer/certs/wazuh-indexer-2.key
plugins.security.ssl.transport.pemtrustedcas_filepath: /etc/wazuh-indexer/certs/root-ca.pem
plugins.security.ssl.http.enabled: true
plugins.security.ssl.transport.enforce_hostname_verification: false
plugins.security.ssl.transport.resolve_hostname: false
plugins.security.audit.type: internal_opensearch
plugins.security.authcz.admin_dn:
- "CN=admin,OU=Docu,O=Wazuh,L=California,C=US"
plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.nodes_dn:
- "CN=wazuh-indexer,OU=Docu,O=Wazuh,L=California,C=US"
- "CN=wazuh-indexer-2,OU=Docu,O=Wazuh,L=California,C=US"
- "CN=wazuh-indexer-3,OU=Docu,O=Wazuh,L=California,C=US"
- "CN=filebeat,OU=Docu,O=Wazuh,L=California,C=US"
plugins.security.restapi.roles_enabled:
- "all_access"
- "security_rest_api_access"
plugins.security.system_indices.enabled: true
plugins.security.system_indices.indices: [".opendistro-alerting-config", ".opendistro-alerting-alert*", ".opendistro-anomaly-results*", ".opendistro-anomaly-detector*", ".opendistro-anomaly-checkpoints", ".opendistro-anomaly-detection-state", ".opendistro-reports-*", ".opendistro-notifications-*", ".opendistro-notebooks", ".opensearch-observability", ".opendistro-asynchronous-search-response*", ".replication-metadata-store"]

View File

@@ -0,0 +1,40 @@
network.host: wazuh-indexer-3
node.name: wazuh-indexer-3
cluster.initial_master_nodes: wazuh-indexer,wazuh-indexer-2,wazuh-indexer-3
cluster.name: "wazuh-cluster"
discovery.seed_hosts: wazuh-indexer,wazuh-indexer-2,wazuh-indexer-3
http.port: 9700-9799
transport.tcp.port: 9800-9899
node.max_local_storage_nodes: "3"
path.data: /var/lib/wazuh-indexer
path.logs: /var/log/wazuh-indexer
###############################################################################
# #
# WARNING: Insecure demo certificates set up in this file. #
# Please change on production cluster! #
# #
###############################################################################
plugins.security.ssl.http.pemcert_filepath: /etc/wazuh-indexer/certs/wazuh-indexer-3.pem
plugins.security.ssl.http.pemkey_filepath: /etc/wazuh-indexer/certs/wazuh-indexer-3.key
plugins.security.ssl.http.pemtrustedcas_filepath: /etc/wazuh-indexer/certs/root-ca.pem
plugins.security.ssl.transport.pemcert_filepath: /etc/wazuh-indexer/certs/wazuh-indexer-3.pem
plugins.security.ssl.transport.pemkey_filepath: /etc/wazuh-indexer/certs/wazuh-indexer-3.key
plugins.security.ssl.transport.pemtrustedcas_filepath: /etc/wazuh-indexer/certs/root-ca.pem
plugins.security.ssl.http.enabled: true
plugins.security.ssl.transport.enforce_hostname_verification: false
plugins.security.ssl.transport.resolve_hostname: false
plugins.security.audit.type: internal_opensearch
plugins.security.authcz.admin_dn:
- "CN=admin,OU=Docu,O=Wazuh,L=California,C=US"
plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.nodes_dn:
- "CN=wazuh-indexer,OU=Docu,O=Wazuh,L=California,C=US"
- "CN=wazuh-indexer-2,OU=Docu,O=Wazuh,L=California,C=US"
- "CN=wazuh-indexer-3,OU=Docu,O=Wazuh,L=California,C=US"
- "CN=filebeat,OU=Docu,O=Wazuh,L=California,C=US"
plugins.security.restapi.roles_enabled:
- "all_access"
- "security_rest_api_access"
plugins.security.system_indices.enabled: true
plugins.security.system_indices.indices: [".opendistro-alerting-config", ".opendistro-alerting-alert*", ".opendistro-anomaly-results*", ".opendistro-anomaly-detector*", ".opendistro-anomaly-checkpoints", ".opendistro-anomaly-detection-state", ".opendistro-reports-*", ".opendistro-notifications-*", ".opendistro-notebooks", ".opensearch-observability", ".opendistro-asynchronous-search-response*", ".replication-metadata-store"]

View File

@@ -1,22 +1,35 @@
ca:
root:
dn: CN=admin,OU=Docu,O=Wazuh,L=California,C=US
pkPassword: none
keysize: 2048
file: root-ca.pem
intermediate:
dn: CN=admin,OU=Docu,O=Wazuh,L=California,C=US
keysize: 2048
validityDays: 3650
pkPassword: intermediate-ca-password
file: intermediate-ca.pem
nodes:
# Elasticsearch server nodes
#wazuh-indexer:
- name: wazuh-indexer
ip: wazuh-indexer
- name: wazuh-indexer-2
ip: wazuh-indexer-2
- name: wazuh-indexer-3
ip: wazuh-indexer-3
# Wazuh server nodes
# Use node_type only with more than one Wazuh manager
#wazuh_servers:
- name: wazuh-master
ip: wazuh-master
#node_type: master
- name: wazuh-worker
ip: wazuh-worker
#node_type: worker
# Kibana node
#kibana:
- name: kibana
ip: kibana
- name: wazuh-indexer
dn: CN=wazuh-indexer,OU=Docu,O=Wazuh,L=California,C=US
dns:
- wazuh-indexer
- name: wazuh-indexer-2
dn: CN=wazuh-indexer-2,OU=Docu,O=Wazuh,L=California,C=US
dns:
- wazuh-indexer-2
- name: wazuh-indexer-3
dn: CN=wazuh-indexer-3,OU=Docu,O=Wazuh,L=California,C=US
dns:
- wazuh-indexer-3
- name: filebeat
dn: CN=filebeat,OU=Docu,O=Wazuh,L=California,C=US
dns:
- wazuh
clients:
- name: admin
dn: CN=admin,OU=Docu,O=Wazuh,L=California,C=US
admin: true

View File

@@ -1,35 +0,0 @@
ca:
root:
dn: CN=root-ca,OU=CA,O=Example\, Inc.,DC=example,DC=com
pkPassword: none
keysize: 2048
file: root-ca.pem
intermediate:
dn: CN=intermediate,OU=CA,O=Example\, Inc.,DC=example,DC=com
keysize: 2048
validityDays: 3650
pkPassword: intermediate-ca-password
file: intermediate-ca.pem
nodes:
- name: wazuh-indexer
dn: CN=wazuh-indexer,OU=Ops,O=Example\, Inc.,DC=example,DC=com
dns:
- wazuh-indexer
- name: wazuh-indexer-2
dn: CN=wazuh-indexer-2,OU=Ops,O=Example\, Inc.,DC=example,DC=com
dns:
- wazuh-indexer-2
- name: wazuh-indexer-3
dn: CN=wazuh-indexer-3,OU=Ops,O=Example\, Inc.,DC=example,DC=com
dns:
- wazuh-indexer-3
- name: filebeat
dn: CN=filebeat,OU=Ops,O=Example\, Inc.,DC=example,DC=com
dns:
- wazuh
clients:
- name: admin
dn: CN=admin,OU=Ops,O=Example\, Inc.,DC=example,DC=com
admin: true

View File

@@ -5,10 +5,8 @@
# Start Wazuh dashboard
##############################################################################
sed -i 's/localhost:9700/elasticsearch:9700/' /etc/wazuh-dashboard/wazuh-dashboard.yml
sed -i 's/<wazuh-indexer-ip>:9700/wazuh-indexer:9700/' /etc/wazuh-dashboard/dashboard.yml
sed -i 's/<wazuh-dashboard-ip>/0.0.0.0/' /etc/wazuh-dashboard/dashboard.yml
sed -i '/logging.dest:/d' /etc/wazuh-dashboard/dashboard.yml
service wazuh-dashboard start
sleep 20
tail -f /var/log/wazuh-dashboard/wazuh-dashboard.log
runuser wazuh-dashboard --shell="/bin/bash" --command="/usr/share/wazuh-dashboard/bin/opensearch-dashboards -c /etc/wazuh-dashboard/dashboard.yml"

View File

@@ -0,0 +1,42 @@
FROM centos:7 AS builder
ENV tini_bin="tini-amd64"
RUN yum install initscripts curl -y
RUN curl --retry 8 -S -L -O https://github.com/krallin/tini/releases/download/v0.19.0/${tini_bin}
RUN curl --retry 8 -S -L -O https://github.com/krallin/tini/releases/download/v0.19.0/${tini_bin}.sha256sum
RUN sha256sum -c ${tini_bin}.sha256sum && \
echo ${tini_bin} \
rm ${tini_bin}.sha256sum && \
mv ${tini_bin} /tini && \
chmod +x /tini
#RUN mkdir /usr/share/wazuh-indexer
#WORKDIR /usr/share/opensearch
#RUN tar zxf /opt/opensearch.tar.gz --strip-components=1
#RUN sed -i -e 's/OPENSEARCH_DISTRIBUTION_TYPE=tar/OPENSEARCH_DISTRIBUTION_TYPE=docker/' /usr/share/opensearch/bin/opensearch-env
#RUN mkdir -p config config/jvm.options.d data logs
#RUN chmod 0775 config config/jvm.options.d data logs
#COPY config/opensearch.yml config/log4j2.properties config/
#RUN chmod 0660 config/opensearch.yml config/log4j2.properties
COPY config/config.sh .
RUN bash config.sh
################################################################################
# Build stage 1 (the actual OpenSearch image):
#
# Copy opensearch from stage 0
# Add entrypoint
################################################################################
FROM alpine
ENV USER="wazuh-indexer" \
GROUP="wazuh-indexer" \
NAME="wazuh-indexer" \
INSTALL_DIR="/usr/share/wazuh-indexer"
RUN addgroup --system --gid 1000 $GROUP && \
adduser -u 1000 -G $GROUP -D -h $INSTALL_DIR $USER && \
chmod 0775 $INSTALL_DIR
#chown -R 1000:0 $INSTALL_DIR
WORKDIR $INSTALL_DIR
COPY --from=builder --chown=1000:0 /usr/share/wazuh-indexer /usr/share/wazuh-indexer
COPY --from=builder --chown=0:0 /tini /tini

View File

@@ -3,9 +3,11 @@ FROM ubuntu:20.04
ARG WAZUH_VERSION=4.3.0-1
# Update and install dependecies
RUN apt-get update && apt install curl -y
RUN curl https://s3.amazonaws.com/warehouse.wazuh.com/stack/indexer/stable/wazuh-indexer_${WAZUH_VERSION}_amd64.deb --output wazuh-indexer_${WAZUH_VERSION}_amd64.deb && \
#Download and install Wazuh indexer
RUN curl https://packages-dev.wazuh.com/pre-release/apt/pool/main/w/wazuh-indexer/wazuh-indexer_${WAZUH_VERSION}_amd64.deb --output wazuh-indexer_${WAZUH_VERSION}_amd64.deb && \
dpkg -i wazuh-indexer_${WAZUH_VERSION}_amd64.deb
COPY config/entrypoint.sh /

View File

@@ -0,0 +1,961 @@
export NAME=wazuh-indexer
export VERSION=4.3.0
export RELEASE=1
export USER=$NAME
export GROUP=$NAME
export CONFIG_DIR=/etc/$NAME
export LOG_DIR=/var/log/$NAME
export LIB_DIR=/var/lib/$NAME
export SYS_DIR=/usr/lib
export INSTALL_DIR=/usr/share/$NAME
export REPO_DIR=/root/unattended_installer
getent group $GROUP || groupadd -r -g 1000 $GROUP
# Create package user
if ! id $USER &> /dev/null; then
useradd --system \
--uid 1000 \
--no-create-home \
--home-dir $INSTALL_DIR \
--gid $GROUP \
--shell /sbin/nologin \
--comment "$USER user" \
$USER
fi
# Create directories
mkdir -p ${RPM_BUILD_ROOT}${INSTALL_DIR}
mkdir -p ${RPM_BUILD_ROOT}/etc
mkdir -p ${RPM_BUILD_ROOT}${LOG_DIR}
mkdir -p ${RPM_BUILD_ROOT}${LIB_DIR}
mkdir -p ${RPM_BUILD_ROOT}${SYS_DIR}
# Download required sources
curl -kOL https://s3.amazonaws.com/warehouse.wazuh.com/stack/indexer/wazuh-indexer-base-linux-x64.tar.gz
tar -xzf wazuh-indexer-*.tar.gz && rm -f wazuh-indexer-*.tar.gz
chown -R ${USER}:${GROUP} wazuh-indexer-*/*
# Copy base files into RPM_BUILD_ROOT directory
mv wazuh-indexer-*/etc/ ${RPM_BUILD_ROOT}/etc/
cp -r wazuh-indexer-*${SYS_DIR}/* ${RPM_BUILD_ROOT}${SYS_DIR}/
rm -rf wazuh-indexer-*/etc
rm -rf wazuh-indexer-*/usr
cp -pr wazuh-indexer-*/* ${RPM_BUILD_ROOT}${INSTALL_DIR}/
# Download demo certificates
curl -kOL https://s3.amazonaws.com/warehouse.wazuh.com/stack/demo-certs.tar.gz
tar xzf demo-certs.tar.gz && rm -f demo-certs.tar.gz
chown -R ${USER}:${GROUP} certs
mkdir -p ${RPM_BUILD_ROOT}${CONFIG_DIR}/certs/
cp certs/admin.pem ${RPM_BUILD_ROOT}${CONFIG_DIR}/certs/
cp certs/admin-key.pem ${RPM_BUILD_ROOT}${CONFIG_DIR}/certs/
cp certs/demo-indexer.pem ${RPM_BUILD_ROOT}${CONFIG_DIR}/certs/
cp certs/demo-indexer-key.pem ${RPM_BUILD_ROOT}${CONFIG_DIR}/certs/
cp certs/root-ca.pem ${RPM_BUILD_ROOT}${CONFIG_DIR}/certs/
#cp ${REPO_DIR}/install_functions/wazuh-cert-tool.sh ${RPM_BUILD_ROOT}${INSTALL_DIR}/plugins/opensearch-security/tools/
#cp ${REPO_DIR}/install_functions/wazuh-passwords-tool.sh ${RPM_BUILD_ROOT}${INSTALL_DIR}/plugins/opensearch-security/tools/
#cp ${REPO_DIR}/config/opensearch/certificate/config_aio.yml ${RPM_BUILD_ROOT}${INSTALL_DIR}/plugins/opensearch-security/tools/config.yml
#cp ${REPO_DIR}/config/opensearch/roles/internal_users.yml ${RPM_BUILD_ROOT}${INSTALL_DIR}/plugins/opensearch-security/securityconfig/
#cp ${REPO_DIR}/config/opensearch/roles/roles.yml ${RPM_BUILD_ROOT}${INSTALL_DIR}/plugins/opensearch-security/securityconfig/
#cp ${REPO_DIR}/config/opensearch/roles/roles_mapping.yml ${RPM_BUILD_ROOT}${INSTALL_DIR}/plugins/opensearch-security/securityconfig/
#chmod 0660 "/etc/sysconfig/${NAME}" && chown root:${GROUP} "/etc/sysconfig/${NAME}"
chmod 400 ${CONFIG_DIR}/certs/admin.pem && chown ${USER}:${GROUP} ${CONFIG_DIR}/certs/admin.pem
chmod 400 ${CONFIG_DIR}/certs/admin-key.pem && chown ${USER}:${GROUP} ${CONFIG_DIR}/certs/admin-key.pem
chmod 400 ${CONFIG_DIR}/certs/demo-indexer.pem && chown ${USER}:${GROUP} ${CONFIG_DIR}/certs/demo-indexer.pem
chmod 400 ${CONFIG_DIR}/certs/demo-indexer-key.pem && chown ${USER}:${GROUP} ${CONFIG_DIR}/certs/demo-indexer-key.pem
chmod 400 ${CONFIG_DIR}/certs/root-ca.pem && chown ${USER}:${GROUP} ${CONFIG_DIR}/certs/root-ca.pem
chmod 660 ${CONFIG_DIR}/jvm.options && chown ${USER}:${GROUP} ${CONFIG_DIR}/jvm.options
chmod 660 ${CONFIG_DIR}/opensearch.yml && chown ${USER}:${GROUP} ${CONFIG_DIR}/opensearch.yml
chmod 660 ${CONFIG_DIR}/log4j2.properties && chown ${USER}:${GROUP} ${CONFIG_DIR}/log4j2.properties
chmod 750 ${CONFIG_DIR} && chown ${USER}:${GROUP} ${CONFIG_DIR}
chmod 750 ${LIB_DIR} && chown ${USER}:${GROUP} ${LIB_DIR}
chmod 750 ${LOG_DIR} && chown ${USER}:${GROUP} ${LOG_DIR}
chmod 750 ${INSTALL_DIR}/performance-analyzer-rca/lib && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib
chmod 750 ${INSTALL_DIR} && chown ${USER}:${GROUP} ${INSTALL_DIR}
chmod 750 ${INSTALL_DIR}/performance-analyzer-rca && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca
chmod 750 ${INSTALL_DIR}/performance-analyzer-rca/bin && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/bin
chmod 750 ${INSTALL_DIR}/performance-analyzer-rca/pa_bin && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/pa_bin
chmod 750 ${INSTALL_DIR}/performance-analyzer-rca/pa_config && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/pa_config
chmod 750 ${INSTALL_DIR}/bin && chown ${USER}:${GROUP} ${INSTALL_DIR}/bin
chmod 750 ${INSTALL_DIR}/lib && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib
chmod 750 ${INSTALL_DIR}/lib/tools && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/tools
chmod 750 ${INSTALL_DIR}/lib/tools/plugin-cli && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/tools/plugin-cli
chmod 750 ${INSTALL_DIR}/lib/tools/upgrade-cli && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/tools/upgrade-cli
chmod 750 ${INSTALL_DIR}/lib/tools/keystore-cli && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/tools/keystore-cli
chmod 750 ${CONFIG_DIR}/certs && chown ${USER}:${GROUP} ${CONFIG_DIR}/certs
chmod 750 ${CONFIG_DIR}/opensearch-observability && chown ${USER}:${GROUP} ${CONFIG_DIR}/opensearch-observability
chmod 750 ${CONFIG_DIR}/opensearch-reports-scheduler && chown ${USER}:${GROUP} ${CONFIG_DIR}/opensearch-reports-scheduler
chmod 750 ${CONFIG_DIR}/jvm.options.d && chown ${USER}:${GROUP} ${CONFIG_DIR}/jvm.options.d
chmod 750 ${INSTALL_DIR}/plugins && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins
chmod 750 ${INSTALL_DIR}/plugins/opensearch-observability && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-observability
chmod 750 ${INSTALL_DIR}/plugins/opensearch-reports-scheduler && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-reports-scheduler
chmod 750 ${INSTALL_DIR}/plugins/opensearch-sql && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql
chmod 750 ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication
chmod 750 ${INSTALL_DIR}/plugins/opensearch-knn && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn
chmod 750 ${INSTALL_DIR}/plugins/opensearch-knn/knnlib && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/knnlib
chmod 750 ${INSTALL_DIR}/plugins/opensearch-index-management && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-index-management
chmod 750 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer
chmod 750 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_bin && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_bin
chmod 750 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config
chmod 750 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/extensions && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/extensions
chmod 750 ${INSTALL_DIR}/plugins/opensearch-job-scheduler && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-job-scheduler
chmod 750 ${INSTALL_DIR}/plugins/opensearch-security && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security
chmod 750 ${INSTALL_DIR}/plugins/opensearch-security/securityconfig && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/securityconfig
chmod 750 ${INSTALL_DIR}/plugins/opensearch-security/tools && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/tools
chmod 750 ${INSTALL_DIR}/plugins/opensearch-asynchronous-search && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-asynchronous-search
chmod 750 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection
chmod 750 ${INSTALL_DIR}/plugins/opensearch-alerting && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting
chmod 750 ${INSTALL_DIR}/modules && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules
chmod 750 ${INSTALL_DIR}/modules/ingest-common && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-common
chmod 750 ${INSTALL_DIR}/modules/geo && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/geo
chmod 750 ${INSTALL_DIR}/modules/ingest-geoip && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-geoip
chmod 750 ${INSTALL_DIR}/modules/percolator && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/percolator
chmod 750 ${INSTALL_DIR}/modules/analysis-common && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/analysis-common
chmod 750 ${INSTALL_DIR}/modules/aggs-matrix-stats && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/aggs-matrix-stats
chmod 750 ${INSTALL_DIR}/modules/repository-url && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/repository-url
chmod 750 ${INSTALL_DIR}/modules/lang-mustache && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-mustache
chmod 750 ${INSTALL_DIR}/modules/systemd && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/systemd
chmod 750 ${INSTALL_DIR}/modules/transport-netty4 && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/transport-netty4
chmod 750 ${INSTALL_DIR}/modules/lang-expression && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-expression
chmod 750 ${INSTALL_DIR}/modules/lang-painless && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-painless
chmod 750 ${INSTALL_DIR}/modules/rank-eval && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/rank-eval
chmod 750 ${INSTALL_DIR}/modules/opensearch-dashboards && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/opensearch-dashboards
chmod 750 ${INSTALL_DIR}/modules/ingest-user-agent && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-user-agent
chmod 750 ${INSTALL_DIR}/modules/mapper-extras && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/mapper-extras
chmod 750 ${INSTALL_DIR}/modules/parent-join && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/parent-join
chmod 750 ${INSTALL_DIR}/modules/reindex && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/reindex
chmod 750 ${INSTALL_DIR}/jdk && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk
chmod 750 ${INSTALL_DIR}/jdk/man && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man
chmod 750 ${INSTALL_DIR}/jdk/man/man1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1
chmod 750 ${INSTALL_DIR}/jdk/bin && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin
chmod 750 ${INSTALL_DIR}/jdk/legal && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal
chmod 750 ${INSTALL_DIR}/jdk/legal/java.base && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.base
chmod 750 ${INSTALL_DIR}/jdk/legal/java.security.sasl && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.security.sasl
chmod 750 ${INSTALL_DIR}/jdk/legal/java.scripting && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.scripting
chmod 750 ${INSTALL_DIR}/jdk/legal/java.management && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.management
chmod 750 ${INSTALL_DIR}/jdk/legal/java.xml && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.xml
chmod 750 ${INSTALL_DIR}/jdk/legal/java.smartcardio && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.smartcardio
chmod 750 ${INSTALL_DIR}/jdk/legal/java.transaction.xa && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.transaction.xa
chmod 750 ${INSTALL_DIR}/jdk/legal/java.prefs && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.prefs
chmod 750 ${INSTALL_DIR}/jdk/legal/java.compiler && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.compiler
chmod 750 ${INSTALL_DIR}/jdk/legal/java.logging && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.logging
chmod 750 ${INSTALL_DIR}/jdk/legal/java.xml.crypto && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.xml.crypto
chmod 750 ${INSTALL_DIR}/jdk/legal/java.sql.rowset && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.sql.rowset
chmod 750 ${INSTALL_DIR}/jdk/legal/java.net.http && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.net.http
chmod 750 ${INSTALL_DIR}/jdk/legal/java.rmi && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.rmi
chmod 750 ${INSTALL_DIR}/jdk/legal/java.sql && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.sql
chmod 750 ${INSTALL_DIR}/jdk/legal/java.naming && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.naming
chmod 750 ${INSTALL_DIR}/jdk/legal/java.datatransfer && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.datatransfer
chmod 750 ${INSTALL_DIR}/jdk/legal/java.instrument && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.instrument
chmod 750 ${INSTALL_DIR}/jdk/legal/java.management.rmi && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.management.rmi
chmod 750 ${INSTALL_DIR}/jdk/legal/java.desktop && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.desktop
chmod 750 ${INSTALL_DIR}/jdk/lib && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib
chmod 750 ${INSTALL_DIR}/jdk/lib/server && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/server
chmod 750 ${INSTALL_DIR}/jdk/lib/jfr && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/jfr
chmod 750 ${INSTALL_DIR}/jdk/lib/security && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/security
chmod 750 ${INSTALL_DIR}/jdk/include && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/include
chmod 750 ${INSTALL_DIR}/jdk/include/linux && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/include/linux
chmod 750 ${INSTALL_DIR}/jdk/conf && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf
chmod 750 ${INSTALL_DIR}/jdk/conf/sdp && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/sdp
chmod 750 ${INSTALL_DIR}/jdk/conf/management && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/management
chmod 750 ${INSTALL_DIR}/jdk/conf/security && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/security
chmod 750 ${INSTALL_DIR}/jdk/conf/security/policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/security/policy
chmod 750 ${INSTALL_DIR}/jdk/conf/security/policy/limited && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/security/policy/limited
chmod 750 ${INSTALL_DIR}/jdk/conf/security/policy/unlimited && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/security/policy/unlimited
chmod 750 ${INSTALL_DIR}/jdk/jmods && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods
chmod 0750 /etc/init.d/${NAME} && chown root:root /etc/init.d/${NAME}
chmod 0640 ${SYS_DIR}/sysctl.d/${NAME}.conf && chown root:root ${SYS_DIR}/sysctl.d/${NAME}.conf
chmod 0640 ${SYS_DIR}/systemd/system/${NAME}.service && chown root:root ${SYS_DIR}/systemd/system/${NAME}.service
chmod 0640 ${SYS_DIR}/systemd/system/${NAME}-performance-analyzer.service && chown root:root ${SYS_DIR}/systemd/system/${NAME}-performance-analyzer.service
chmod 0640 ${SYS_DIR}/tmpfiles.d/${NAME}.conf && chown root:root ${SYS_DIR}/tmpfiles.d/${NAME}.conf
chmod 750 ${INSTALL_DIR}/performance-analyzer-rca/bin/performance-analyzer-rca && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/bin/performance-analyzer-rca
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/performance-analyzer-rca-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/performance-analyzer-rca-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/error_prone_annotations-2.3.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/error_prone_annotations-2.3.4.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/sqlite-jdbc-3.32.3.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/sqlite-jdbc-3.32.3.2.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/grpc-stub-1.28.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/grpc-stub-1.28.0.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/log4j-api-2.17.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/log4j-api-2.17.1.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/bcpkix-jdk15on-1.68.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/bcpkix-jdk15on-1.68.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/bcprov-jdk15on-1.68.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/bcprov-jdk15on-1.68.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/jackson-databind-2.11.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/jackson-databind-2.11.4.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/protobuf-java-3.11.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/protobuf-java-3.11.0.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/gson-2.8.6.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/gson-2.8.6.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/j2objc-annotations-1.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/j2objc-annotations-1.3.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/commons-lang3-3.9.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/commons-lang3-3.9.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/jsr305-3.0.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/jsr305-3.0.2.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/log4j-core-2.17.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/log4j-core-2.17.1.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/perfmark-api-0.19.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/perfmark-api-0.19.0.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/guava-28.2-jre.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/guava-28.2-jre.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/grpc-core-1.28.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/grpc-core-1.28.0.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/grpc-netty-shaded-1.28.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/grpc-netty-shaded-1.28.0.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/grpc-context-1.28.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/grpc-context-1.28.0.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/annotations-4.1.1.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/annotations-4.1.1.4.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/animal-sniffer-annotations-1.18.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/animal-sniffer-annotations-1.18.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/jackson-annotations-2.11.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/jackson-annotations-2.11.4.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/proto-google-common-protos-1.17.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/proto-google-common-protos-1.17.0.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/javax.annotation-api-1.3.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/javax.annotation-api-1.3.2.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/checker-qual-2.10.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/checker-qual-2.10.0.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/commons-io-2.7.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/commons-io-2.7.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/jooq-3.10.8.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/jooq-3.10.8.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/jackson-core-2.11.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/jackson-core-2.11.4.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/grpc-protobuf-1.28.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/grpc-protobuf-1.28.0.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/grpc-protobuf-lite-1.28.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/grpc-protobuf-lite-1.28.0.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/grpc-api-1.28.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/grpc-api-1.28.0.jar
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/lib/failureaccess-1.0.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/lib/failureaccess-1.0.1.jar
chmod 750 ${INSTALL_DIR}/performance-analyzer-rca/pa_bin/performance-analyzer-agent && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/pa_bin/performance-analyzer-agent
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/pa_config/agent-stats-metadata && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/pa_config/agent-stats-metadata
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/pa_config/plugin-stats-metadata && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/pa_config/plugin-stats-metadata
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/pa_config/performance-analyzer.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/pa_config/performance-analyzer.properties
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/pa_config/rca_master.conf && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/pa_config/rca_master.conf
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/pa_config/rca.conf && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/pa_config/rca.conf
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/pa_config/opensearch_security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/pa_config/opensearch_security.policy
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/pa_config/log4j2.xml && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/pa_config/log4j2.xml
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/pa_config/rca_idle_master.conf && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/pa_config/rca_idle_master.conf
chmod 640 ${INSTALL_DIR}/performance-analyzer-rca/pa_config/supervisord.conf && chown ${USER}:${GROUP} ${INSTALL_DIR}/performance-analyzer-rca/pa_config/supervisord.conf
chmod 750 ${INSTALL_DIR}/bin/opensearch-shard && chown ${USER}:${GROUP} ${INSTALL_DIR}/bin/opensearch-shard
chmod 750 ${INSTALL_DIR}/bin/opensearch-node && chown ${USER}:${GROUP} ${INSTALL_DIR}/bin/opensearch-node
chmod 750 ${INSTALL_DIR}/bin/opensearch-keystore && chown ${USER}:${GROUP} ${INSTALL_DIR}/bin/opensearch-keystore
chmod 750 ${INSTALL_DIR}/bin/opensearch-plugin && chown ${USER}:${GROUP} ${INSTALL_DIR}/bin/opensearch-plugin
chmod 750 ${INSTALL_DIR}/bin/opensearch && chown ${USER}:${GROUP} ${INSTALL_DIR}/bin/opensearch
chmod 750 ${INSTALL_DIR}/bin/opensearch-cli && chown ${USER}:${GROUP} ${INSTALL_DIR}/bin/opensearch-cli
chmod 750 ${INSTALL_DIR}/bin/opensearch-env && chown ${USER}:${GROUP} ${INSTALL_DIR}/bin/opensearch-env
chmod 750 ${INSTALL_DIR}/bin/performance-analyzer-agent-cli && chown ${USER}:${GROUP} ${INSTALL_DIR}/bin/performance-analyzer-agent-cli
chmod 750 ${INSTALL_DIR}/bin/opensearch-env-from-file && chown ${USER}:${GROUP} ${INSTALL_DIR}/bin/opensearch-env-from-file
chmod 750 ${INSTALL_DIR}/bin/opensearch-upgrade && chown ${USER}:${GROUP} ${INSTALL_DIR}/bin/opensearch-upgrade
chmod 750 ${INSTALL_DIR}/bin/systemd-entrypoint && chown ${USER}:${GROUP} ${INSTALL_DIR}/bin/systemd-entrypoint
chmod 640 ${INSTALL_DIR}/lib/hppc-0.8.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/hppc-0.8.1.jar
chmod 640 ${INSTALL_DIR}/lib/lucene-highlighter-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/lucene-highlighter-8.10.1.jar
chmod 640 ${INSTALL_DIR}/lib/opensearch-geo-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/opensearch-geo-1.2.4.jar
chmod 640 ${INSTALL_DIR}/lib/lucene-spatial-extras-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/lucene-spatial-extras-8.10.1.jar
chmod 640 ${INSTALL_DIR}/lib/opensearch-cli-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/opensearch-cli-1.2.4.jar
chmod 640 ${INSTALL_DIR}/lib/java-version-checker-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/java-version-checker-1.2.4.jar
chmod 640 ${INSTALL_DIR}/lib/lucene-memory-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/lucene-memory-8.10.1.jar
chmod 640 ${INSTALL_DIR}/lib/log4j-api-2.17.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/log4j-api-2.17.1.jar
chmod 640 ${INSTALL_DIR}/lib/lucene-analyzers-common-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/lucene-analyzers-common-8.10.1.jar
chmod 640 ${INSTALL_DIR}/lib/snakeyaml-1.26.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/snakeyaml-1.26.jar
chmod 640 ${INSTALL_DIR}/lib/joda-time-2.10.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/joda-time-2.10.4.jar
chmod 640 ${INSTALL_DIR}/lib/opensearch-x-content-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/opensearch-x-content-1.2.4.jar
chmod 640 ${INSTALL_DIR}/lib/lucene-join-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/lucene-join-8.10.1.jar
chmod 640 ${INSTALL_DIR}/lib/opensearch-plugin-classloader-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/opensearch-plugin-classloader-1.2.4.jar
chmod 640 ${INSTALL_DIR}/lib/jna-5.5.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/jna-5.5.0.jar
chmod 640 ${INSTALL_DIR}/lib/jackson-dataformat-smile-2.12.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/jackson-dataformat-smile-2.12.5.jar
chmod 640 ${INSTALL_DIR}/lib/log4j-core-2.17.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/log4j-core-2.17.1.jar
chmod 640 ${INSTALL_DIR}/lib/lucene-suggest-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/lucene-suggest-8.10.1.jar
chmod 640 ${INSTALL_DIR}/lib/opensearch-launchers-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/opensearch-launchers-1.2.4.jar
chmod 640 ${INSTALL_DIR}/lib/jackson-dataformat-yaml-2.12.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/jackson-dataformat-yaml-2.12.5.jar
chmod 640 ${INSTALL_DIR}/lib/HdrHistogram-2.1.9.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/HdrHistogram-2.1.9.jar
chmod 640 ${INSTALL_DIR}/lib/lucene-core-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/lucene-core-8.10.1.jar
chmod 640 ${INSTALL_DIR}/lib/lucene-queries-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/lucene-queries-8.10.1.jar
chmod 640 ${INSTALL_DIR}/lib/opensearch-secure-sm-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/opensearch-secure-sm-1.2.4.jar
chmod 640 ${INSTALL_DIR}/lib/tools/plugin-cli/bcpg-fips-1.0.5.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/tools/plugin-cli/bcpg-fips-1.0.5.1.jar
chmod 640 ${INSTALL_DIR}/lib/tools/plugin-cli/opensearch-plugin-cli-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/tools/plugin-cli/opensearch-plugin-cli-1.2.4.jar
chmod 640 ${INSTALL_DIR}/lib/tools/plugin-cli/bc-fips-1.0.2.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/tools/plugin-cli/bc-fips-1.0.2.1.jar
chmod 640 ${INSTALL_DIR}/lib/tools/upgrade-cli/jackson-annotations-2.12.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/tools/upgrade-cli/jackson-annotations-2.12.5.jar
chmod 640 ${INSTALL_DIR}/lib/tools/upgrade-cli/jackson-databind-2.12.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/tools/upgrade-cli/jackson-databind-2.12.5.jar
chmod 640 ${INSTALL_DIR}/lib/tools/upgrade-cli/jackson-core-2.12.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/tools/upgrade-cli/jackson-core-2.12.5.jar
chmod 640 ${INSTALL_DIR}/lib/tools/upgrade-cli/opensearch-upgrade-cli-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/tools/upgrade-cli/opensearch-upgrade-cli-1.2.4.jar
chmod 640 ${INSTALL_DIR}/lib/tools/keystore-cli/keystore-cli-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/tools/keystore-cli/keystore-cli-1.2.4.jar
chmod 640 ${INSTALL_DIR}/lib/lucene-queryparser-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/lucene-queryparser-8.10.1.jar
chmod 640 ${INSTALL_DIR}/lib/lucene-sandbox-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/lucene-sandbox-8.10.1.jar
chmod 640 ${INSTALL_DIR}/lib/jts-core-1.15.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/jts-core-1.15.0.jar
chmod 640 ${INSTALL_DIR}/lib/jackson-dataformat-cbor-2.12.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/jackson-dataformat-cbor-2.12.5.jar
chmod 640 ${INSTALL_DIR}/lib/opensearch-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/opensearch-1.2.4.jar
chmod 640 ${INSTALL_DIR}/lib/lucene-grouping-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/lucene-grouping-8.10.1.jar
chmod 640 ${INSTALL_DIR}/lib/lucene-misc-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/lucene-misc-8.10.1.jar
chmod 640 ${INSTALL_DIR}/lib/jackson-core-2.12.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/jackson-core-2.12.5.jar
chmod 640 ${INSTALL_DIR}/lib/t-digest-3.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/t-digest-3.2.jar
chmod 640 ${INSTALL_DIR}/lib/opensearch-core-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/opensearch-core-1.2.4.jar
chmod 640 ${INSTALL_DIR}/lib/lucene-backward-codecs-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/lucene-backward-codecs-8.10.1.jar
chmod 640 ${INSTALL_DIR}/lib/spatial4j-0.7.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/spatial4j-0.7.jar
chmod 640 ${INSTALL_DIR}/lib/jopt-simple-5.0.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/jopt-simple-5.0.2.jar
chmod 640 ${INSTALL_DIR}/lib/lucene-spatial3d-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/lib/lucene-spatial3d-8.10.1.jar
chmod 660 ${CONFIG_DIR}/opensearch-observability/observability.yml && chown ${USER}:${GROUP} ${CONFIG_DIR}/opensearch-observability/observability.yml
chmod 660 ${CONFIG_DIR}/opensearch-reports-scheduler/reports-scheduler.yml && chown ${USER}:${GROUP} ${CONFIG_DIR}/opensearch-reports-scheduler/reports-scheduler.yml
chmod 640 ${INSTALL_DIR}/NOTICE.txt && chown ${USER}:${GROUP} ${INSTALL_DIR}/NOTICE.txt
chmod 640 ${INSTALL_DIR}/LICENSE.txt && chown ${USER}:${GROUP} ${INSTALL_DIR}/LICENSE.txt
chmod 640 ${INSTALL_DIR}/plugins/opensearch-observability/opensearch-observability-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-observability/opensearch-observability-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-observability/common-utils-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-observability/common-utils-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-observability/kotlin-stdlib-1.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-observability/kotlin-stdlib-1.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-observability/annotations-13.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-observability/annotations-13.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-observability/kotlinx-coroutines-core-jvm-1.3.9.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-observability/kotlinx-coroutines-core-jvm-1.3.9.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-observability/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-observability/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/plugins/opensearch-observability/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-observability/plugin-security.policy
chmod 640 ${INSTALL_DIR}/plugins/opensearch-observability/kotlin-stdlib-common-1.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-observability/kotlin-stdlib-common-1.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-observability/guava-15.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-observability/guava-15.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/jsoup-1.14.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/jsoup-1.14.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/minimal-json-0.9.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/minimal-json-0.9.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/json-flattener-0.1.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/json-flattener-0.1.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/common-utils-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/common-utils-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/kotlin-stdlib-1.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/kotlin-stdlib-1.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/annotations-13.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/annotations-13.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/json-20180813.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/json-20180813.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/kotlinx-coroutines-core-jvm-1.3.9.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/kotlinx-coroutines-core-jvm-1.3.9.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/plugin-security.policy
chmod 640 ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/kotlin-stdlib-common-1.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/kotlin-stdlib-common-1.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/opensearch-reports-scheduler-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/opensearch-reports-scheduler-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/guava-15.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-reports-scheduler/guava-15.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/spring-beans-5.2.5.RELEASE.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/spring-beans-5.2.5.RELEASE.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/resilience4j-core-1.5.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/resilience4j-core-1.5.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/error_prone_annotations-2.3.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/error_prone_annotations-2.3.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/core-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/core-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/spring-expression-5.2.5.RELEASE.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/spring-expression-5.2.5.RELEASE.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/httpcore-nio-4.4.12.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/httpcore-nio-4.4.12.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/httpasyncclient-4.1.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/httpasyncclient-4.1.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/spring-aop-5.2.5.RELEASE.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/spring-aop-5.2.5.RELEASE.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/guava-29.0-jre.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/guava-29.0-jre.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/protocol-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/protocol-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/spring-context-5.2.5.RELEASE.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/spring-context-5.2.5.RELEASE.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/slf4j-api-1.7.30.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/slf4j-api-1.7.30.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/druid-1.0.15.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/druid-1.0.15.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/sql-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/sql-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/opensearch-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/opensearch-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/commons-lang3-3.10.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/commons-lang3-3.10.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/jackson-databind-2.11.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/jackson-databind-2.11.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/checker-qual-2.11.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/checker-qual-2.11.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/reindex-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/reindex-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/gson-2.8.9.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/gson-2.8.9.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/j2objc-annotations-1.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/j2objc-annotations-1.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/jsr305-3.0.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/jsr305-3.0.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/spring-core-5.2.5.RELEASE.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/spring-core-5.2.5.RELEASE.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/antlr4-runtime-4.7.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/antlr4-runtime-4.7.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/json-20180813.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/json-20180813.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/NOTICE.txt && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/NOTICE.txt
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/resilience4j-retry-1.5.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/resilience4j-retry-1.5.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/spring-jcl-5.2.5.RELEASE.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/spring-jcl-5.2.5.RELEASE.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/LICENSE.txt && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/LICENSE.txt
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/jackson-annotations-2.11.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/jackson-annotations-2.11.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/vavr-match-0.10.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/vavr-match-0.10.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/parent-join-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/parent-join-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/vavr-0.10.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/vavr-0.10.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/presto-matching-0.240.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/presto-matching-0.240.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/opensearch-rest-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/opensearch-rest-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/plugin-security.policy
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/httpclient-4.5.13.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/httpclient-4.5.13.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/legacy-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/legacy-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/opensearch-ssl-config-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/opensearch-ssl-config-1.2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/commons-codec-1.13.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/commons-codec-1.13.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/opensearch-sql-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/opensearch-sql-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/commons-math3-3.6.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/commons-math3-3.6.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/ppl-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/ppl-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/httpcore-4.4.12.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/httpcore-4.4.12.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/failureaccess-1.0.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/failureaccess-1.0.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-sql/common-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-sql/common-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/ipaddress-5.3.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/ipaddress-5.3.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/common-utils-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/common-utils-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/annotations-13.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/annotations-13.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/kotlinx-coroutines-core-1.3.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/kotlinx-coroutines-core-1.3.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/opensearch-cross-cluster-replication-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/opensearch-cross-cluster-replication-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/kotlin-stdlib-common-1.3.72.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/kotlin-stdlib-common-1.3.72.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/kotlin-stdlib-jdk7-1.3.72.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/kotlin-stdlib-jdk7-1.3.72.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/kotlin-stdlib-1.3.72.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/kotlin-stdlib-1.3.72.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/kotlin-stdlib-jdk8-1.3.72.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-cross-cluster-replication/kotlin-stdlib-jdk8-1.3.72.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/commons-lang-2.6.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/commons-lang-2.6.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/error_prone_annotations-2.3.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/error_prone_annotations-2.3.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/guava-29.0-jre.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/guava-29.0-jre.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/opensearch-knn-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/opensearch-knn-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/checker-qual-2.11.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/checker-qual-2.11.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/j2objc-annotations-1.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/j2objc-annotations-1.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/jsr305-3.0.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/jsr305-3.0.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/knnlib/libopensearchknn_common.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/knnlib/libopensearchknn_common.so
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/knnlib/libgomp.so.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/knnlib/libgomp.so.1
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/knnlib/libopensearchknn_nmslib.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/knnlib/libopensearchknn_nmslib.so
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/knnlib/libopensearchknn_faiss.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/knnlib/libopensearchknn_faiss.so
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/plugin-security.policy
chmod 640 ${INSTALL_DIR}/plugins/opensearch-knn/failureaccess-1.0.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-knn/failureaccess-1.0.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-index-management/ipaddress-5.3.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-index-management/ipaddress-5.3.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-index-management/common-utils-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-index-management/common-utils-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-index-management/kotlin-stdlib-1.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-index-management/kotlin-stdlib-1.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-index-management/annotations-13.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-index-management/annotations-13.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-index-management/kotlinx-coroutines-core-jvm-1.3.9.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-index-management/kotlinx-coroutines-core-jvm-1.3.9.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-index-management/notification-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-index-management/notification-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-index-management/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-index-management/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/plugins/opensearch-index-management/kotlin-stdlib-jdk8-1.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-index-management/kotlin-stdlib-jdk8-1.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-index-management/opensearch-index-management-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-index-management/opensearch-index-management-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-index-management/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-index-management/plugin-security.policy
chmod 640 ${INSTALL_DIR}/plugins/opensearch-index-management/kotlin-stdlib-common-1.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-index-management/kotlin-stdlib-common-1.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-index-management/kotlin-stdlib-jdk7-1.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-index-management/kotlin-stdlib-jdk7-1.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/error_prone_annotations-2.3.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/error_prone_annotations-2.3.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/sqlite-jdbc-3.32.3.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/sqlite-jdbc-3.32.3.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/grpc-stub-1.28.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/grpc-stub-1.28.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/bcpkix-jdk15on-1.68.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/bcpkix-jdk15on-1.68.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/bcprov-jdk15on-1.68.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/bcprov-jdk15on-1.68.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/jackson-databind-2.11.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/jackson-databind-2.11.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/protobuf-java-3.11.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/protobuf-java-3.11.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/paranamer-2.8.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/paranamer-2.8.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/jackson-module-paranamer-2.11.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/jackson-module-paranamer-2.11.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/gson-2.8.6.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/gson-2.8.6.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/j2objc-annotations-1.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/j2objc-annotations-1.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/commons-lang3-3.9.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/commons-lang3-3.9.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/jsr305-3.0.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/jsr305-3.0.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/perfmark-api-0.19.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/perfmark-api-0.19.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/opensearch-performance-analyzer-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/opensearch-performance-analyzer-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/guava-28.2-jre.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/guava-28.2-jre.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/grpc-core-1.28.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/grpc-core-1.28.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/grpc-netty-shaded-1.28.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/grpc-netty-shaded-1.28.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/grpc-context-1.28.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/grpc-context-1.28.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/annotations-4.1.1.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/annotations-4.1.1.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/animal-sniffer-annotations-1.18.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/animal-sniffer-annotations-1.18.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/jackson-annotations-2.11.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/jackson-annotations-2.11.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_bin/performance-analyzer-agent && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_bin/performance-analyzer-agent
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/performance-analyzer.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/performance-analyzer.properties
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/rca_master.conf && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/rca_master.conf
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/rca.conf && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/rca.conf
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/agent-stats-metadata && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/agent-stats-metadata
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/plugin-stats-metadata && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/plugin-stats-metadata
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/opensearch_security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/opensearch_security.policy
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/log4j2.xml && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/log4j2.xml
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/rca_idle_master.conf && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/rca_idle_master.conf
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/supervisord.conf && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/pa_config/supervisord.conf
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/performanceanalyzer-rca-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/performanceanalyzer-rca-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/proto-google-common-protos-1.17.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/proto-google-common-protos-1.17.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/plugin-security.policy
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/javax.annotation-api-1.3.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/javax.annotation-api-1.3.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/checker-qual-2.10.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/checker-qual-2.10.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/commons-io-2.7.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/commons-io-2.7.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/jooq-3.10.8.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/jooq-3.10.8.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/grpc-protobuf-1.28.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/grpc-protobuf-1.28.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/grpc-protobuf-lite-1.28.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/grpc-protobuf-lite-1.28.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/extensions/performance-analyzer-agent && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/extensions/performance-analyzer-agent
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/grpc-api-1.28.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/grpc-api-1.28.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/failureaccess-1.0.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-performance-analyzer/failureaccess-1.0.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-job-scheduler/opensearch-job-scheduler-spi-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-job-scheduler/opensearch-job-scheduler-spi-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-job-scheduler/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-job-scheduler/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/plugins/opensearch-job-scheduler/opensearch-job-scheduler-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-job-scheduler/opensearch-job-scheduler-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensaml-saml-api-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensaml-saml-api-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/commons-codec-1.14.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/commons-codec-1.14.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/java-saml-2.5.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/java-saml-2.5.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/slf4j-api-1.7.25.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/slf4j-api-1.7.25.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/minimal-json-0.9.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/minimal-json-0.9.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensaml-security-api-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensaml-security-api-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/jakarta.jws-api-2.1.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/jakarta.jws-api-2.1.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/netty-codec-4.1.72.Final.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/netty-codec-4.1.72.Final.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/jackson-databind-2.11.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/jackson-databind-2.11.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/jakarta.activation-1.2.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/jakarta.activation-1.2.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/commons-logging-1.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/commons-logging-1.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/json-path-2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/json-path-2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/aggs-matrix-stats-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/aggs-matrix-stats-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/httpcore-nio-4.4.12.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/httpcore-nio-4.4.12.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/httpasyncclient-4.1.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/httpasyncclient-4.1.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/lang-mustache-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/lang-mustache-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/bcprov-jdk15on-1.67.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/bcprov-jdk15on-1.67.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/json-flattener-0.5.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/json-flattener-0.5.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/cxf-rt-rs-json-basic-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/cxf-rt-rs-json-basic-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/snappy-java-1.1.7.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/snappy-java-1.1.7.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/netty-common-4.1.72.Final.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/netty-common-4.1.72.Final.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensaml-xmlsec-impl-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensaml-xmlsec-impl-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/txw2-2.3.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/txw2-2.3.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/cxf-core-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/cxf-core-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/jackson-annotations-2.11.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/jackson-annotations-2.11.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/metrics-core-3.1.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/metrics-core-3.1.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensaml-soap-impl-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensaml-soap-impl-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/j2objc-annotations-1.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/j2objc-annotations-1.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/jsr305-3.0.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/jsr305-3.0.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensaml-messaging-api-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensaml-messaging-api-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensaml-storage-api-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensaml-storage-api-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/commons-lang-2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/commons-lang-2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/mapper-extras-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/mapper-extras-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/jakarta.xml.bind-api-2.3.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/jakarta.xml.bind-api-2.3.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensaml-saml-impl-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensaml-saml-impl-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/java-saml-core-2.5.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/java-saml-core-2.5.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/cryptacular-1.1.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/cryptacular-1.1.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensaml-core-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensaml-core-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/commons-cli-1.3.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/commons-cli-1.3.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/jjwt-api-0.10.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/jjwt-api-0.10.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/log4j-slf4j-impl-2.17.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/log4j-slf4j-impl-2.17.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/commons-lang3-3.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/commons-lang3-3.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/lz4-java-1.7.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/lz4-java-1.7.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/rank-eval-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/rank-eval-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/ldaptive-1.2.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/ldaptive-1.2.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/jakarta.xml.soap-api-1.4.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/jakarta.xml.soap-api-1.4.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensearch-security-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensearch-security-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/jjwt-jackson-0.10.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/jjwt-jackson-0.10.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/whitelist.yml && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/whitelist.yml
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/tenants.yml && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/tenants.yml
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/nodes_dn.yml && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/nodes_dn.yml
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/audit.yml && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/audit.yml
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/action_groups.yml && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/action_groups.yml
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/config.yml && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/config.yml
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/roles_mapping.yml && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/roles_mapping.yml
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/roles.yml && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/roles.yml
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/opensearch.yml.example && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/opensearch.yml.example
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/internal_users.yml && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/securityconfig/internal_users.yml
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/woodstox-core-6.2.6.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/woodstox-core-6.2.6.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/eventbus-3.2.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/eventbus-3.2.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/istack-commons-runtime-3.0.12.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/istack-commons-runtime-3.0.12.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/asm-9.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/asm-9.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/parent-join-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/parent-join-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/jjwt-impl-0.10.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/jjwt-impl-0.10.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/json-smart-2.4.7.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/json-smart-2.4.7.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/xmlsec-2.2.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/xmlsec-2.2.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/tools/config.yml && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/tools/config.yml
chmod 740 ${INSTALL_DIR}/plugins/opensearch-security/tools/hash.sh && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/tools/hash.sh
chmod 740 ${INSTALL_DIR}/plugins/opensearch-security/tools/securityadmin.sh && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/tools/securityadmin.sh
chmod 740 ${INSTALL_DIR}/plugins/opensearch-security/tools/audit_config_migrater.sh && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/tools/audit_config_migrater.sh
chmod 740 ${INSTALL_DIR}/plugins/opensearch-security/tools/wazuh-cert-tool.sh && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/tools/wazuh-cert-tool.sh
chmod 740 ${INSTALL_DIR}/plugins/opensearch-security/tools/wazuh-passwords-tool.sh && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/tools/wazuh-passwords-tool.sh
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/jakarta.xml.ws-api-2.3.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/jakarta.xml.ws-api-2.3.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/xmlschema-core-2.2.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/xmlschema-core-2.2.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/httpclient-cache-4.5.13.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/httpclient-cache-4.5.13.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/velocity-1.7.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/velocity-1.7.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/error_prone_annotations-2.1.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/error_prone_annotations-2.1.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/netty-resolver-4.1.72.Final.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/netty-resolver-4.1.72.Final.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/transport-netty4-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/transport-netty4-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/animal-sniffer-annotations-1.14.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/animal-sniffer-annotations-1.14.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/stax-ex-1.8.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/stax-ex-1.8.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensearch-rest-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensearch-rest-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/compiler-0.9.6.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/compiler-0.9.6.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/plugin-security.policy
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/guava-25.1-jre.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/guava-25.1-jre.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensaml-xmlsec-api-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensaml-xmlsec-api-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/httpclient-4.5.13.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/httpclient-4.5.13.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/zjsonpatch-0.4.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/zjsonpatch-0.4.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/accessors-smart-2.4.7.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/accessors-smart-2.4.7.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensearch-rest-high-level-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensearch-rest-high-level-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/cxf-rt-security-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/cxf-rt-security-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/java-support-7.5.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/java-support-7.5.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/netty-transport-4.1.72.Final.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/netty-transport-4.1.72.Final.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/kafka-clients-2.5.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/kafka-clients-2.5.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/stax2-api-4.2.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/stax2-api-4.2.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/cxf-rt-rs-security-jose-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/cxf-rt-rs-security-jose-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensaml-profile-api-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensaml-profile-api-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/jaxb-runtime-2.3.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/jaxb-runtime-2.3.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensaml-security-impl-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensaml-security-impl-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/commons-collections-3.2.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/commons-collections-3.2.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/netty-buffer-4.1.72.Final.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/netty-buffer-4.1.72.Final.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/saaj-impl-1.5.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/saaj-impl-1.5.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/commons-text-1.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/commons-text-1.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/zstd-jni-1.4.4-7.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/zstd-jni-1.4.4-7.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/jakarta.annotation-api-1.3.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/jakarta.annotation-api-1.3.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/geronimo-jta_1.1_spec-1.1.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/geronimo-jta_1.1_spec-1.1.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/checker-qual-2.0.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/checker-qual-2.0.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/netty-codec-http-4.1.72.Final.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/netty-codec-http-4.1.72.Final.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/httpcore-4.4.12.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/httpcore-4.4.12.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/opensaml-soap-api-3.4.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/opensaml-soap-api-3.4.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-security/netty-handler-4.1.72.Final.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-security/netty-handler-4.1.72.Final.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-asynchronous-search/opensearch-asynchronous-search-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-asynchronous-search/opensearch-asynchronous-search-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-asynchronous-search/common-utils-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-asynchronous-search/common-utils-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-asynchronous-search/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-asynchronous-search/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/plugins/opensearch-asynchronous-search/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-asynchronous-search/plugin-security.policy
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/commons-lang3-3.12.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/commons-lang3-3.12.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/commons-lang-2.6.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/commons-lang-2.6.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/org.jacoco.report-0.8.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/org.jacoco.report-0.8.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/slf4j-api-1.7.25.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/slf4j-api-1.7.25.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/error_prone_annotations-2.3.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/error_prone_annotations-2.3.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/httpcore-nio-4.4.12.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/httpcore-nio-4.4.12.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/httpasyncclient-4.1.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/httpasyncclient-4.1.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/guava-29.0-jre.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/guava-29.0-jre.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/randomcutforest-core-2.0.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/randomcutforest-core-2.0.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/randomcutforest-serialization-2.0.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/randomcutforest-serialization-2.0.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/jackson-databind-2.11.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/jackson-databind-2.11.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/checker-qual-2.11.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/checker-qual-2.11.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/randomcutforest-parkservices-2.0.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/randomcutforest-parkservices-2.0.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/gson-2.8.9.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/gson-2.8.9.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/protostuff-collectionschema-1.7.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/protostuff-collectionschema-1.7.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/j2objc-annotations-1.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/j2objc-annotations-1.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/common-utils-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/common-utils-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/opensearch-anomaly-detection-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/opensearch-anomaly-detection-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/jsr305-3.0.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/jsr305-3.0.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/org.jacoco.ant-0.8.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/org.jacoco.ant-0.8.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/commons-pool2-2.10.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/commons-pool2-2.10.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/sketches-core-0.13.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/sketches-core-0.13.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/org.jacoco.core-0.8.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/org.jacoco.core-0.8.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/org.jacoco.agent-0.8.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/org.jacoco.agent-0.8.5.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/protostuff-api-1.7.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/protostuff-api-1.7.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/memory-0.12.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/memory-0.12.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/jackson-annotations-2.11.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/jackson-annotations-2.11.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/protostuff-runtime-1.7.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/protostuff-runtime-1.7.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/protostuff-core-1.7.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/protostuff-core-1.7.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/commons-logging-1.1.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/commons-logging-1.1.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/opensearch-rest-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/opensearch-rest-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/plugin-security.policy
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/httpclient-4.5.13.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/httpclient-4.5.13.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/commons-codec-1.13.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/commons-codec-1.13.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/commons-math3-3.6.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/commons-math3-3.6.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/httpcore-4.4.12.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/httpcore-4.4.12.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/failureaccess-1.0.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-anomaly-detection/failureaccess-1.0.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/error_prone_annotations-2.3.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/error_prone_annotations-2.3.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/httpcore-nio-4.4.12.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/httpcore-nio-4.4.12.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/httpasyncclient-4.1.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/httpasyncclient-4.1.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/cron-utils-9.1.6.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/cron-utils-9.1.6.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/javax.mail-1.6.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/javax.mail-1.6.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/slf4j-api-1.7.30.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/slf4j-api-1.7.30.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/ipaddress-5.3.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/ipaddress-5.3.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/j2objc-annotations-1.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/j2objc-annotations-1.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/common-utils-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/common-utils-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/jsr305-3.0.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/jsr305-3.0.2.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/javax.el-3.0.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/javax.el-3.0.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/javassist-3.27.0-GA.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/javassist-3.27.0-GA.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/kotlinx-coroutines-core-1.1.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/kotlinx-coroutines-core-1.1.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/annotations-13.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/annotations-13.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/guava-30.0-jre.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/guava-30.0-jre.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/activation-1.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/activation-1.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/alerting-core-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/alerting-core-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/google-java-format-1.10.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/google-java-format-1.10.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/alerting-notification-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/alerting-notification-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/kotlin-stdlib-common-1.3.72.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/kotlin-stdlib-common-1.3.72.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/commons-logging-1.1.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/commons-logging-1.1.3.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/kotlin-stdlib-jdk7-1.3.72.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/kotlin-stdlib-jdk7-1.3.72.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/checker-qual-3.5.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/checker-qual-3.5.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/opensearch-rest-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/opensearch-rest-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/plugin-security.policy
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/httpclient-4.5.13.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/httpclient-4.5.13.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/opensearch-alerting-1.2.4.0.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/opensearch-alerting-1.2.4.0.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/kotlinx-coroutines-core-common-1.1.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/kotlinx-coroutines-core-common-1.1.1.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/kotlin-stdlib-1.3.72.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/kotlin-stdlib-1.3.72.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/commons-codec-1.13.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/commons-codec-1.13.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/kotlin-stdlib-jdk8-1.3.72.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/kotlin-stdlib-jdk8-1.3.72.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/httpcore-4.4.12.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/httpcore-4.4.12.jar
chmod 640 ${INSTALL_DIR}/plugins/opensearch-alerting/failureaccess-1.0.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/plugins/opensearch-alerting/failureaccess-1.0.1.jar
chmod 640 ${INSTALL_DIR}/modules/ingest-common/jcodings-1.0.44.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-common/jcodings-1.0.44.jar
chmod 640 ${INSTALL_DIR}/modules/ingest-common/joni-2.1.29.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-common/joni-2.1.29.jar
chmod 640 ${INSTALL_DIR}/modules/ingest-common/opensearch-grok-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-common/opensearch-grok-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/ingest-common/opensearch-dissect-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-common/opensearch-dissect-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/ingest-common/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-common/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/ingest-common/ingest-common-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-common/ingest-common-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/geo/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/geo/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/geo/geo-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/geo/geo-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/ingest-geoip/GeoLite2-Country.mmdb && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-geoip/GeoLite2-Country.mmdb
chmod 640 ${INSTALL_DIR}/modules/ingest-geoip/GeoLite2-City.mmdb && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-geoip/GeoLite2-City.mmdb
chmod 640 ${INSTALL_DIR}/modules/ingest-geoip/geoip2-2.13.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-geoip/geoip2-2.13.1.jar
chmod 640 ${INSTALL_DIR}/modules/ingest-geoip/maxmind-db-1.3.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-geoip/maxmind-db-1.3.1.jar
chmod 640 ${INSTALL_DIR}/modules/ingest-geoip/jackson-annotations-2.12.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-geoip/jackson-annotations-2.12.5.jar
chmod 640 ${INSTALL_DIR}/modules/ingest-geoip/jackson-databind-2.12.5.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-geoip/jackson-databind-2.12.5.jar
chmod 640 ${INSTALL_DIR}/modules/ingest-geoip/ingest-geoip-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-geoip/ingest-geoip-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/ingest-geoip/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-geoip/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/ingest-geoip/GeoLite2-ASN.mmdb && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-geoip/GeoLite2-ASN.mmdb
chmod 640 ${INSTALL_DIR}/modules/ingest-geoip/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-geoip/plugin-security.policy
chmod 640 ${INSTALL_DIR}/modules/percolator/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/percolator/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/percolator/percolator-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/percolator/percolator-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/analysis-common/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/analysis-common/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/analysis-common/analysis-common-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/analysis-common/analysis-common-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/aggs-matrix-stats/aggs-matrix-stats-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/aggs-matrix-stats/aggs-matrix-stats-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/aggs-matrix-stats/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/aggs-matrix-stats/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/repository-url/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/repository-url/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/repository-url/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/repository-url/plugin-security.policy
chmod 640 ${INSTALL_DIR}/modules/repository-url/repository-url-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/repository-url/repository-url-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/lang-mustache/lang-mustache-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-mustache/lang-mustache-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/lang-mustache/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-mustache/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/lang-mustache/compiler-0.9.6.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-mustache/compiler-0.9.6.jar
chmod 640 ${INSTALL_DIR}/modules/lang-mustache/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-mustache/plugin-security.policy
chmod 640 ${INSTALL_DIR}/modules/systemd/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/systemd/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/systemd/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/systemd/plugin-security.policy
chmod 640 ${INSTALL_DIR}/modules/systemd/systemd-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/systemd/systemd-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/transport-netty4/netty-codec-4.1.72.Final.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/transport-netty4/netty-codec-4.1.72.Final.jar
chmod 640 ${INSTALL_DIR}/modules/transport-netty4/netty-common-4.1.72.Final.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/transport-netty4/netty-common-4.1.72.Final.jar
chmod 640 ${INSTALL_DIR}/modules/transport-netty4/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/transport-netty4/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/transport-netty4/netty-resolver-4.1.72.Final.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/transport-netty4/netty-resolver-4.1.72.Final.jar
chmod 640 ${INSTALL_DIR}/modules/transport-netty4/transport-netty4-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/transport-netty4/transport-netty4-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/transport-netty4/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/transport-netty4/plugin-security.policy
chmod 640 ${INSTALL_DIR}/modules/transport-netty4/netty-transport-4.1.72.Final.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/transport-netty4/netty-transport-4.1.72.Final.jar
chmod 640 ${INSTALL_DIR}/modules/transport-netty4/netty-buffer-4.1.72.Final.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/transport-netty4/netty-buffer-4.1.72.Final.jar
chmod 640 ${INSTALL_DIR}/modules/transport-netty4/netty-codec-http-4.1.72.Final.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/transport-netty4/netty-codec-http-4.1.72.Final.jar
chmod 640 ${INSTALL_DIR}/modules/transport-netty4/netty-handler-4.1.72.Final.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/transport-netty4/netty-handler-4.1.72.Final.jar
chmod 640 ${INSTALL_DIR}/modules/lang-expression/lucene-expressions-8.10.1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-expression/lucene-expressions-8.10.1.jar
chmod 640 ${INSTALL_DIR}/modules/lang-expression/lang-expression-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-expression/lang-expression-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/lang-expression/antlr4-runtime-4.5.1-1.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-expression/antlr4-runtime-4.5.1-1.jar
chmod 640 ${INSTALL_DIR}/modules/lang-expression/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-expression/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/lang-expression/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-expression/plugin-security.policy
chmod 640 ${INSTALL_DIR}/modules/lang-expression/asm-5.0.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-expression/asm-5.0.4.jar
chmod 640 ${INSTALL_DIR}/modules/lang-expression/asm-commons-5.0.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-expression/asm-commons-5.0.4.jar
chmod 640 ${INSTALL_DIR}/modules/lang-expression/asm-tree-5.0.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-expression/asm-tree-5.0.4.jar
chmod 640 ${INSTALL_DIR}/modules/lang-painless/asm-7.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-painless/asm-7.2.jar
chmod 640 ${INSTALL_DIR}/modules/lang-painless/antlr4-runtime-4.5.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-painless/antlr4-runtime-4.5.3.jar
chmod 640 ${INSTALL_DIR}/modules/lang-painless/asm-tree-7.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-painless/asm-tree-7.2.jar
chmod 640 ${INSTALL_DIR}/modules/lang-painless/asm-util-7.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-painless/asm-util-7.2.jar
chmod 640 ${INSTALL_DIR}/modules/lang-painless/asm-analysis-7.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-painless/asm-analysis-7.2.jar
chmod 640 ${INSTALL_DIR}/modules/lang-painless/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-painless/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/lang-painless/asm-commons-7.2.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-painless/asm-commons-7.2.jar
chmod 640 ${INSTALL_DIR}/modules/lang-painless/lang-painless-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-painless/lang-painless-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/lang-painless/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-painless/plugin-security.policy
chmod 640 ${INSTALL_DIR}/modules/lang-painless/opensearch-scripting-painless-spi-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/lang-painless/opensearch-scripting-painless-spi-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/rank-eval/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/rank-eval/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/rank-eval/rank-eval-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/rank-eval/rank-eval-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/opensearch-dashboards/httpcore-nio-4.4.12.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/opensearch-dashboards/httpcore-nio-4.4.12.jar
chmod 640 ${INSTALL_DIR}/modules/opensearch-dashboards/httpasyncclient-4.1.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/opensearch-dashboards/httpasyncclient-4.1.4.jar
chmod 640 ${INSTALL_DIR}/modules/opensearch-dashboards/reindex-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/opensearch-dashboards/reindex-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/opensearch-dashboards/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/opensearch-dashboards/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/opensearch-dashboards/commons-logging-1.1.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/opensearch-dashboards/commons-logging-1.1.3.jar
chmod 640 ${INSTALL_DIR}/modules/opensearch-dashboards/opensearch-rest-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/opensearch-dashboards/opensearch-rest-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/opensearch-dashboards/httpclient-4.5.13.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/opensearch-dashboards/httpclient-4.5.13.jar
chmod 640 ${INSTALL_DIR}/modules/opensearch-dashboards/opensearch-dashboards-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/opensearch-dashboards/opensearch-dashboards-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/opensearch-dashboards/opensearch-ssl-config-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/opensearch-dashboards/opensearch-ssl-config-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/opensearch-dashboards/commons-codec-1.13.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/opensearch-dashboards/commons-codec-1.13.jar
chmod 640 ${INSTALL_DIR}/modules/opensearch-dashboards/httpcore-4.4.12.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/opensearch-dashboards/httpcore-4.4.12.jar
chmod 640 ${INSTALL_DIR}/modules/ingest-user-agent/ingest-user-agent-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-user-agent/ingest-user-agent-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/ingest-user-agent/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/ingest-user-agent/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/mapper-extras/mapper-extras-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/mapper-extras/mapper-extras-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/mapper-extras/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/mapper-extras/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/parent-join/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/parent-join/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/parent-join/parent-join-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/parent-join/parent-join-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/reindex/httpcore-nio-4.4.12.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/reindex/httpcore-nio-4.4.12.jar
chmod 640 ${INSTALL_DIR}/modules/reindex/httpasyncclient-4.1.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/reindex/httpasyncclient-4.1.4.jar
chmod 640 ${INSTALL_DIR}/modules/reindex/reindex-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/reindex/reindex-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/reindex/plugin-descriptor.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/reindex/plugin-descriptor.properties
chmod 640 ${INSTALL_DIR}/modules/reindex/commons-logging-1.1.3.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/reindex/commons-logging-1.1.3.jar
chmod 640 ${INSTALL_DIR}/modules/reindex/opensearch-rest-client-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/reindex/opensearch-rest-client-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/reindex/plugin-security.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/reindex/plugin-security.policy
chmod 640 ${INSTALL_DIR}/modules/reindex/httpclient-4.5.13.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/reindex/httpclient-4.5.13.jar
chmod 640 ${INSTALL_DIR}/modules/reindex/opensearch-ssl-config-1.2.4.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/reindex/opensearch-ssl-config-1.2.4.jar
chmod 640 ${INSTALL_DIR}/modules/reindex/commons-codec-1.13.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/reindex/commons-codec-1.13.jar
chmod 640 ${INSTALL_DIR}/modules/reindex/httpcore-4.4.12.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/modules/reindex/httpcore-4.4.12.jar
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jrunscript.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jrunscript.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jcmd.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jcmd.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/java.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/java.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jdeprscan.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jdeprscan.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/javadoc.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/javadoc.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/rmid.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/rmid.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jar.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jar.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jdb.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jdb.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jpackage.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jpackage.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jstatd.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jstatd.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/serialver.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/serialver.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/keytool.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/keytool.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jconsole.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jconsole.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jlink.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jlink.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jhsdb.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jhsdb.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jaotc.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jaotc.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jshell.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jshell.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/rmiregistry.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/rmiregistry.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/javac.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/javac.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jstack.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jstack.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jfr.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jfr.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jps.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jps.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jarsigner.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jarsigner.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jmod.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jmod.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jstat.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jstat.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jinfo.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jinfo.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jmap.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jmap.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/jdeps.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/jdeps.1
chmod 640 ${INSTALL_DIR}/jdk/man/man1/javap.1 && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/man/man1/javap.1
chmod 750 ${INSTALL_DIR}/jdk/bin/jdeps && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jdeps
chmod 750 ${INSTALL_DIR}/jdk/bin/rmiregistry && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/rmiregistry
chmod 750 ${INSTALL_DIR}/jdk/bin/jrunscript && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jrunscript
chmod 750 ${INSTALL_DIR}/jdk/bin/jdeprscan && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jdeprscan
chmod 750 ${INSTALL_DIR}/jdk/bin/jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jar
chmod 750 ${INSTALL_DIR}/jdk/bin/jmap && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jmap
chmod 750 ${INSTALL_DIR}/jdk/bin/jps && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jps
chmod 750 ${INSTALL_DIR}/jdk/bin/jstatd && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jstatd
chmod 750 ${INSTALL_DIR}/jdk/bin/rmid && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/rmid
chmod 750 ${INSTALL_DIR}/jdk/bin/java && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/java
chmod 750 ${INSTALL_DIR}/jdk/bin/jdb && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jdb
chmod 750 ${INSTALL_DIR}/jdk/bin/jimage && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jimage
chmod 750 ${INSTALL_DIR}/jdk/bin/javadoc && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/javadoc
chmod 750 ${INSTALL_DIR}/jdk/bin/jconsole && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jconsole
chmod 750 ${INSTALL_DIR}/jdk/bin/jcmd && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jcmd
chmod 750 ${INSTALL_DIR}/jdk/bin/jstack && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jstack
chmod 750 ${INSTALL_DIR}/jdk/bin/jinfo && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jinfo
chmod 750 ${INSTALL_DIR}/jdk/bin/jpackage && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jpackage
chmod 750 ${INSTALL_DIR}/jdk/bin/serialver && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/serialver
chmod 750 ${INSTALL_DIR}/jdk/bin/javap && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/javap
chmod 750 ${INSTALL_DIR}/jdk/bin/keytool && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/keytool
chmod 750 ${INSTALL_DIR}/jdk/bin/jaotc && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jaotc
chmod 750 ${INSTALL_DIR}/jdk/bin/jarsigner && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jarsigner
chmod 750 ${INSTALL_DIR}/jdk/bin/jhsdb && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jhsdb
chmod 750 ${INSTALL_DIR}/jdk/bin/jlink && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jlink
chmod 750 ${INSTALL_DIR}/jdk/bin/jfr && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jfr
chmod 750 ${INSTALL_DIR}/jdk/bin/jstat && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jstat
chmod 750 ${INSTALL_DIR}/jdk/bin/javac && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/javac
chmod 750 ${INSTALL_DIR}/jdk/bin/jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jmod
chmod 750 ${INSTALL_DIR}/jdk/bin/jshell && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/bin/jshell
chmod 640 ${INSTALL_DIR}/jdk/release && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/release
chmod 640 ${INSTALL_DIR}/jdk/legal/java.base/LICENSE && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.base/LICENSE
chmod 640 ${INSTALL_DIR}/jdk/legal/java.base/ADDITIONAL_LICENSE_INFO && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.base/ADDITIONAL_LICENSE_INFO
chmod 640 ${INSTALL_DIR}/jdk/legal/java.base/icu.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.base/icu.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.base/c-libutl.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.base/c-libutl.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.base/public_suffix.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.base/public_suffix.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.base/cldr.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.base/cldr.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.base/aes.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.base/aes.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.base/ASSEMBLY_EXCEPTION && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.base/ASSEMBLY_EXCEPTION
chmod 640 ${INSTALL_DIR}/jdk/legal/java.base/asm.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.base/asm.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.base/unicode.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.base/unicode.md
chmod 640 ${INSTALL_DIR}/jdk/legal/jdk.dynalink/dynalink.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/jdk.dynalink/dynalink.md
chmod 640 ${INSTALL_DIR}/jdk/legal/jdk.javadoc/jqueryUI.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/jdk.javadoc/jqueryUI.md
chmod 640 ${INSTALL_DIR}/jdk/legal/jdk.javadoc/jquery.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/jdk.javadoc/jquery.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.xml/xalan.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.xml/xalan.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.xml/xerces.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.xml/xerces.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.xml/jcup.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.xml/jcup.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.xml/bcel.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.xml/bcel.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.xml/dom.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.xml/dom.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.smartcardio/pcsclite.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.smartcardio/pcsclite.md
chmod 640 ${INSTALL_DIR}/jdk/legal/jdk.internal.opt/jopt-simple.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/jdk.internal.opt/jopt-simple.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.xml.crypto/santuario.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.xml.crypto/santuario.md
chmod 640 ${INSTALL_DIR}/jdk/legal/jdk.localedata/thaidict.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/jdk.localedata/thaidict.md
chmod 640 ${INSTALL_DIR}/jdk/legal/jdk.internal.le/jline.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/jdk.internal.le/jline.md
chmod 640 ${INSTALL_DIR}/jdk/legal/jdk.crypto.cryptoki/pkcs11cryptotoken.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/jdk.crypto.cryptoki/pkcs11cryptotoken.md
chmod 640 ${INSTALL_DIR}/jdk/legal/jdk.crypto.cryptoki/pkcs11wrapper.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/jdk.crypto.cryptoki/pkcs11wrapper.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.desktop/xwd.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.desktop/xwd.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.desktop/mesa3d.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.desktop/mesa3d.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.desktop/harfbuzz.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.desktop/harfbuzz.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.desktop/lcms.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.desktop/lcms.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.desktop/freetype.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.desktop/freetype.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.desktop/giflib.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.desktop/giflib.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.desktop/jpeg.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.desktop/jpeg.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.desktop/colorimaging.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.desktop/colorimaging.md
chmod 640 ${INSTALL_DIR}/jdk/legal/java.desktop/libpng.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/java.desktop/libpng.md
chmod 640 ${INSTALL_DIR}/jdk/legal/jdk.crypto.ec/ecc.md && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/legal/jdk.crypto.ec/ecc.md
chmod 640 ${INSTALL_DIR}/jdk/lib/server/libjsig.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/server/libjsig.so
chmod 640 ${INSTALL_DIR}/jdk/lib/server/classes.jsa && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/server/classes.jsa
chmod 640 ${INSTALL_DIR}/jdk/lib/server/classes_nocoops.jsa && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/server/classes_nocoops.jsa
chmod 640 ${INSTALL_DIR}/jdk/lib/server/libjvm.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/server/libjvm.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libawt.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libawt.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libawt_headless.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libawt_headless.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libsplashscreen.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libsplashscreen.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libnio.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libnio.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libjdwp.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libjdwp.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libj2pcsc.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libj2pcsc.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libjli.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libjli.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libsctp.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libsctp.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libjimage.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libjimage.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libjsig.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libjsig.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libjava.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libjava.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libsunec.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libsunec.so
chmod 640 ${INSTALL_DIR}/jdk/lib/liblcms.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/liblcms.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libawt_xawt.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libawt_xawt.so
chmod 640 ${INSTALL_DIR}/jdk/lib/jexec && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/jexec
chmod 640 ${INSTALL_DIR}/jdk/lib/libverify.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libverify.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libmanagement_agent.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libmanagement_agent.so
chmod 640 ${INSTALL_DIR}/jdk/lib/psfont.properties.ja && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/psfont.properties.ja
chmod 640 ${INSTALL_DIR}/jdk/lib/libprefs.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libprefs.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libzip.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libzip.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libjaas.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libjaas.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libjsound.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libjsound.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libextnet.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libextnet.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libj2gss.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libj2gss.so
chmod 640 ${INSTALL_DIR}/jdk/lib/tzdb.dat && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/tzdb.dat
chmod 640 ${INSTALL_DIR}/jdk/lib/libdt_socket.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libdt_socket.so
chmod 640 ${INSTALL_DIR}/jdk/lib/psfontj2d.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/psfontj2d.properties
chmod 640 ${INSTALL_DIR}/jdk/lib/jvm.cfg && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/jvm.cfg
chmod 640 ${INSTALL_DIR}/jdk/lib/ct.sym && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/ct.sym
chmod 640 ${INSTALL_DIR}/jdk/lib/libj2pkcs11.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libj2pkcs11.so
chmod 640 ${INSTALL_DIR}/jdk/lib/jfr/default.jfc && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/jfr/default.jfc
chmod 640 ${INSTALL_DIR}/jdk/lib/jfr/profile.jfc && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/jfr/profile.jfc
chmod 640 ${INSTALL_DIR}/jdk/lib/libmanagement_ext.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libmanagement_ext.so
chmod 640 ${INSTALL_DIR}/jdk/lib/classlist && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/classlist
chmod 640 ${INSTALL_DIR}/jdk/lib/libnet.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libnet.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libjavajpeg.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libjavajpeg.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libfontmanager.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libfontmanager.so
chmod 640 ${INSTALL_DIR}/jdk/lib/modules && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/modules
chmod 640 ${INSTALL_DIR}/jdk/lib/libinstrument.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libinstrument.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libmanagement.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libmanagement.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libjawt.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libjawt.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libsaproc.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libsaproc.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libmlib_image.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libmlib_image.so
chmod 640 ${INSTALL_DIR}/jdk/lib/security/cacerts && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/security/cacerts
chmod 640 ${INSTALL_DIR}/jdk/lib/security/blacklisted.certs && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/security/blacklisted.certs
chmod 640 ${INSTALL_DIR}/jdk/lib/security/public_suffix_list.dat && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/security/public_suffix_list.dat
chmod 640 ${INSTALL_DIR}/jdk/lib/security/default.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/security/default.policy
chmod 640 ${INSTALL_DIR}/jdk/lib/librmi.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/librmi.so
chmod 750 ${INSTALL_DIR}/jdk/lib/jspawnhelper && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/jspawnhelper
chmod 640 ${INSTALL_DIR}/jdk/lib/jrt-fs.jar && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/jrt-fs.jar
chmod 640 ${INSTALL_DIR}/jdk/lib/libattach.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libattach.so
chmod 640 ${INSTALL_DIR}/jdk/lib/libfreetype.so && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/lib/libfreetype.so
chmod 640 ${INSTALL_DIR}/jdk/include/jvmti.h && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/include/jvmti.h
chmod 640 ${INSTALL_DIR}/jdk/include/classfile_constants.h && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/include/classfile_constants.h
chmod 640 ${INSTALL_DIR}/jdk/include/jdwpTransport.h && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/include/jdwpTransport.h
chmod 640 ${INSTALL_DIR}/jdk/include/jawt.h && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/include/jawt.h
chmod 640 ${INSTALL_DIR}/jdk/include/jni.h && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/include/jni.h
chmod 640 ${INSTALL_DIR}/jdk/include/jvmticmlr.h && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/include/jvmticmlr.h
chmod 640 ${INSTALL_DIR}/jdk/include/linux/jawt_md.h && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/include/linux/jawt_md.h
chmod 640 ${INSTALL_DIR}/jdk/include/linux/jni_md.h && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/include/linux/jni_md.h
chmod 640 ${INSTALL_DIR}/jdk/conf/net.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/net.properties
chmod 640 ${INSTALL_DIR}/jdk/conf/sound.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/sound.properties
chmod 640 ${INSTALL_DIR}/jdk/conf/sdp/sdp.conf.template && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/sdp/sdp.conf.template
chmod 640 ${INSTALL_DIR}/jdk/conf/management/management.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/management/management.properties
chmod 640 ${INSTALL_DIR}/jdk/conf/management/jmxremote.access && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/management/jmxremote.access
chmod 640 ${INSTALL_DIR}/jdk/conf/management/jmxremote.password.template && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/management/jmxremote.password.template
chmod 640 ${INSTALL_DIR}/jdk/conf/logging.properties && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/logging.properties
chmod 640 ${INSTALL_DIR}/jdk/conf/security/java.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/security/java.policy
chmod 640 ${INSTALL_DIR}/jdk/conf/security/policy/limited/default_US_export.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/security/policy/limited/default_US_export.policy
chmod 640 ${INSTALL_DIR}/jdk/conf/security/policy/limited/exempt_local.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/security/policy/limited/exempt_local.policy
chmod 640 ${INSTALL_DIR}/jdk/conf/security/policy/limited/default_local.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/security/policy/limited/default_local.policy
chmod 640 ${INSTALL_DIR}/jdk/conf/security/policy/unlimited/default_US_export.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/security/policy/unlimited/default_US_export.policy
chmod 640 ${INSTALL_DIR}/jdk/conf/security/policy/unlimited/default_local.policy && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/security/policy/unlimited/default_local.policy
chmod 640 ${INSTALL_DIR}/jdk/conf/security/policy/README.txt && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/security/policy/README.txt
chmod 640 ${INSTALL_DIR}/jdk/conf/security/java.security && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/conf/security/java.security
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.unsupported.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.unsupported.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.transaction.xa.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.transaction.xa.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.crypto.cryptoki.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.crypto.cryptoki.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.rmi.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.rmi.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.attach.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.attach.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.jshell.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.jshell.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.xml.dom.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.xml.dom.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.se.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.se.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.internal.ed.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.internal.ed.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.jartool.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.jartool.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.compiler.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.compiler.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.base.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.base.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.smartcardio.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.smartcardio.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.security.auth.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.security.auth.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.unsupported.desktop.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.unsupported.desktop.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.security.sasl.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.security.sasl.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.incubator.foreign.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.incubator.foreign.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.management.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.management.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.management.agent.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.management.agent.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.xml.crypto.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.xml.crypto.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.internal.vm.ci.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.internal.vm.ci.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.prefs.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.prefs.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.crypto.ec.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.crypto.ec.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.internal.jvmstat.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.internal.jvmstat.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.sql.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.sql.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.incubator.jpackage.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.incubator.jpackage.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.xml.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.xml.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.security.jgss.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.security.jgss.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.compiler.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.compiler.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.sctp.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.sctp.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.charsets.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.charsets.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.management.jfr.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.management.jfr.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.jlink.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.jlink.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.localedata.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.localedata.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.jsobject.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.jsobject.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.net.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.net.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.hotspot.agent.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.hotspot.agent.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.jstatd.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.jstatd.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.dynalink.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.dynalink.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.jfr.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.jfr.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.naming.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.naming.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.internal.le.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.internal.le.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.jcmd.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.jcmd.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.management.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.management.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.net.http.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.net.http.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.logging.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.logging.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.accessibility.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.accessibility.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.internal.opt.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.internal.opt.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.management.rmi.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.management.rmi.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.security.jgss.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.security.jgss.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.desktop.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.desktop.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.nio.mapmode.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.nio.mapmode.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.internal.vm.compiler.management.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.internal.vm.compiler.management.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.jdwp.agent.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.jdwp.agent.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.jdi.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.jdi.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.javadoc.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.javadoc.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.naming.rmi.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.naming.rmi.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.naming.dns.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.naming.dns.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.editpad.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.editpad.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.jdeps.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.jdeps.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.internal.vm.compiler.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.internal.vm.compiler.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.sql.rowset.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.sql.rowset.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.scripting.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.scripting.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.datatransfer.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.datatransfer.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.httpserver.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.httpserver.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.zipfs.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.zipfs.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.aot.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.aot.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/jdk.jconsole.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/jdk.jconsole.jmod
chmod 640 ${INSTALL_DIR}/jdk/jmods/java.instrument.jmod && chown ${USER}:${GROUP} ${INSTALL_DIR}/jdk/jmods/java.instrument.jmod

View File

@@ -5,38 +5,53 @@
# Start Wazuh indexer
##############################################################################
export USER=wazuh-indexer
export OPENSEARCH_PATH_CONF=/etc/wazuh-indexer
export INSTALLATION_DIR=/usr/share/wazuh-indexer
export JAVA_HOME=${INSTALLATION_DIR}/jdk
export FILE=${INSTALLATION_DIR}/start
service wazuh-indexer start
sleep 5
service wazuh-indexer status
sleep 5
if [ $NODE_TYPE == "worker" ]
then
echo "inicio ver node_type"
echo $NODE_TYPE
echo "fin ver node_type"
rm -rf /var/lib/wazuh-indexer/*
else
echo "inicio ver hostname"
echo $HOSTNAME
sleep 1
echo "fin ver hostname"
echo "inicio ver node_type"
echo $NODE_TYPE
sleep 1
echo "fin ver node_type"
export OPENSEARCH_PATH_CONF=/etc/wazuh-indexer
export JAVA_HOME=/usr/share/wazuh-indexer/jdk
/usr/share/wazuh-indexer/plugins/opensearch-security/tools/securityadmin.sh -cd /usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig -icl -p 9800 -cd /usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig -nhnv -cacert /etc/wazuh-indexer/certs/root-ca.pem -cert /etc/wazuh-indexer/certs/admin.pem -key /etc/wazuh-indexer/certs/admin-key.pem
cat /var/log/wazuh-indexer/opensearch.log
if [ -f $FILE ]
then
echo "second or more start"
else
if [ $NODE_TYPE == "worker" ]
then
echo "node_type start"
echo $NODE_TYPE
echo "node_type end"
rm -rf /var/lib/wazuh-indexer/*
sleep 70
echo "worker restart"
touch $FILE
else
echo "hostname start"
echo $HOSTNAME
echo "hostname end"
echo "node_type start"
echo $NODE_TYPE
echo "node_type end"
service wazuh-indexer start
sleep 5
service wazuh-indexer status
sleep 55
/usr/share/wazuh-indexer/plugins/opensearch-security/tools/securityadmin.sh -cd /usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig -icl -p 9800 -cd /usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig -nhnv -cacert /etc/wazuh-indexer/certs/root-ca.pem -cert /etc/wazuh-indexer/certs/admin.pem -key /etc/wazuh-indexer/certs/admin-key.pem -h $HOSTNAME
touch $FILE
fi
fi
#export JAVA_HOME=/usr/share/wazuh-indexer/jdk/ && bash /usr/share/wazuh-indexer/plugins/opensearch-security/tools/securityadmin.sh -cd /usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig/ -nhnv -cacert /etc/wazuh-indexer/certs/root-ca.pem -cert /etc/wazuh-indexer/certs/admin.pem -key /etc/wazuh-indexer/certs/admin-key.pem -p 9800 -icl
sed -i '/path.logs:/d' /etc/wazuh-indexer/opensearch.yml
tail -f /var/log/wazuh-indexer/wazuh-cluster.log
service wazuh-indexer stop
service wazuh-indexer start
#CLK_TK=`getconf CLK_TCK` runuser ${USER} --shell="/bin/bash" --command="${INSTALLATION_DIR}/bin/opensearch"
if [ -f /var/log/wazuh-indexer/wazuh-cluster.log ]
then
tail -f /var/log/wazuh-indexer/wazuh-cluster.log
else
while true; do sleep 1000; done
fi

View File

@@ -0,0 +1,33 @@
export NAME=wazuh-indexer
export VERSION=4.3.0
export RELEASE=1
export USER=$NAME
export GROUP=$NAME
export CONFIG_DIR=/etc/$NAME
export LOG_DIR=/var/log/$NAME
export LIB_DIR=/var/lib/$NAME
export SYS_DIR=/usr/lib
export INSTALL_DIR=/usr/share/$NAME
export REPO_DIR=/root/unattended_installer
mkdir -p ${INSTALL_DIR}
mkdir -p /etc
mkdir -p ${LOG_DIR}
mkdir -p ${LIB_DIR}
mkdir -p ${SYS_DIR}
curl -kOL https://artifacts.opensearch.org/releases/bundle/opensearch/1.2.4/opensearch-${1}-linux-x64.tar.gz
tar zxf opensearch-${1}-linux-x64.tar.gz && rm -f opensearch-${1}.tar.gz
chown -R ${USER}:${GROUP} opensearch-${1}/*
mkdir -p /etc/wazuh-indexer && chown -R ${USER}:${GROUP} /etc/wazuh-indexer && cp opensearch-${1}/config/* /etc/wazuh-indexer/
#etc/init.d directory not found
#etc/sysconfig directory not found
#usr directory not found
cp -pr opensearch-*/LICENSE.txt ${RPM_BUILD_ROOT}${INSTALL_DIR}/
cp -pr opensearch-*/NOTICE.txt ${RPM_BUILD_ROOT}${INSTALL_DIR}/
cp -pr opensearch-*/jdk ${RPM_BUILD_ROOT}${INSTALL_DIR}/
cp -pr opensearch-*/plugins ${RPM_BUILD_ROOT}${INSTALL_DIR}/
cp -pr opensearch-*/performance-analyzer-rca ${RPM_BUILD_ROOT}${INSTALL_DIR}/
cp -pr opensearch-*/modules ${RPM_BUILD_ROOT}${INSTALL_DIR}/
cp -pr opensearch-*/lib ${RPM_BUILD_ROOT}${INSTALL_DIR}/
cp -pr opensearch-*/bin ${RPM_BUILD_ROOT}${INSTALL_DIR}/