chpvcuser Command
Purpose
The chpvcuser command is used to manage existing PowerVC user accounts. For example, changing user password and group membership.
Syntax
- To change the user password
-
chpvcuser ch_passwd -u <user-name> -c <cluster-name> - To reset the user password
-
chpvcuser reset_passwd -u <user-name> -c <cluster-name> - To modify the user group
-
chpvcuser modify_group -u <user-name> -c <cluster-name> -g <group-name>
Description
The chpvcuser command is used to manage existing PowerVC user accounts by changing passwords or modifying group memberships.
The chpvcuser command ensures proper user maintenance and access control within a PowerVC cluster environment.
Subcommands
| Subcommand | Description |
|---|---|
| ch_passwd | Changes the user password within a specified cluster. |
| reset_passwd | Resets another user password. Only the pvcroot user is authorized to reset a
user password. |
| modify_group | Modifies the group membership of a user for PowerVC access roles. |
Flags
| Items | Description |
|---|---|
| -u <user-name> or --username <user-name> | Specifies the username whose password or group membership needs to be modified. |
| -c <cluster-name> or --cluster <cluster-name> | Specifies the PowerVC cluster name to which the user belongs. |
| -g <group-name> or --group <group-name> | Specifies the target group to which the user must be added. The user can be moved to one
of the following groups:
|
Examples
- To change the password for an existing PowerVC user who is named
johnin a cluster that is namedabcdcluster, enter the following command:chpvcuser ch_passwd -u john -c abcdcluster - To reset password of a user who is named
adamwithin a PowerVC cluster that is namedsamplecluster, enter the following command:chpvcuser reset_passwd -u adam -c sampleclusterNote: Only thepvcrootuser is authorized to run this command. - To modify the group membership of an existing PowerVC user who is named
johnin a cluster that is namedabcdcluster, enter the following command:chpvcuser modify_group -u john -c abcdcluster -g pvcviewer