Securing objects with an authorization list

To secure an object with an authorization list, you must own the object, have *ALL authority to it, or have *ALLOBJ special authority.

Use the Edit Object Authority display, the GRTOBJAUT command, the WRKAUT command, or the CHGAUT command to secure an object with an authorization list:

 
                            Edit Object Authority
 
Object . . . . . . :   ARWRK1       Owner  . . . . . . . :   PGMR1
  Library  . . . . :   TESTLIB      Primary group. . . . :   *NONE
Object type  . . . :   *FILE        ASP device . . . . . :   *SYSBAS

Type changes to current authorities, press Enter.
 
  Object secured by authorization list  . . . . . . . . . .   ARLST1
 
            Object
User        Authority
*PUBLIC     *AUTL
PGMR1       *ALL
 

Set the public authority for the object to *AUTL if you want public authority to come from the authorization list.

On the Edit Authorization List display, you can use F15 (Display authorization list objects) to list all of the objects secured by the list:

 
                      Display Authorization List Objects
 
Authorization list . . . . . . . . :   CUSTLST1
  Library  . . . . . . . . . . . . :   CUSTLIB
Owner  . . . . . . . . . . . . . . :   OWNAR
Primary group  . . . . . . . . . . :   DPTAR
 
                                              Primary
Object      Library     Type      Owner       group       Text
CUSTMAS     CUSTLIB     *FILE     OWNAR
CUSTADDR    CUSTLIB     *FILE     OWNAR
 

This is an information list only. You cannot add or remove objects from the list. You can also use the Display Authorization List Objects (DSPAUTLOBJ) command to view or print a list of all objects secured by the list.