Modify a user profile. The following profile properties may be set: 'pwd', 'realname', 'comment', 'sshkey', 'locale', and 'email'. The 'pwd' property may only be set for local users.
user set <name> <key1>=<value1> [ <key2>=<value2> ... ]
Name of the user to modify. If the local user name begins with '-' (for example, '--myname'), the <name> argument must be preceded with '--' (for example, '-- --myname').
User profile property settings.
user set user1 comment="grid Test User"
Modify comment for local user 'user1'.
Password. The password can be set either directly, by supplying the password string on the command line, or typed to a 'shadow-display' password prompt that does not reveal the entered characters. The shadow entry option is selected by using a single '-' character as the password, that is, pwd=-. The 'shadow display' mode works differently depending on whether the input is a terminal device or not. For a terminal, a prompt is displayed and the password has to be entered twice. For non-terminal input nothing is displayed and the password string is simply read from the input stream once. The pwd=- option should ALWAYS be used to prevent others from potentially seeing the password by hitting the up arrow key. The password is case-sensitive, may consist of any standard keyboard characters [a-z,A-Z, 0-9,and special characters] with the exception of ' ', and must have a length between 6 and 64 characters inclusive.
The real name of the user. This is intended as the 'display' name, used to address the user in GUI prompts.
Arbitrary text, saved with the user's profile.
An SSH public key to install as the user's access key to the CLI. The string provided for this property must be of the form ssh-rsa base-64 encoded key or ssh-dsa base-64 encoded key. This is the form found in the "public key" file produced by the ssh-keygen command from the OpenSSH tool set. Note that SSH clients other than the one from OpenSSH can be used as well - most of them have the ability to export a public key in the OpenSSH format. Note that since the key string contains a space, the entire value has to be enclosed in quotes,e.g. "sshkey=ssh-rsa AAAB3NzaC1ycAI ..." (the example is truncated, the SSH keys are usually a few hundred characters in length. Using copy-and-paste is highly recommended).
Locale. If set to "default", the grid's default locale is used. For the change to take effect, user re-login is required.
E-mail address of the user.
|
Copyright © 2013 CA.
All rights reserved.
|
|