CL Command Reference - CHGOBJOWN
CL Command List > CHGOBJOWN Reference
Description:
The Change Object Owner (CHGOBJOWN) command transfers object ownership from one user to another. The authorities that other users have to the object are not changed.
The owner of an object always has all the authorities applicable to the object unless they are explicitly revoked. The owner of an object has the authority to grant any authorities to any user for that object. Owners can also grant to themselves authorities that were previously revoked. Owners may, for example, remove some of their specific authorities as a precautionary measure, and then, when the need arises, grant those same authorities to themselves again.
A user with *ALLOBJ special authority has complete authority for all objects and can transfer the ownership of any object. All users have add and delete authorities for their own user profiles; that is, users can add objects to or delete objects (that they created) from their own user profiles by transferring the ownership of the object.
Restrictions:
. To transfer ownership, any user (including the object*s present owner) must have:
每 Object existence (*OBJEXIST) authority for the object (except authorization list)
每 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
每 Add (*ADD) authority for the new owner*s user profile
每 Delete (*DLT) authority for the present owner*s user profile
每 All object (*ALLOBJ) and security administrator (*SECADM) special authorities to change the object owner of a program or an SQL (Structured Query Language) package that adopts its owner*s authority.
每 Use (*USE) authority to the auxiliary storage pool device if one is specified.
. For display stations, if this command is not run from the device whose ownership is to be changed or whose message queue*s ownership is to be changed, this command should be preceded by the Allocate Object (ALCOBJ) command and followed by the Deallocate Object (DLCOBJ) command.
. Object type *DOC or *FLR cannot be specified; the user must use DLO (document interchange) support.
. Changing the ownership of an object that has an authority holder associated with it also changes the ownership of the authority holder.
Examples:
CHGOBJOWN OBJ(USERLIB/PROGRAM1) OBJTYPE(*PGM) NEWOWN(ANN)
This command assigns ownership of the program named PROGRAM1, located in the user library named USERLIB, to the user named ANN. The authority is revoked from the current owner.