CL Command Reference - DSPAUT

CL Command List > DSPAUT Reference

Description:

The Display Authority (DSPAUT) command shows the list of authorized users of an object and their authorities for the object. If the object is secured by an authorization list, the name of the authorization list is also shown.

The following are shown for the specified object:
. The object path name.
. The name of the object¡¯s owner.
. The name of the object¡¯s primary group.
. The name of the authorization list securing the object.
. 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 iSeries Security Reference, SC41-5302 for the authorities needed to use this command.


Examples:

Example 1: Displaying Users and Authorities

DSPAUT OBJ(¡¯/QSYS.LIB/ARLIB.LIB/PROG1.PGM¡¯)

This command shows the authorized users and their authorities for the object named PROG1 to the user who entered the command, if that user has object management authority for the object. PROG1 is a program located in the library named ARLIB. The system assumes * for the device that shows the output list. If the command was entered in the batch subsystem, the output is placed in the default output queue for the job. If the command was entered in the interactive subsystem, the output is shown on the device where the user entered the command.



Example 2: Printing List of Users

DSPAUT OBJ(¡¯/MYDIR/MYOBJECT¡¯) OUTPUT(*PRINT)

This command causes the list of authorized users of MYOBJECT in the MYDIR directory to be printed.