Changing an Environment User (KBA1625)
KBA
KBA#1625Changing an Environment 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
- Log into the Management application screen using admin credentials.
- Select Manage > Environments.
- In the Environments panel, click on the name of an environment to open the environment information screen.
- Under Basic Information, click the green Plus icon to add a user.
-
Enter the Username and Password for the OS user in that environment.
If you want to Use Public Key Encryption, complete the following procedure:- Select Public Key for the Login Type, and then click View Public Key.
- 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. -
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
Note: If ~/.ssh/authorized_keys, ~/.ssh or ~ (the user's home directory) are writable by other users other than the Delphix Enviroment User, sshd will not allow public key authentication. The following are examples of permissions which conform to sshd's allowable permission convention:
Run
chmod 600 ~/.ssh/authorized_keys
- assign read/write privileges for your user.Run chmod 700 ~/.ssh - assign read/write/execute privileges for your user.
Run
chmod 755 ~
- assign home directory writable only by your user.The public key needs to be added only once per user and per environment.
- Click the Check icon to save your new user.
- Click the Pencil icon next to Environment Users to change the primary user for this environment.
- Click the Trash Can icon next to a username to delete that user.