538 lines
26 KiB
HTML
538 lines
26 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Grant Object Authority (GRTOBJAUT)</title>
|
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</head>
|
|
<body bgcolor="white">
|
|
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<a name="GRTOBJAUT.Top_Of_Page"></a>
|
|
<h2>Grant Object Authority (GRTOBJAUT)</h2>
|
|
<table width="100%">
|
|
<tr>
|
|
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
|
|
<b>Threadsafe: </b>No
|
|
</td>
|
|
<td valign="top" align="right">
|
|
<a href="#GRTOBJAUT.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#GRTOBJAUT.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#GRTOBJAUT.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="GRTOBJAUT"></a>
|
|
<p>The Grant Object Authority (GRTOBJAUT) command grants specific authority for the objects named in the command to another user or group of users.
|
|
</p>
|
|
<p>Authority can be given to:
|
|
</p>
|
|
<ul>
|
|
<li>Named users
|
|
</li>
|
|
<li>Users (*PUBLIC) who do not have specific authority to the object or the authorization list
|
|
</li>
|
|
<li>Users of the object referred to by the <b>Reference object (REFOBJ)</b> and <b>Reference object type (REFOBJTYPE)</b> and parameters
|
|
</li>
|
|
<li>Authorization lists
|
|
</li>
|
|
</ul>
|
|
<p>If AUT(*AUTL) is specified, the PUBLIC authority for the object comes from the PUBLIC authority of the authorization list securing the object.
|
|
</p>
|
|
<p>The AUTL parameter is used to secure an object with an authorization list or remove an authorization list from an object. User profiles cannot be secured by an authorization list (*AUTL).
|
|
</p>
|
|
<p>This command can be used by an object's owner, or by a user with object management authority for the specified object. A user with object management authority can grant to other users any authority that the user has, except object management authority. Only the owner of the object, or someone with all object special authority (*ALLOBJ), can grant object management authority to a user.
|
|
</p>
|
|
<p>A user with *ALL authority can assign a new authorization list.
|
|
</p>
|
|
<p>When granting authority to users, the REPLACE parameter indicates whether the authorities you specify replace the user's existing authorities. The default value of REPLACE(*NO) gives the authority that you specify, but it does not remove any authority that is greater than you specified, unless you are granting *EXCLUDE authority. REPLACE(*YES) removes the user's current authorities, then grants the authority that you specify.
|
|
</p>
|
|
<p>When granting authority with a reference object, this command gives the authority that you specify, but it does not remove any authority that is greater than you specified, unless you are granting *EXCLUDE authority.
|
|
</p>
|
|
<p>This command gives the authority that you specify, but it does not remove any authority that is greater than you specified, unless you are granting *EXCLUDE authority or specify REPLACE(*YES).
|
|
</p>
|
|
<p><b>Restrictions:</b>
|
|
</p>
|
|
<ol>
|
|
<li>This command must get an exclusive lock on a database file before read or object operational authority can be given to a user.
|
|
</li>
|
|
<li>If a user requests authority for another specified user to a device currently in use by another authorized user, authority to the device is not given.
|
|
</li>
|
|
<li>Object type *AUTL cannot be specified.
|
|
</li>
|
|
<li>AUT(*AUTL) is valid only with USER(*PUBLIC).
|
|
</li>
|
|
<li>A user must either be the owner of the object or have *ALL authority to use the AUTL parameter.
|
|
</li>
|
|
<li>The user must have object management authority to the object.
|
|
</li>
|
|
<li>If the object is a file, the user must have object operational and object management authorities.
|
|
</li>
|
|
<li>For display stations or for work station message queues associated with the display station, if this command is not entered at the device for which authorities are to be granted, it should be preceded by the Allocate Object (ALCOBJ) command and followed by the Deallocate Object (DLCOBJ) command.
|
|
</li>
|
|
<li>You must have *USE authority to the auxiliary storage pool device if one is specified.
|
|
</li>
|
|
</ol>
|
|
<p>
|
|
<b>Note: </b>Caution should be used when changing the public authority on IBM-supplied objects. For example, changing the public authority on the QSYSOPR message queue to be more restrictive than *CHANGE will cause some system programs to fail. The system programs will not have enough authority to send messages to the QSYSOPR message queue. For more information, refer to the iSeries Security Reference, SC41-5302 book.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#GRTOBJAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="GRTOBJAUT.PARAMETERS.TABLE">Parameters</a></h3>
|
|
<table border="1" cellpadding="4" cellspacing="0">
|
|
<!-- col1="10" col2="15" col3="30" col4="10" -->
|
|
<tr>
|
|
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
|
|
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
|
|
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
|
|
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#GRTOBJAUT.OBJ"><b>OBJ</b></a></td>
|
|
<td valign="top">Object</td>
|
|
<td valign="top"><i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Required, Positional 1</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Object</td>
|
|
<td valign="top"><i>Generic name, name</i>, *ALL</td>
|
|
</tr><tr>
|
|
<td valign="top">Qualifier 2: Library</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB, *ALL, *ALLUSR, *USRLIBL, *ALLAVL, *ALLUSRAVL</td>
|
|
</tr><tr>
|
|
<td valign="top"><a href="#GRTOBJAUT.OBJTYPE"><b>OBJTYPE</b></a></td>
|
|
<td valign="top">Object type</td>
|
|
<td valign="top">*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, *SRVPGM, *SSND, *SVRSTG, *TBL, *TIMZON, *USRIDX, *USRPRF, *USRQ, *USRSPC, *VLDL, *WSCST</td>
|
|
<td valign="top">Required, Positional 2</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#GRTOBJAUT.ASPDEV"><b>ASPDEV</b></a></td>
|
|
<td valign="top">ASP device</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*</u></b>, *SYSBAS</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#GRTOBJAUT.USER"><b>USER</b></a></td>
|
|
<td valign="top">Users</td>
|
|
<td valign="top">Single values: *PUBLIC<br>Other values (up to 50 repetitions): <i>Name</i></td>
|
|
<td valign="top">Optional, Positional 3</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#GRTOBJAUT.AUT"><b>AUT</b></a></td>
|
|
<td valign="top">Authority</td>
|
|
<td valign="top">Single values: <b><u>*CHANGE</u></b>, *ALL, *USE, *EXCLUDE, *AUTL<br>Other values (up to 10 repetitions): *OBJALTER, *OBJEXIST, *OBJMGT, *OBJOPR, *OBJREF, *ADD, *DLT, *READ, *UPD, *EXECUTE</td>
|
|
<td valign="top">Optional, Positional 4</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#GRTOBJAUT.AUTL"><b>AUTL</b></a></td>
|
|
<td valign="top">Authorization list</td>
|
|
<td valign="top"><i>Name</i>, *NONE</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#GRTOBJAUT.REFOBJ"><b>REFOBJ</b></a></td>
|
|
<td valign="top">Reference object</td>
|
|
<td valign="top"><i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Reference object</td>
|
|
<td valign="top"><i>Name</i></td>
|
|
</tr><tr>
|
|
<td valign="top">Qualifier 2: Library</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
|
|
</tr><tr>
|
|
<td valign="top"><a href="#GRTOBJAUT.REFOBJTYPE"><b>REFOBJTYPE</b></a></td>
|
|
<td valign="top">Reference object type</td>
|
|
<td valign="top"><b><u>*OBJTYPE</u></b>, *ALRTBL, *BNDDIR, *AUTL, *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, *PRDDFN, *PRDLOD, *PSFCFG, *QMFORM, *QMQRY, *QRYDFN, *RCT, *S36, *SBSD, *SCHIDX, *SPADCT, *SQLPKG, *SQLUDT, *SRVPGM, *SSND, *SVRSTG, *TBL, *TIMZON, *USRIDX, *USRPRF, *USRQ, *USRSPC, *VLDL, *WSCST</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#GRTOBJAUT.REFASPDEV"><b>REFASPDEV</b></a></td>
|
|
<td valign="top">Reference ASP device</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*</u></b>, *SYSBAS</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#GRTOBJAUT.REPLACE"><b>REPLACE</b></a></td>
|
|
<td valign="top">Replace authority</td>
|
|
<td valign="top"><b><u>*NO</u></b>, *YES</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#GRTOBJAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="GRTOBJAUT.OBJ"></a>
|
|
<h3>Object (OBJ)</h3>
|
|
<p>Specifies the objects for which specific authority is to be given to one or more users.
|
|
</p>
|
|
<p>This is a required parameter.
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>generic-name</i></b></dt>
|
|
<dd>Specify the generic name of the objects for which specific authority is to be given to one or more users. A generic name is a character string that contains one or more characters followed by an asterisk (*). If a generic name is specified, all objects that have names with the same prefix as the generic name are shown.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the object for which specific authority is to be given to one or more users.
|
|
</dd>
|
|
<dt><b>*ALL</b></dt>
|
|
<dd>Specific authority is to be given to all objects of the specified object type (OBJTYPE parameter). A specific library name must be specified for the library qualifier when *ALL is specified.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#GRTOBJAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="GRTOBJAUT.OBJTYPE"></a>
|
|
<h3>Object type (OBJTYPE)</h3>
|
|
<p>Specifies the object type of the object for which specific authorities are to be given to the specified users or to an authorization list. Any of the object types can be specified except *AUTL. To see a complete list of object types when prompting this command, position the cursor on the field for this parameter and press F4 (Prompt).
|
|
</p>
|
|
<p>This is a required parameter.
|
|
</p>
|
|
<dl>
|
|
<dt><b>*ALL</b></dt>
|
|
<dd>Specific authorities for all object types (except *AUTL) are given to the specified users or to the authorization list.
|
|
</dd>
|
|
<dt><b><i>object-type</i></b></dt>
|
|
<dd>Specify the object type of the object for which specific authorities are to be given to the specified users.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#GRTOBJAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="GRTOBJAUT.ASPDEV"></a>
|
|
<h3>ASP device (ASPDEV)</h3>
|
|
<p>Specifies the auxiliary storage pool (ASP) device name where the library that contains the object (OBJ parameter) is located. If the object's library resides in an ASP that is not part of the library name space associated with the job, this parameter must be specified to ensure the correct object is used as the target of this command's operation.
|
|
</p>
|
|
<dl>
|
|
<dt><b>*</b></dt>
|
|
<dd>The ASPs that are currently part of the job's library name space will be searched to locate the object. This includes the system ASP (ASP number 1), all defined basic user ASPs (ASP numbers 2-32), and, if the job has an ASP group, all independent ASPs in the ASP group.
|
|
</dd>
|
|
<dt><b>*SYSBAS</b></dt>
|
|
<dd>The system ASP and all basic user ASPs will be searched to locate the object. No independent ASPs will be searched, even if the job has an ASP group.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the device name of the independent ASP to be searched to locate the object. The independent ASP must have been activated (by varying on the ASP device) and have a status of AVAILABLE. The system ASP and basic user ASPs will not be searched.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#GRTOBJAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="GRTOBJAUT.USER"></a>
|
|
<h3>Users (USER)</h3>
|
|
<p>Specifies one or more users to whom authority for the named object is to be given.
|
|
</p>
|
|
<p>This is a required parameter unless either the <b>Reference object (REFOBJ)</b> parameter or <b>Authorization list (AUTL)</b> parameter is specified.
|
|
</p>
|
|
<dl>
|
|
<dt><b>*PUBLIC</b></dt>
|
|
<dd>Users are authorized to use the object as specified in the AUT parameter when they do not have authority specifically given to them for the object, are not on the authorization list and none of their groups have any authority or are on the authorization list. Users who do not have any authority, and whose groups do not have any authority, are authorized to use the object as specified in the AUT parameter.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the names of one or more users to be given specific authority for the object. Up to 50 user profile names can be specified.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#GRTOBJAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="GRTOBJAUT.AUT"></a>
|
|
<h3>Authority (AUT)</h3>
|
|
<p>Specifies the authority to be given to the users specified for the <b>Users (USER)</b> parameter.
|
|
</p>
|
|
<p>If a value is specified for this parameter, you cannot specify a value for the AUTL, REFOBJ, or REFOBJTYPE parameters.
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*CHANGE</u></b></dt>
|
|
<dd>The user can perform all operations on the object except those limited to the owner or controlled by object existence (*OBJEXIST) and object management (*OBJMGT) authorities. The user can change and perform basic functions on the object. *CHANGE authority provides object operational (*OBJOPR) authority and all data authority. If the object is an authorization list, the user cannot add, change, or remove users.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*ALL</b></dt>
|
|
<dd>The user can perform all operations except those limited to the owner or controlled by authorization list management (*AUTLMGT) authority. The user can control the object's existence, specify the security for the object, change the object, and perform basic functions on the object. The user also can change ownership of the object.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*USE</b></dt>
|
|
<dd>The user can perform basic operations on the object, such as running a program or reading a file. The user cannot change the object. Use (*USE) authority provides object operational (*OBJOPR), read (*READ), and execute (*EXECUTE) authorities.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*EXCLUDE</b></dt>
|
|
<dd>The user cannot access the workstation object.
|
|
</dd>
|
|
<dt><b>*AUTL</b></dt>
|
|
<dd>The public authority of the authorization list specified on the AUTL parameter is used for the public authority for the object.
|
|
<p>
|
|
<b>Note: </b>You can specify AUT(*AUTL) only when USER(*PUBLIC) is also specified.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
<p><b>Other values (up to 10 repetitions)</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>*OBJALTER</b></dt>
|
|
<dd>Object alter authority provides the authority needed to alter the attributes of an object. If the user has this authority on a database file, the user can add and remove triggers, add and remove referential and unique constraints, and change the attributes of the database file. If the user has this authority on an SQL package, the user can change the attributes of the SQL package. This authority is currently only used for database files and SQL packages.
|
|
</dd>
|
|
<dt><b>*OBJMGT</b></dt>
|
|
<dd>Object management authority provides the authority to The security for the object, move or rename the object, and add members to database files.
|
|
</dd>
|
|
<dt><b>*OBJEXIST</b></dt>
|
|
<dd>Object existence authority provides the authority to control the object's existence and ownership. If a user has special save system authority (*SAVSYS), object existence authority is not needed to perform save restore operations on the object.
|
|
</dd>
|
|
<dt><b>*OBJOPR</b></dt>
|
|
<dd>Object operational authority provides authority to look at the description of an object and use the object as determined by the data authority that the user has to the object.
|
|
</dd>
|
|
<dt><b>*OBJREF</b></dt>
|
|
<dd>Object reference authority provides the authority needed to reference an object from another object such that operations on that object may be restricted by the other object. If the user has this authority on a physical file, the user can add referential constraints in which the physical file is the parent. This authority is currently only used for database files.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Data authorities</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>*ADD</b></dt>
|
|
<dd>Add authority provides the authority to add entries to an object (for example, job entries to an queue or records to a file).
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*DLT</b></dt>
|
|
<dd>Delete authority provides the authority to remove entries from an object.
|
|
</dd>
|
|
<dt><b>*EXECUTE</b></dt>
|
|
<dd>Execute authority provides the authority needed to run a program or locate an object in a library.
|
|
</dd>
|
|
<dt><b>*READ</b></dt>
|
|
<dd>Read authority provides the authority needed to get the contents of an entry in an object or to run a program.
|
|
</dd>
|
|
<dt><b>*UPD</b></dt>
|
|
<dd>Update authority provides the authority to change the entries in an object.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#GRTOBJAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="GRTOBJAUT.AUTL"></a>
|
|
<h3>Authorization list (AUTL)</h3>
|
|
<p>Specifies the authorization list whose entries are to be used to grant authority for the object specified. You must have authorization list management (*AUTLMGT) authority for the specified authorization list.
|
|
</p>
|
|
<p>If a value is specified for this parameter, you cannot specify a value for the AUT, REFOBJ, or REFOBJTYPE parameters.
|
|
</p>
|
|
<dl>
|
|
<dt><b>*NONE</b></dt>
|
|
<dd>The authorization list that secures the object is removed. If public authority in the object is *AUTL, it is changed to *EXCLUDE.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the authorization list to be used.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#GRTOBJAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="GRTOBJAUT.REFOBJ"></a>
|
|
<h3>Reference object (REFOBJ)</h3>
|
|
<p>Specifies the reference object to be queried to obtain authorization information. Those authorizations are given to the object specified by the OBJ and OBJTYPE parameters. Users authorized to the reference object are authorized in the same manner to the object for which authority is to be given. If the reference object is secured by an authorization list, that authorization list secures the object specified by the OBJ and OBJTYPE parameters.
|
|
</p>
|
|
<p>If a value is specified for this parameter, you cannot specify a value for the AUT or AUTL parameters.
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the reference object.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 2: Library</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIBL</u></b></dt>
|
|
<dd>All libraries in the library list for the current thread are searched until the first match is found.
|
|
</dd>
|
|
<dt><b>*CURLIB</b></dt>
|
|
<dd>The current library for the thread is searched. If no library is specified as the current library for the thread, the QGPL library is used.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the library to be searched.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#GRTOBJAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="GRTOBJAUT.REFOBJTYPE"></a>
|
|
<h3>Reference object type (REFOBJTYPE)</h3>
|
|
<p>Specifies the object type of the reference object specified for the <b>Reference object (REFOBJ)</b> parameter.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*OBJTYPE</u></b></dt>
|
|
<dd>The object type of the reference object is the same as the object type specified for the <b>Object type (OBJTYPE)</b> parameter.
|
|
</dd>
|
|
<dt><b><i>object-type</i></b></dt>
|
|
<dd>Specify the object type of the reference object. To see a complete list of object types when prompting this command, position the cursor on the field for this parameter and press F4 (Prompt).
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#GRTOBJAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="GRTOBJAUT.REFASPDEV"></a>
|
|
<h3>Reference ASP device (REFASPDEV)</h3>
|
|
<p>Specifies the auxiliary storage pool (ASP) device name where the library that contains the reference object (REFOBJ parameter) is located. If the reference object's library resides in an ASP that is not part of the library name space associated with the job, this parameter must be specified to ensure the correct object is queried for authorities.
|
|
</p>
|
|
<dl>
|
|
<dt><b>*</b></dt>
|
|
<dd>The ASPs that are currently part of the job's library name space will be searched to locate the reference object. This includes the system ASP (ASP number 1), all defined basic user ASPs (ASP numbers 2-32), and, if the job has an ASP group, all independent ASPs in the ASP group.
|
|
</dd>
|
|
<dt><b>*SYSBAS</b></dt>
|
|
<dd>The system ASP and all basic user ASPs will be searched to locate the reference object. No independent ASPs will be searched, even if the job has an ASP group.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the device name of the independent ASP to be searched to locate the reference object. The independent ASP must have been activated (by varying on the ASP device) and have a status of AVAILABLE. The system ASP and basic user ASPs will not be searched.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#GRTOBJAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="GRTOBJAUT.REPLACE"></a>
|
|
<h3>Replace authority (REPLACE)</h3>
|
|
<p>Specifies whether the authorities replace the user's current authorities.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NO</u></b></dt>
|
|
<dd>The authorities are given to the user, but no authorities are removed, unless you are granting *EXCLUDE authority.
|
|
</dd>
|
|
<dt><b>*YES</b></dt>
|
|
<dd>The user's current authorities are removed, then the authorities are given to the user.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#GRTOBJAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="GRTOBJAUT.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p><b>Example 1: Granting Authority to All Users</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
GRTOBJAUT OBJ(USERLIB/PROGRAM1) OBJTYPE(*PGM) USER(*PUBLIC)
|
|
</pre>
|
|
</p>
|
|
<p>This command gives authority to use the object named PROGRAM1 to all users of the system who do not have authorities specifically given to them, who are not on an authorization list, whose user groups do not have authority to the object, or whose user groups are not on the authorization list. The object is a program (*PGM) located in the library named USERLIB. Because the AUT parameter is not specified, the authority given to all users is change authority. This allows all users to run the program and to debug it.
|
|
</p>
|
|
<p><b>Example 2: Granting Object Management Authority</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
GRTOBJAUT OBJ(ARLIB/PROGRAM2) OBJTYPE(*PGM) USER(TMSMITH)
|
|
AUT(*OBJMGT)
|
|
</pre>
|
|
</p>
|
|
<p>This command gives object management authority to user named TMSMITH. This authority allows TMSMITH to grant to others personally possessed authorities for the object named PROGRAM2, which is a program located in the library named ARLIB.
|
|
</p>
|
|
<p><b>Example 3: Granting Authority to Users on Authorization List</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
GRTOBJAUT OBJ(MYLIB/PRGM3) OBJTYPE(*PGM) AUTL(KLIST)
|
|
</pre>
|
|
</p>
|
|
<p>This command gives to users the authority specified for them on authorization list KLIST for the object named PRGM3. The object is a program located in library MYLIB.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#GRTOBJAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="GRTOBJAUT.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPF22A0</b></dt>
|
|
<dd>Authority of *AUTL is allowed only with USER(*PUBLIC).
|
|
</dd>
|
|
<dt><b>CPF22A1</b></dt>
|
|
<dd>OBJTYPE(*AUTL) not valid on this command.
|
|
</dd>
|
|
<dt><b>CPF22A2</b></dt>
|
|
<dd>Authority of *AUTL not allowed for object type *USRPRF.
|
|
</dd>
|
|
<dt><b>CPF22A3</b></dt>
|
|
<dd>AUTL parameter not allowed for object type *USRPRF.
|
|
</dd>
|
|
<dt><b>CPF22A9</b></dt>
|
|
<dd>Authority of *AUTL cannot be specified.
|
|
</dd>
|
|
<dt><b>CPF22DA</b></dt>
|
|
<dd>Operation on file &1 in &2 not allowed.
|
|
</dd>
|
|
<dt><b>CPF2207</b></dt>
|
|
<dd>Not authorized to use object &1 in library &3 type *&2.
|
|
</dd>
|
|
<dt><b>CPF2208</b></dt>
|
|
<dd>Object &1 in library &3 type *&2 not found.
|
|
</dd>
|
|
<dt><b>CPF2209</b></dt>
|
|
<dd>Library &1 not found.
|
|
</dd>
|
|
<dt><b>CPF2210</b></dt>
|
|
<dd>Operation not allowed for object type *&1.
|
|
</dd>
|
|
<dt><b>CPF2211</b></dt>
|
|
<dd>Not able to allocate object &1 in &3 type *&2.
|
|
</dd>
|
|
<dt><b>CPF2216</b></dt>
|
|
<dd>Not authorized to use library &1.
|
|
</dd>
|
|
<dt><b>CPF2223</b></dt>
|
|
<dd>Not authorized to give authority to object &1 in &3 type *&2.
|
|
</dd>
|
|
<dt><b>CPF2227</b></dt>
|
|
<dd>One or more errors occurred during processing of command.
|
|
</dd>
|
|
<dt><b>CPF2236</b></dt>
|
|
<dd>AUT input value not supported.
|
|
</dd>
|
|
<dt><b>CPF2243</b></dt>
|
|
<dd>Library name &1 not allowed with OBJ(generic name) or OBJ(*ALL).
|
|
</dd>
|
|
<dt><b>CPF2245</b></dt>
|
|
<dd>Process profile not owner of object &1 in &3 type *&2.
|
|
</dd>
|
|
<dt><b>CPF2253</b></dt>
|
|
<dd>No objects found for &1 in library &2.
|
|
</dd>
|
|
<dt><b>CPF2254</b></dt>
|
|
<dd>No libraries found for &1 request.
|
|
</dd>
|
|
<dt><b>CPF2273</b></dt>
|
|
<dd>Authority may not have been changed for object &1 in &3 type *&2 for user &4.
|
|
</dd>
|
|
<dt><b>CPF2283</b></dt>
|
|
<dd>Authorization list &1 does not exist.
|
|
</dd>
|
|
<dt><b>CPF2290</b></dt>
|
|
<dd>*EXCLUDE cannot be specified with another authority.
|
|
</dd>
|
|
<dt><b>CPF9804</b></dt>
|
|
<dd>Object &2 in library &3 damaged.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#GRTOBJAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|