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

  1. As the current user running the Controller services, shut down the Controller process:
    CODE
    CONTROLLER_HOME_DIR/bin/controller.sh stop
  2. Change the ownership (recursively) of the entire Controller directory to the new user. In this example, appdynamics:admin is the user:group, respectively:
    CODE
    chown -R appdynamics:admin CONTROLLER_HOME_DIR/
  3. 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:
    CODE
    chown -R appdynamics:admin .../data/
  4. Change the user to the new username:
    CODE
    CONTROLLER_HOME_DIR/db/db.cnf
  5. Log in as the new user and start the Controller services:
    CODE
    CONTROLLER_HOME_DIR/bin/controller.sh start