Download page Change the User Running the Controller Services.
Change the User Running the Controller Services
This page provides instructions for changing the user running the Controller services.
You may need to change the user who is running the Controller services during a system migration or other event.
The procedure varies based on whether you are using the Enterprise Console.
If you are not using the Enterprise Console
As the current user running the Controller services, shut down the Controller process:
CONTROLLER_HOME_DIR/bin/controller.sh stop
CODE
Change the ownership (recursively) of the entire Controller directory to the new user. In this example, appdynamics:admin is the user:group, respectively:
chown -R appdynamics:admin CONTROLLER_HOME_DIR/
CODE
If the Controller's data directory is outside of the root Controller's folder, then you must also change the owner of the database data files:
chown -R appdynamics:admin .../data/
CODE
Change the user to the new username:
CONTROLLER_HOME_DIR/db/db.cnf
CODE
Log in as the new user and start the Controller services:
CONTROLLER_HOME_DIR/bin/controller.sh start
CODE
If you are using the Enterprise Console
Remove the Controller from the Enterprise Console by de-selecting the Remove Binaries option; otherwise, the binaries will be removed from the disk. To remove the Controller without uninstalling the Controller:
As the current user running the Controller services, shut down the Controller process.
CONTROLLER_HOME_DIR/bin/controller.sh stop
CODE
Change the ownership (recursively) of the entire Controller directory to the new user. In this example, appdynamics:admin is the user:group, respectively:
chown -R appdynamics:admin CONTROLLER_HOME_DIR/
CODE
If the Controller's data directory is outside of the root Controller's folder, then you must also change the owner of the database data files:
chown -R appdynamics:admin .../data/
CODE
Change the user to the new username:
CONTROLLER_HOME_DIR/db/db.cnf
CODE
Log in as the new user and start the Controller services:
CONTROLLER_HOME_DIR/bin/controller.sh start
CODE
From the Enterprise Console, remove the hosts that were added: