Skip to main content
Delphix

How to Change Environment User

Changing an Evironment User using the CLI

1. ssh into your engine using Admin privileges

ssh delphix_admin@delphix

2. Go to Environment and find the Environment you would like to update 

delphix > environment
delphix environment > ls
delphix environment > select test_env

3. Select Environment updating and Update

delphix environment "test_env" > update
delphix environment "test_env" update *> ls
 

4. Set primaryUser to new user you would like to use for the Environment

delphix environment "test_env update" *> set primaryUser=<new user>
 

5. Commit the change

delphix environment "test_env" update *> commit

Example:

ssh delphix_admin@delphix
delphix > environment
delphix environment > ls
 
Objects

NAME    DESCRIPTION

Demo  


Children

oracle

user


Operations

create
 
delphix environment > select Demo
delphix environment "Demo" > update
delphix environment "Demo" update *> ls
 
Properties

    type: UnixHostEnvironment

    name: Demo

    description: 

    primaryUser: delphix
 
delphix environment "Demo" update *> set primaryUser=<new user>
delphix environment "Demo" update *> commit

Changing an Environment User using the GUI

  1. Log into the Delphix Admin application using Delphix Admin credentials.
  2. Select Manage > Environments.
  3. In the Environments panel, click on the name of an environment to open the environment information screen.
  4. Under Basic Information, click the green Plus icon to add a user.
  5. Enter the Username and Password for the OS user in that environment.

    Using Public Key Encryption
    1. If you want to use public key encryption for logging into your environment, select Public Key for the Login Type, and then click View Public Key.
    2. Copy the public key that is displayed, and append it to the end of your ~/.ssh/authorized_keys file. If this file does not exist, you will need to create it. 
      1. Run chmod 600 authorized_keys to enable read and write privileges for your user.
      2. Run chmod 755 ~ to make your home directory writable only by your user.
    3. The public key needs to be added only once per user and per environment.

    You can also add public key authentication to an environment user's profile by using the command line interface, as explained in the topic CLI Cookbook: Setting Up SSH Key Authentication for UNIX Environment Users

  6. Click the Check icon to save your new user.
  7. Click the Pencil icon next to Environment Users to change the primary user for this environment.
  8. Click the Trash Can icon next to a username to delete that user.
  • Was this article helpful?