config user
Create a user, delete a user, list all users, or change a user's password:
config user create <username>
config user delete <username>
config user key generate
config user key show
config user list
config user password <username>
Note: These user accounts are operating-system accounts that exist on one or both manager nodes. They are not Yellowbrick database users.
After creating a new user, you can log into the manager node with that account and run the ybcli
. New users have sudo
rights to run ybcli
commands, but they do not have any other sudo
access on the manager node. The ybdadmin
account is the only account with full sudo
access.
- user create
Create a new user on both manager nodes. For example:
YBCLI(4901) (PRIMARY - yb100-mgr0)> config user create bobr Should the user have full administrator access at the system level? Note: This will give the user account full access to all parts of the system and is generally not recommended. Response (yes/no): no Not enabling full administrator access for this user account. Enter password for user bobr: Password: Enter password for user bobr again: Password: Successfully created user: bobr Remote manager node ------------------- Successfully created user: bobr
User passwords must be between 8 and 16 characters long and contain at least one uppercase letter, one lowercase letter, and one number.
- user delete
Delete a user on both manager nodes. For example:
YBCLI(4901) (PRIMARY - yb100-mgr0)> config user delete bobr Are you sure you want to delete user bobr from the manager nodes? WARNING: This will delete all the data for this user on both manager nodes Response (yes/no): yes Successfully deleted user: bobr Remote manager node ------------------- Successfully deleted user: bobr
- user key generate
Generate a new ssh public/private key pair for the current user. If the user is
ybdadmin
, key-based authentication will be set up between the manager nodes. For example:YBCLI (PRIMARY)> config user key generate Are you sure you want to generate a new system key for user ybdadmin? Type yes to continue: yes Copying key to remote manager node Enter current password for the ybdadmin user: ybdadmin@nnn.nnn.n.n's password: Created a new ybdadmin key and set up key-based authentication between the manager nodes
- user key show
Return the current user's public key.
YBCLI (PRIMARY)> config user key show The public key for user: ybdadmin ssh-rsa ... Remote manager node ------------------- The public key for user: ybdadmin ssh-rsa ...
- user list
List the users on the manager nodes. For example:
YBCLI (PRIMARY)> config user list Users: ybdadmin bobr bobr2 Remote manager node ------------------- Users: ybdadmin bobr bobr2
- user password
Change the password for a user on both manager nodes.
YBCLI(32351) (PRIMARY - yb00-mgr0)> config user password bobr Enter password for user bobr: Password: Enter password for user bobr again: Password: Successfully changed password for user: bobr Remote manager node ------------------- Successfully changed password for user: bobr
User passwords must be between 8 and 16 characters long and contain at least one uppercase letter, one lowercase letter, and one number.
Parent topic:config