Command reference / sec

RVKOBJAUT

Revoke Object Authority

Takes away specific (or all) authority for the named object(s) from one or more users named in the command, or removes an authorization list's authority for the named object(s). Usable by the security officer, the object's owner, a user with object management authority (who can revoke only the explicit authority they hold), and a user authorized to the QIBM_DB_SECADM function. A user cannot revoke authority for an object locked by another job. Caution: changing public authority on IBM-supplied objects can break system programs; for example, making QSYSOPR more restrictive than *CHANGE can stop system programs from sending messages to it.

Allowed environments: *ALL. Positional parameters: 4.

Restrictions

Parameters

OBJ Object

Object(s) to have specific authority revoked. If *ALL is given for the object name, a library name must be given. Required.

Type
*QUAL
Required
Yes
Case
Uppercase
*ALL
As object name: all objects of the OBJTYPE found in the search. As library name: all libraries in the ASPs named by ASPDEV.
*LIBL
Libraries in the thread's library list are searched until the first match.
*CURLIB
The thread's current library is searched; QGPL if none is set.
*USRLIBL
The current library and the user portion of the library list are searched, or only the user portion if no current library entry exists.
*ALLUSR
All user libraries in the ASPs defined by ASPDEV are searched.
*ALLAVL
All libraries in all available ASPs are searched.
*ALLUSRAVL
All user libraries in all available ASPs are searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Object Object

Type
*GENERIC
Required
No
Length
10
Case
Uppercase

Suggested / special values: *ALL

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB, *ALL, *ALLUSR, *USRLIBL, *ALLAVL, *ALLUSRAVL

OBJTYPE Object type

Object type that has authority revoked. Required.

Type
*CHAR
Required
Yes
Length
7
Case
Uppercase

Allowed values: *ALL, *ALRTBL, *BNDDIR, *CFGL, *CHTFMT, *CLD, *CLS, *CMD, *CNNL, *COSD, *CRG, *CRQD, *CSI, *CSPMAP, *CSPTBL, *CTLD, *DEVD, *DTAARA, *DTADCT, *DTAQ, *EDTD, *FCT, *FILE, *FNTRSC, *FNTTBL, *FORMDF, *FTR, *GSS, *IGCDCT, *IGCSRT, *IGCTBL, *IMGCLG, *IPXD, *JOBD, *JOBQ, *JOBSCD, *JRN, *JRNRCV, *LIB, *LIND, *LOCALE, *M36, *M36CFG, *MEDDFN, *MENU, *MGTCOL, *MODD, *MODULE, *MSGF, *MSGQ, *NODGRP, *NODL, *NTBD, *NWID, *NWSCFG, *NWSD, *OUTQ, *OVL, *PAGDFN, *PAGSEG, *PDFMAP, *PDG, *PGM, *PNLGRP, *PRDAVL, *PRDDFN, *PRDLOD, *PSFCFG, *QMFORM, *QMQRY, *QRYDFN, *RCT, *S36, *SBSD, *SCHIDX, *SPADCT, *SQLPKG, *SQLUDT, *SQLXSR, *SRVPGM, *SSND, *SVRSTG, *TBL, *TIMZON, *USRIDX, *USRPRF, *USRQ, *USRSPC, *VLDL, *WSCST

*ALL
All supported object types have specific authorities revoked.

USER Users

Users whose specific authority to the object is revoked. Either USER or AUTL must be specified. Only authority set by GRTOBJAUT can be revoked here; *PUBLIC public authority can be revoked only with *PUBLIC.

Type
*NAME
Required
No
Length
10
List limit
50
Case
Uppercase

Suggested / special values: *ALL, *PUBLIC

*ALL
Authority is taken from all enrolled users except the owner, whether public or explicit.
*PUBLIC
Authority is taken from users with no specific authority, who are not on an authorization list, and whose group has no authority. Users with specific authority keep it.

AUT Authority

Authorities to revoke from users who have no specific authority, are not on an authorization list, and whose group has no specific authority. Single value or up to 10 other values. Default is *CHANGE.

Type
*CHAR
Required
No
Default
*CHANGE
Length
9
List limit
10
Case
Uppercase

Allowed values: *CHANGE, *ALL, *USE, *EXCLUDE, *AUTL, *OBJALTER, *OBJEXIST, *OBJMGT, *OBJOPR, *OBJREF, *ADD, *DLT, *READ, *UPD, *EXECUTE

*CHANGE
All operations except those limited to the owner or controlled by *OBJEXIST and *OBJMGT; includes *OBJOPR and all data authority.
*ALL
All operations except owner-limited ones and *AUTLMGT-controlled ones; includes control of existence, security, and ownership change.
*USE
Basic operations such as running a program or reading a file; includes *OBJOPR, *READ and *EXECUTE.
*EXCLUDE
The user cannot access the workstation object.
*AUTL
The public authority of the authorization list named in AUTL is used. Can be specified only with USER(*PUBLIC).
*OBJALTER
Alter the attributes of an object; for database files, add or remove triggers and constraints.
*OBJEXIST
Control the object's existence and ownership. Not needed for save or restore with *SAVSYS special authority.
*OBJMGT
Manage the object's security, move or rename it, and add members to database files.
*OBJOPR
Look at the object's description and use the object, subject to data authority.
*OBJREF
Reference the object from another object, such as adding referential constraints where a physical file is the parent.
*ADD
Add entries, such as job entries to a queue or records to a file.
*DLT
Remove entries from the object.
*EXECUTE
Run a program or locate an object in a library.
*READ
Get the contents of an entry or run a program.
*UPD
Change entries in the object.

ASPDEV ASP device

ASP device where the object's library is located. Must be specified if that library is in an ASP outside the job's library name space.

Type
*NAME
Required
No
Default
*
Length
10
Case
Uppercase

Suggested / special values: *, *SYSBAS

*
The ASPs in the job's library name space are searched: system ASP, basic user ASPs, and independent ASPs in the job's ASP group.
*SYSBAS
The system ASP and all basic user ASPs are searched; no independent ASPs.

AUTL Authorization list

Authorization list revoked from the object. Either AUTL or USER must be specified. If AUTL is specified, AUT is ignored. If public authority is *AUTL, it changes to *EXCLUDE.

Type
*NAME
Required
No
Length
10
Case
Uppercase

Examples

RVKOBJAUT OBJ(ARLIB/PROG1) OBJTYPE(*PGM) USER(*ALL)

Removes the authorities (*CHANGE, since AUT was not specified) from all users who were explicitly or publicly authorized, except the owner, for program PROG1 in library ARLIB.

RVKOBJAUT OBJ(FILEX) OBJTYPE(*FILE) USER(HEANDERSON) AUT(*DLT *UPD)

Removes delete and update authorities for file FILEX from user HEANDERSON.

IBM command documentation

Generated from os/cl/catalog/RVKOBJAUT.json and os/cl/help/RVKOBJAUT.json.