08 Sep 2021 09:21 AM
Hi All,
We used root right to install the Dynatrace cluster, So, we would like to change root rights on the Dynatrace cluster after installation, We can change it?
However, we tried to restart the Dynatrace service by non-root right but isn't cannot restart the Dynatrace service.
Questions.
Thanks,
AskMe Solution
Solved! Go to Solution.
08 Sep 2021 08:24 PM
09 Sep 2021 12:21 PM
Hi Julius_Loman
If, we would like to change the root right specifically the directory of Dynatrace to non-root right.
Can we change it? And after changed root right to non-root right, is it affecting Dynatrace? such as when Dynatrace has new versions update and restart service of Dynatrace cluster.
And, could you please provide the Dynatrace directory path to ours? because we saw the Dynatrace directory path as below.
https://www.dynatrace.com/support/help/shortlink/managed-cluster-setup#step-3-run-the-installer
Default settings
Installation path (binaries): /opt/dynatrace-managed
Dynatrace Server data files: /var/opt/dynatrace-managed
We don't know another directory path of the Dynatrace cluster.
09 Sep 2021 08:04 PM
You have the default paths correct unless you installed Dynatrace Managed in different directories. There is also OneAgent installed (defaults to /opt/dynatrace/oneagent ). This OA reports to Dynatrace, not to your cluster.
Normally the ownership of these directories is the Dynatrace user:
[root@dynatrace-managed ~]# ls -ld /opt/dynatrace-managed /var/opt/dynatrace-managed/
drwxr-xr-x. 17 dynatrace dynatrace 4096 Sep 8 02:06 /opt/dynatrace-managed
drwxr-xr-x. 12 dynatrace dynatrace 4096 Sep 8 02:04 /var/opt/dynatrace-managed/
Do you have any other ownership for the directories? In that case, these problems will be likely fixed by running reconfigure.sh script. I'd not recommend changing the ownership manually.
There is also /etc/dynatrace.conf file which contains installation settings and which is used in upgrade procedures. This file is owned by root.
Maybe @Radoslaw_Szulgo has a better answer.
09 Sep 2021 09:02 PM
That’s all correct - set user/group in dyntrace.conf and run reconfigure.sh
make sure you have consistent uid/gid on all nodes.