Grant authority to an instance

The grtwasaut script grants a user authority to an instance and the objects associated with it.

Authority

To run this script, your user profile must have *ALLOBJ authority.

Usage

To grant authority to objects and directories in an instance, run the grtwasaut script from the Qshell command line. To run the script, follow these steps:

  1. On the CL command line, run the STRQSH (Start Qshell) command.

  2. Run the cd command to change to the directory that contains the script:

    cd /QIBM/ProdData/WebASE/ASE5/bin
  3. Run the grtwasaut script:

    grtwasaut -instance instance -user usrprf | -authlist authlist
     -dtaaut dataAuth -objaut objAuth

    where instance is the instance to which you are granting authority, usrprf is the user profile to which you are granting authority, authlist is the authorization list to which you are granting authority, dataAuth specifies the data authorities that you are granting to the user specified by the -user parameter and objAuth specifies the object authorities that you are granting to the user specified by the -user parameter. You do not need to specify both the -user and -authlist parameters, but you must specify at least one of them.

Syntax

The syntax of the script is:

grtwasaut -instance instance { -user usrprf | -authlist authlist }
 { -dtaaut dataAuth | -objaut objectAuth } [ -object path ]
 [ -recursive ] [ -verbose ] [ -help ]

Note: When you run the grtwasaut script, you must specify these paramters:

Parameters

The parameters of the script are:

Examples

In this example, the user profiles johndoe and jsmith are granted rwx authority to the instance devinst and the associated objects.

grtwasaut -instance devinst -user "johndoe jsmith" -dtaaut rwx -recursive

In this example, the user profiles johndoe and jsmith are granted rwx authority to the installedApps subdirectory and all nested objects in the installedApps subdirectory.

grtwasaut -instance devinst -object installedApps -user "johndoe jsmith" -dtaaut rwx -recursive