IBM Support

Easy Way to Change Owner of All Objects in a Library

Troubleshooting


Problem

The note documents a way to change the owner of all objects in a specified library.

Resolving The Problem

The following command illustrates a simple way to change the owner of all objects in a specified library:
 
CHGOWN OBJ('/QSYS.lib/JOHNDOE.lib/*') NEWOWN(BOBSMITH)

Note: The character string in the OBJ parameter ends with /* before the single quote character. This example changes all the objects in the JOHNDOE library to new owner BOBSMITH. Review the Help text for the command for an explanation of how authorities are affected.

[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CHyAAM","label":"Security"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]

Historical Number

20023144

Document Information

Modified date:
04 October 2024

UID

nas8N1017724