chcurrentuser
Use the chcurrentuser command to change the attributes of the current user.
Syntax
Parameters
- -password 'cleartext_password'
- (Optional) Specifies the new password to be associated with the current user. The password cannot start or end with a blank. It must consist of a string of 6 - 64 printable ASCII characters. You must enclose the password in single quotation marks. You can optionally specify the password with the -password parameter. If you do not specify the password, the system prompts you for it before running the command and does not display the password that you type. Do not enclose the password in single quotation marks if you use the prompt. Either the -password parameter or the -nopassword parameter can be set.
- -nopassword
- (Optional) Specifies that the user's password is to be deleted.
- -keyfile sshkey_filename
- (Optional) Specifies the name of the file that contains the Secure Shell (SSH) public key. Either the keyfile parameter or the nokey parameter can be set.
- -nokey
- (Optional) Specifies that the user's SSH key is to be deleted.
- -certuid <unique_identifier>
- (Optional) Specifies a Unique ID that can be used by the authentication services that might run on the system. It must consist of a string up to 255 printable ASCII characters.
- -nocertuid
- (Optional) Deletes the certuid associated with the user.
Note: The -certuid parameter is mutually exclusive
with -keyfile and -nocertuid.
Description
Use the chcurrentuser command to modify the attributes of the current user.
An invocation example
chcurrentuser -password 'secret' -nokey
The resulting output:
No feedback