IBM Support

Changing the Owner of Multiple Objects at One Time

Troubleshooting


Problem

This note addresses how to change the owner of multiple library type, rather than Integrated File System type, objects at the same time.

Resolving The Problem

To change the owner of multiple objects at one time, use the WRKOBJOWN command and specify the profile name.
 
WRKOBJOWN userprofile

This brings up a list of all objects owned by that user profile. Type 9 next to each of the objects to change the ownership on. At the command line, type:
 
NEWOWN(newowner)

This changes the ownership of all selected objects to the new owner.

NOTE: New in V7R2 OS, the WRKOBJOWN command now contains an object type, OBJTYPE, parameter.

For instance, if user wants to change ownership all all files in a specific library that were previously owned by QDFTOWN user profile, they can issue command:
 
WRKOBJOWN USRPRF(QDFTOWN) OBJTYPE(*FILE)

Then page down to the files in that library, type 9 next to each of the files in to change the ownership on. At the command line type:
 
NEWOWN(new_owner)


[{"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

5103157

Document Information

More support for:
IBM i

Component:
Security

Software version:
All Versions

Operating system(s):
IBM i

Document number:
635105

Modified date:
07 October 2024

UID

nas8N1013299

Manage My Notification Subscriptions