217 lines
8.2 KiB
HTML
217 lines
8.2 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>Create Authority Holder (CRTAUTHLR)</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="CRTAUTHLR.Top_Of_Page"></a>
|
||
|
<h2>Create Authority Holder (CRTAUTHLR)</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="#CRTAUTHLR.PARAMETERS.TABLE">Parameters</a><br>
|
||
|
<a href="#CRTAUTHLR.COMMAND.EXAMPLES">Examples</a><br>
|
||
|
<a href="#CRTAUTHLR.ERROR.MESSAGES">Error messages</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<div> <a name="CRTAUTHLR"></a>
|
||
|
<p>The Create Authority Holder (CRTAUTHLR) command allows a user to create an authority holder to secure an object of type *FILE before it exists on the system. The file must be a program-described database file. When an object by the specified name is created, the authorities specified in the authority holder are linked to the newly created object.
|
||
|
</p>
|
||
|
<p>The authority holder is associated with one specific object, object type, and library. This allows only users with the correct authority to access the object. The authority holder and associated object always have the same owner.
|
||
|
</p>
|
||
|
<p>If the object has authorities associated with it, they are linked to the newly created authority holder. The owner of the object becomes the owner of the authority holder. Authority holders are located in library QSYS.
|
||
|
</p>
|
||
|
<p><b>Restrictions:</b>
|
||
|
</p>
|
||
|
<ul>
|
||
|
<li>This command is shipped with public *EXCLUDE authority.
|
||
|
</li>
|
||
|
<li>The object type to be secured by the new authority holder is limited to *FILE. The file must be a program-described database file.
|
||
|
</li>
|
||
|
<li>The authority holder cannot be created for objects located in libraries QRCL, QRECOVERY, QSPL, QSPLxxxx, QSYS, or QTEMP.
|
||
|
</li>
|
||
|
<li>Authority holders can only secure files in the system auxiliary storage pool (ASP) or a basic user ASP.
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTAUTHLR.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
|
||
|
<div>
|
||
|
<h3><a name="CRTAUTHLR.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="#CRTAUTHLR.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>Name</i></td>
|
||
|
</tr><tr>
|
||
|
<td valign="top">Qualifier 2: Library</td>
|
||
|
<td valign="top"><i>Name</i></td>
|
||
|
</tr><tr>
|
||
|
<td valign="top"><a href="#CRTAUTHLR.AUT"><b>AUT</b></a></td>
|
||
|
<td valign="top">Authority</td>
|
||
|
<td valign="top"><i>Name</i>, <b><u>*LIBCRTAUT</u></b>, *CHANGE, *ALL, *USE, *EXCLUDE</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTAUTHLR.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div> <a name="CRTAUTHLR.OBJ"></a>
|
||
|
<h3>Object (OBJ)</h3>
|
||
|
<p>Specifies the database file that the authority holder secures when the object is created.
|
||
|
</p>
|
||
|
<p>This is a required parameter.
|
||
|
</p>
|
||
|
<p><b>Qualifier 1: Object</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name to be given to the authority holder object.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Qualifier 2: Library</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the library where the authority holder is created.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTAUTHLR.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTAUTHLR.AUT"></a>
|
||
|
<h3>Authority (AUT)</h3>
|
||
|
<p>Specifies the authority you are giving to users who do not have specific authority for the object, who are not on an authorization list, and whose group profile or supplemental group profiles do not have specific authority for the object.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*LIBCRTAUT</u></b></dt>
|
||
|
<dd>The system determines the authority for the object by using the value specified for the <b>Create authority (CRTAUT)</b> parameter on the Create Library command (CRTLIB) for the library containing the object to be created. If the value specified for the CRTAUT parameter is changed, the new value will not affect any existing objects.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b>*CHANGE</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 object.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of an authorization list to be used for authority to the object. Users included in the authorization list are granted authority to the object as specified in the list. The authorization list must exist when the object is created.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTAUTHLR.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="CRTAUTHLR.COMMAND.EXAMPLES">Examples</a> </h3>
|
||
|
<p>
|
||
|
<pre>
|
||
|
CRTAUTHLR OBJ(QGPL/FIL1) AUT(*EXCLUDE)
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command creates an authority holder for object FIL1 in library QGPL with *EXCLUDE authority.
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
GRTOBJAUT OBJ(QGPL/FIL1) TYPE(*FILE) USER(TWO) AUT(*USE)
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>By running this command, *USE authority is granted to user TWO for the authority holder that secures file FIL1 in library QGPL.
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
CRTSRCF FILE(QGPL/FIL1)
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>By running this command, user ONE creates a file that has a matching authority holder. User ONE becomes the owner of the file with user TWO having *USE authority to QGPL/FIL1.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTAUTHLR.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="CRTAUTHLR.ERROR.MESSAGES">Error messages</a> </h3>
|
||
|
<p><b><u>*ESCAPE Messages</u></b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>CPC2212</b></dt>
|
||
|
<dd>Authority holder created.
|
||
|
</dd>
|
||
|
<dt><b>CPF2122</b></dt>
|
||
|
<dd>Storage limit exceeded for user profile &1.
|
||
|
</dd>
|
||
|
<dt><b>CPF2163</b></dt>
|
||
|
<dd>Creation of authority holder in &2 not allowed.
|
||
|
</dd>
|
||
|
<dt><b>CPF22BA</b></dt>
|
||
|
<dd>Authority holder could not be created.
|
||
|
</dd>
|
||
|
<dt><b>CPF22BC</b></dt>
|
||
|
<dd>Object &1 type &3 is not program defined.
|
||
|
</dd>
|
||
|
<dt><b>CPF22B2</b></dt>
|
||
|
<dd>Not authorized to create or delete authority holder.
|
||
|
</dd>
|
||
|
<dt><b>CPF22B5</b></dt>
|
||
|
<dd>Authority holder already exists.
|
||
|
</dd>
|
||
|
<dt><b>CPF22B6</b></dt>
|
||
|
<dd>Authority holder could not be created.
|
||
|
</dd>
|
||
|
<dt><b>CPF2283</b></dt>
|
||
|
<dd>Authorization list &1 does not exist.
|
||
|
</dd>
|
||
|
<dt><b>CPF2289</b></dt>
|
||
|
<dd>Unable to allocate authorization list &1.
|
||
|
</dd>
|
||
|
<dt><b>CPF9803</b></dt>
|
||
|
<dd>Cannot allocate object &2 in library &3.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTAUTHLR.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|