NAME

chhmcusr - change a Hardware Management Console user

SYNOPSIS

chhmcusr -u user-name -t {assign | desc | name | passwd | pwage | taskrole} [-o {a | r}] [-r {resource | resourcerole}] [-v new-attribute-value] [--help]

DESCRIPTION

chhmcusr changes an attribute of a Hardware Management Console (HMC) user.

OPTIONS

-u

The user name of the HMC user to change.

-t

The user attribute to change. Valid values are assign for the user's access control managed resource object assignment or managed resource role assignment, desc for the user's description, name for the user's user name, passwd for the user's password, pwage for the number of days until the user's password expires, and taskrole for the user's access control task role.

-o

The managed resource object or role assignment operation to perform. Valid values are a to add a managed resource object or role to the user and r to remove a managed resource object or role from the user. This option is required when changing the user's managed resource object assignment or managed resource role assignment. This option is not valid when changing any other user attribute.

-r

The type of access control assignment to change. Valid values are resource for managed resource object assignment and resourcerole for managed resource role assignment. This option is required when changing the user's managed resource object assignment or managed resource role assignment. This option is not valid when changing any other user attribute.

-v

The new value for the attribute being changed. When changing the user's managed resource object assignment, specify the managed resource object to be added or removed. When changing the user's managed resource role assignment, specify the managed resource role to be added or removed. When changing the user's description, specify the new description with this option. The new description can be any string. When changing the user's user name, specify the new user name with this option. The new user name must not be longer than 32 characters, and it must begin with a letter. When changing the user's password, you can either specify the new password with this option, or you can omit this option and you will be prompted to enter the password. The new password must be at least 7 characters in length. When changing the number of days until the user's password expires, specify the new number of days with this option. When changing the user's access control task role, specify the new task role with this option. Valid values are hmcsuperadmin, hmcoperator, hmcviewer, hmcpe, hmcservicerep, or a userdefined >task role. This option is required when changing any user attribute other than the user's password.

--help

Display the help text for this command and exit.

EXAMPLES

Add the managed resource role lpar_role to the user hmcuser1:

chhmcusr -u hmcuser1 -t assign -o a -r resourcerole -v lpar_role

Change the password for the user tester (the new password must be entered when prompted):

chhmcusr -u tester -t passwd

Change the number of days until the password expires for the user hmcuser1 to be 180:

chhmcusr -u hmcuser1 -t pwage -v 180

Change the task role for the user tester to hmcoperator:

chhmcusr -u tester -t taskrole -v hmcoperator

ENVIRONMENT

None

BUGS

None

SEE ALSO

lshmcusr, mkhmcusr, rmhmcusr, lsaccfg