Revoke Public Authority (RVKPUBAUT)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Revoke Public Authority (RVKPUBAUT) limits the use of a set of IBM-supplied commands and programs by changing the public authority to *EXCLUDE. To determine what commands and programs are being restricted, issue the Retrieve CL Source (RTVCLSRC) command against the program QSECRVKP and examine the source file created by the RTVCLSRC command.

Restriction: You must have all object (*ALLOBJ) special authority to run this command.

This command can be customized by the security administrator by following the steps below:

  1. Issue the Retrieve CL Source (RTVCLSRC) command against the program QSECRVKP.
  2. Edit the source code produced from the RTVCLSRC command and compile the new program. Make sure that the program is given a new name, is created into a library other than QSYS, and that the *PUBLIC authority is set to *EXCLUDE.
  3. Issue the Change Command (CHGCMD) against the Revoke Public Authority command and specify your new program for the PGM parameter. An example is listed below:

    CHGCMD CMD(QSYS/RVKPUBAUT) PGM(library_name/new_pgm_name)
    

    Note: If a product upgrade is done, the RVKPUBAUT command is reinstalled, or maintenance is applied to the RVKPUBAUT command, the CHGCMD will have to be issued again to customize the command.

DISCLAIMER: IBM cannot guarantee or imply reliability, serviceability, performance or function of the retrieved QSECRVKP source code and any programs. THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED.

Top

Parameters

Keyword Description Choices Notes
LIB Library Name, QSYS Optional
Top

Library (LIB)

The name of the library where the IBM-supplied commands are to be found. The library value is only used for commands because they can be located in secondary language libraries.

QSYS
The commands are located in library QSYS.
library-name
The library where the commands are located.
Top

Examples

RVKPUBAUT   LIB(QSYS)

This command sets the public authority for commands and programs in library QSYS to *EXCLUDE.

Top

Error messages

*ESCAPE Messages

CPFB304
User does not have required special authorities.
Top