CL Command Reference - CHGOBJPGP
CL Command List > CHGOBJPGP Reference
Description:
The Change Object Primary Group (CHGOBJPGP) command changes the object*s primary group from one user to another. The owner*s and other users* private authorities to the object do not change.
Restrictions:
. To change the primary group, you must have the following:
每 Object existence (*OBJEXIST) authority for the object
每 Object operational (*OBJOPR) and *OBJEXIST authorities if the object is a file, library, or subsystem description
每 All object (*ALLOBJ) special authority, or ownership, if the object is an authorization list
每 Object management (*OBJMGT) authority for the object, if revoking the authority for the old primary group
每 *OBJMGT authority for the object and the authorities to be given, if a value other than *PRIVATE is specified for the PGPAUT parameter
每 Use (*USE) authority to the auxiliary storage pool device if one is specified.
. Object type *DOC or *FLR cannot be specified; the user must use DLO support v The new primary group user cannot be the owner of the object
. The new primary group user must have a group ID number (gid)
Examples:
CHGOBJPGP OBJ(USERLIB/PROGRAM1) OBJTYPE(*PGM) NEWPGP(ANN)
PGPAUT(*CHANGE)
This command changes the primary group for the program named PROGRAM1, located in the user library USERLIB, to the group named ANN. The new primary group has *CHANGE authority to the object. The authority is revoked from the current primary group.