How to change the system user on a specific cluster node?
When this node was deployed a while back, it was deployed with a completely different user than the other two nodes (3-node cluster). First, if I want to change the user, can I just run the reconfigure command with the --system-user-id parameter? I want to change this node from userA to userB, so I am wondering if I can run this command with userB's UID and GID would that accomplish this? If that is the case, do I need to manually update any files (chown command) for the new user, or does the reconfigure command do this automatically?
1. Stop Dynatrace Managed on a node:
sudo /opt/dynatrace-managed/launcher/dynatrace.sh stop
2. Change uid:gid in the OS
usermod -u 2005 dynatraceuser groupmod -g 3000 dynatraceuser
3. Execute reconfigure with the system-user-id param
/opt/dynatrace-managed/installer/reconfigure.sh --system-user-id <UID:GID>
4. Start dynatrace service:
sudo /opt/dynatrace-managed/launcher/dynatrace.sh start
Are there any risks with permissions for files breaking? Does this mean we also need to execute a recursive chown+chgrp to fix file permissions manually?
No. Reconfigure script will change permissions automatically.