Use the chcurrentuser command to change
the attributes of the current user.
Syntax
chcurrentuser [ { -password [cleartext_password] | -nopassword } ] [ { -keyfilesshkey_filename | -nokey } ]
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 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. 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.
Description
Use the chcurrent user command to modify the
attributes of the current user.
An invocation example
chcurrentuser -password secret -nokey
The resulting output:
No feedback