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

Table 1. 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

Table 2. 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:
  • pvcsuperadmin
  • pvcoperator
  • pvcviewer

Examples

  1. To change the password for an existing PowerVC user who is named john in a cluster that is named abcdcluster, enter the following command:
    chpvcuser ch_passwd -u john -c abcdcluster
  2. To reset password of a user who is named adam within a PowerVC cluster that is named samplecluster, enter the following command:
    chpvcuser reset_passwd -u adam -c samplecluster
    Note: Only the pvcroot user is authorized to run this command.
  3. To modify the group membership of an existing PowerVC user who is named john in a cluster that is named abcdcluster, enter the following command:
    chpvcuser modify_group  -u john -c abcdcluster -g pvcviewer