I want to implement authority with the objects present on my IBM i system and I came to know about the authorization list
concept on the IBM i system. What is the authorization list
? Why do we use it, and what are the commands associated with it?
An
authorization list
defines the user authority for the objects in the list. When an object is created associate it with theauthorization list
so that we should not create individual objects with private authorities and should be getting authority based on theauthorization list
. It controls the individual and *PUBLIC authority to all the objects in the authorization list.Authorization list commands:
CRTAUTL: This command creates the
authorization list
.CRTAUTL AUTL(ListName)
GRTOBJAUT: This command allows you to associate the
authorization list
with the files.GRTOBJAUT OBJ(libname/*ALL) OBJTYPE(*FILE) AUTL(listname)
If you run the above command, you are going to add all the files in the specified library to the authorization list
ListName
.ADDAUTLE: This command allows you to grant users authority to the lists.
ADDAUTLE AUTL(ListName) USER(ADMIN) AUT(*USE)
If you run the above command, you are going to provide
*USE authority
to userADMIN
for the authorization listListName
.EDTAUTL: This command allows you to add and remove users from the list and specify their authority to the list.
DLTAUTL: This command allows you to delete an
authorization list
.DSPAUTL: This command allows you to display an
authorization list
.WRKAUTL: This command allows you to work with
authorization lists
. Using this command you candisplay
,delete
,edit
,display the list objects
, orchange the text
for anauthorization list
.WRKAUTL AUTL(*ALL)
The above command displays all of the
authorization lists
that you own or have the authority to view.