Adds a user to the operating system of the node.

clusterctl node user create -u <username> [-p=<password>] [-k <authorized-keys>]

For example:

$ clusterctl node user create -u john -p='S!B\*d$zDsb=' -k ~/.ssh/authorized_keys
User john created

Specifically:

  • You can execute this command before Installing CSP.
  • You must repeat the command on all the installation nodes.
  • The new user belongs to the same groups as the sysadmin user.

See below for a description of each parameter.

-u, --username <username>

Set <username> as the name of the new operating system user.

Exceptions: The command throws an exception when an operating system user with the <username> name already exists on the node.

Mandatory: Yes.

-p, --password=<password>

Set <password> as the password of the new operating system user.

Exceptions: The command throws an exception when the password does not comply with the Password policy CIS benchmarks.

Enclose the password in quotes to escape special characters (such as $, \, *, =, and !) with a backlash (\) as in the above example.

Mandatory: No. When omitting this option, the command prompts for the password interactively.

-k, --authorized-keys <authorized-keys> 

Import the user's public key for SSH authentication from the <authorized-keys> file path. For example:

~/.ssh/authorized_keys

Exceptions: The command throws an exception when the key file has an invalid format.

MandatoryNo. When omitting this option, the user must use the password for SSH authentication.