https://www.stigviewer.com/stig/red_ha ... ng/V-72049
The security standard (CIS Center for Internet Security https://www.cisecurity.org/controls) and the default on all hardened systems is 077. Which would not allow other users to interact with the files that root has written without root specifically allowing them to do so.
I have 2 suggested fixes for this in mind the first check the umask on installation and then temporarilly set it at runtime this would look like the following.
Code: Select all
```
bash
mask=$(umask)
if (( ($mask & 022) != 0 )); then
umask 022
fi
```
Code: Select all
```bash
# /opt/veeam/transport/:
chmod 644 /opt/veeam/transport/libacl.so.1
chmod 644 /opt/veeam/transport/libattr.so.1
chmod 644 /opt/veeam/transport/libblkid.so.1
chmod 644 /opt/veeam/transport/libfuse.so
chmod 355 /opt/veeam/transport/libNtfsLib.so
chmod 644 /opt/veeam/transport/libuuid.so.1
chmod 355 /opt/veeam/transport/veeamagent
chmod 355 /opt/veeam/transport/veeamimmureposvc
chmod 355 /opt/veeam/transport/veeamtransport
chmod 644 /opt/veeam/transport/VeeamTransportConfig
#/opt/veeam/transport/certs/:
chmod 744 /opt/veeam/transport/certs/cert.p12
#/opt/veeam/transport/certs/client/:
chmod 744 /opt/veeam/transport/certs/client/*.pem
#/opt/veeam/transport/scripts/:
chmod 444 /opt/veeam/transport/scripts/veeamtransport
chmod 444 /opt/veeam/transport/scripts/veeamtransport.service
#/opt/veeam/transport/vddk_6_0/:
chmod 644 /opt/veeam/transport/vddk_6_0/vmc_config.ini
#/opt/veeam/transport/vddk_6_0/lib64/:
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libcrypto.so.1.0.2
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libcurl.so.4
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libdiskLibPlugin.so
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libexpat.so
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libglib-2.0.so.0
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libgmodule-2.0.so.0
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libgobject-2.0.so.0
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libgthread-2.0.so.0
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libgvmomi.so
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libssl.so.1.0.2
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libssoclient.so
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libstdc++.so.6.0.13
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libvim-types.so
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libvixDiskLib.so.6.0.0
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libvixDiskLibVim.so.6.0.0
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libvixMntapi.so.1.1.0
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libvmacore.so
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libvmomi.so
chmod 644 /opt/veeam/transport/vddk_6_0/lib64/libxml2.so.2
#/opt/veeam/transport/vddk_6_7/:
chmod 644 /opt/veeam/transport/vddk_6_7/vmc_config.ini
#/opt/veeam/transport/vddk_6_7/lib64/:
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libcares.so.2
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libcrypto.so.1.0.2
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libcurl.so.4
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libdiskLibPlugin.so
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libexpat.so
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libffi.so.5
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libgcc_s.so.1
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libglib-2.0.so.0
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libgmodule-2.0.so.0
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libgobject-2.0.so.0
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libgthread-2.0.so.0
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libgvmomi.so
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libsqlite3.so.0.8.6
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libssl.so.1.0.2
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libssoclient.so
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libstdc++.so.6
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libvim-types.so
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libvixDiskLib.so.6.7.0
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libvixDiskLibVim.so.6.7.0
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libvixMntapi.so.1.1.0
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libvmacore.so
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libvmomi.so
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libxml2.so.2
chmod 644 /opt/veeam/transport/vddk_6_7/lib64/libz.so.1
#/opt/veeam/transport/vddk_7_0/:
chmod 444 /opt/veeam/transport/vddk_7_0/fips_config.ini
chmod 644 /opt/veeam/transport/vddk_7_0/vmc_config.ini
chmod 644 /opt/veeam/transport/vddk_7_0/vmc_fips_config.ini
#/opt/veeam/transport/vddk_7_0/lib64/:
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libcares.so.2
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libcrypto.so.1.0.2
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libcurl.so.4
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libdiskLibPlugin.so
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libexpat.so
chmod 644 /opt/veeam/transport/vddk_7_0/lib64/libgcc_s.so.1
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/liblookup-types.so
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libsqlite3.so.0.8.6
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libssl.so.1.0.2
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libssoclient.so
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libstdc++.so.6
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libvddkVimAccess.so.7.0.1
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libvim-types.so
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libvixDiskLib.so.7.0.1
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libvixMntapi.so.1.1.0
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libvmacore.so
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libvmomi.so
chmod 355 /opt/veeam/transport/vddk_7_0/lib64/libz.so.1
```