Change FlexDeploy to run as different user on Unix

This document applies to FlexDeploy on Tomcat and can be used to change what OS user is used to run FlexDeploy Tomcat process. This does not apply to any database processes or WebLogic servers.

  • Stop FlexDeploy. (StopFlexDeploy.sh)
  • Recursively change user and group ownership on FlexDeploy Installation Directory, Artifact Directory, Server Working Directory.
    • You can find location of Artifact Directory, Server Working Directory from setenv.sh or setenvoverride.sh. See Step 6 on Installing FlexDeploy with Tomcat for more details.
    • You can run chown -R newuser:newgroup <folder>. This would need to run as root.
  • If you were using any SSH Keys for endpoint connections, regenerate them in new user's home folder and exchange with endpoints.
  • Login as new user and Start FlexDeploy. (StartFlexDeploy.sh)