Command reference / ifs
WRKAUT
Work with Authority
The Work with Authority (WRKAUT) command shows the list of authorized users of an object and their associated authorities. From the list, you can select from options to perform the following: Add a user Change user authority Remove a user The following are displayed for the specified object: The object path name The name of the object's owner The name of the object's primary group A list of all the users who are authorized to use the object The authorities that each user has for the object If an object does not have an owner name associated with it, no authorities for the object are shown. See Appendix D of the IBM i Security Reference, SC41-5302 for the authorities needed to use this command. For more information about integrated file system commands, see the Integrated file system topic collection in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/.
Allowed environments: *INTERACT, *IPGM, *IREXX, *EXEC.
Positional parameters: 1.
Parameters
OBJ
Object
Specifies the objects for which the authorized users and their authorities are to be shown. For more information on specifying path names, refer to "Object naming rules" in the CL topic collection in the Programming category in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/. This is a required parameter.
path-name- Specify the path name of the objects for which specific authorities are to be shown. The object path name can be either a simple name or a name that is qualified with the name of the directory in which the object is located. A pattern can be specified in the last part of the path name. An asterisk (*) matches any number of characters and a question mark (?) matches a single character. If the path name is qualified or contains a pattern, it must be enclosed in apostrophes.
SYMLNK
Symbolic link
If the last component in the path name is a symbolic link, specifies whether or not to work with the symbolic link or the object pointed to by the symbolic link.
Allowed values:
*NO, *YES
*NO- The symbolic link object is not worked with. The object pointed to by the symbolic link is worked with.
*YES- If the object is a symbolic link, the symbolic link is worked with. The object pointed to by the symbolic link is not worked with.
Examples
WRKAUT OBJ('/QSYS.LIB/ARLIB.LIB/PROG1.PGM')
This command causes the list of authorized users and their authorities for the object named PROG1 to be shown. PROG1 is a program located in the library named ARLIB.
Generated from os/cl/catalog/WRKAUT.json and os/cl/help/WRKAUT.json.