AppDynamics Knowledge Base

How do I change the Controller owner?

How do I change the Controller owner?

In order to change the owner of the Controller, complete the following steps.

  1. Stop all running Controller services using the following command in the machine terminal.
    • ./controller.sh stop
  2. Change the username and user group of the Controller directory.
    • chown -R <New User>:<User Group> <Controller Folder>
  3. Update the new user in the db.cnf file located at Controller/db/db.cnf.
    •   user=<New User>
  4. Start the Controller.
    • ./controller.sh start
Labels (1)
Comments

Oops  you've accidently started your controller with root user instead of your app service user (ie appd, appdynamics, etc...) ?

1. First stop controller (as root) 

2. As root, change permissions back to original user and group

chown -R <original user>:<original group> <controller home>

Ie: chown -R appd:appd /opt/appdynamics/controller

3. Start controller with your original user.

That's it.

Thanks, 

--Eli

Good tip @Eli.Rodriguez  Thanks for contributing. 

Version history
Last update:
‎06-30-2017 08:13 AM
Updated by: