ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/chgobjpgp.htm

332 lines
13 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>Change Object Primary Group (CHGOBJPGP)</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="CHGOBJPGP.Top_Of_Page"></a>
<h2>Change Object Primary Group (CHGOBJPGP)</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="#CHGOBJPGP.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CHGOBJPGP.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CHGOBJPGP.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CHGOBJPGP"></a>
<p>The Change Object Primary Group (CHGOBJPGP) command changes the object's primary group from one user to another. The owner's and other users' private authorities to the object do not change.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>To change the primary group, you must have the following:
<ul>
<li>Object existence (*OBJEXIST) authority for the object
</li>
<li>Object operational (*OBJOPR) and *OBJEXIST authorities if the object is a file, library, or subsystem description
</li>
<li>All object (*ALLOBJ) special authority, or ownership, if the object is an authorization list
</li>
<li>Object management (*OBJMGT) authority for the object, if revoking the authority for the old primary group
</li>
<li>*OBJMGT authority for the object and the authorities to be given, if a value other than *PRIVATE is specified for the PGPAUT parameter
</li>
<li>Use (*USE) authority to the auxiliary storage pool device if one is specified.
</li>
<li>
</li>
</ul>
</li>
<li>Object type *DOC or *FLR cannot be specified; the user must use DLO support
</li>
<li>The new primary group user cannot be the owner of the object
</li>
<li>The new primary group user must have a group ID number (<b>gid</b>)
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGOBJPGP.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CHGOBJPGP.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="#CHGOBJPGP.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>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top"><a href="#CHGOBJPGP.OBJTYPE"><b>OBJTYPE</b></a></td>
<td valign="top">Object type</td>
<td valign="top">*ALRTBL, *AUTL, *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, *IMGCLG, *IPXD, *JOBD, *JOBQ, *JRN, *JRNRCV, *LIB, *LIND, *LOCALE, *M36, *M36CFG, *MEDDFN, *MENU, *MGTCOL, *MODD, *MODULE, *MSGF, *MSGQ, *NODGRP, *NODL, *NTBD, *NWID, *NWSCFG, *NWSD, *ORTBL, *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="#CHGOBJPGP.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="#CHGOBJPGP.NEWPGP"><b>NEWPGP</b></a></td>
<td valign="top">New primary group</td>
<td valign="top"><i>Name</i>, *NONE</td>
<td valign="top">Required, Positional 3</td>
</tr>
<tr>
<td valign="top"><a href="#CHGOBJPGP.PGPAUT"><b>PGPAUT</b></a></td>
<td valign="top">New primary group authority</td>
<td valign="top"><b><u>*OLDPGP</u></b>, *PRIVATE, *ALL, *CHANGE, *USE, *EXCLUDE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGOBJPGP.RVKOLDAUT"><b>RVKOLDAUT</b></a></td>
<td valign="top">Revoke old authority</td>
<td valign="top"><b><u>*YES</u></b>, *NO</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CHGOBJPGP.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CHGOBJPGP.OBJ"></a>
<h3>Object (OBJ)</h3>
<p>Specifies the object that is to have its primary group changed.
</p>
<p>This is a required parameter.
</p>
<p>
<b>Note: </b>A library name can be specified to ensure that the correct object has its primary group changed.
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the object that is to have its primary group changed to another user.
</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="#CHGOBJPGP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGOBJPGP.OBJTYPE"></a>
<h3>Object type (OBJTYPE)</h3>
<p>Specifies the object type of the object whose primary group is to be changed. For more information, refer to the OBJTYPE parameter description in "Commonly used parameters: Expanded descriptions" in CL concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b><i>object-type</i></b></dt>
<dd>Specify the object type of the object to be changed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGOBJPGP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGOBJPGP.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="#CHGOBJPGP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGOBJPGP.NEWPGP"></a>
<h3>New primary group (NEWPGP)</h3>
<p>Specifies the user who is to be the new primary group for the object. The user profile must already exist when this command is run, and must have a group identifier (or <b>gid</b>) assigned to it.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b>*NONE</b></dt>
<dd>The object does not have a primary group.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the user profile who is to be the new primary group for the object.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGOBJPGP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGOBJPGP.PGPAUT"></a>
<h3>New primary group authority (PGPAUT)</h3>
<p>Specifies what authority the new primary group has to the object.
</p>
<dl>
<dt><b><u>*OLDPGP</u></b></dt>
<dd>The new primary group has whatever authority the old primary group had to the object.
</dd>
<dt><b>*PRIVATE</b></dt>
<dd>The new primary group has whatever private authority it had to the object. If the new primary group does not have a private authority to the object, it becomes the primary group but does not have any authority to the object.
</dd>
<dt><b>*ALL</b></dt>
<dd>The user can perform all operations except those limited to the owner or controlled by authorization list management 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 can also change ownership of the object.
</dd>
<dt><b>*CHANGE</b></dt>
<dd>The new primary group is given change authority to the object.
</dd>
<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 authority provides object operational authority, read authority, and execute authority.
</dd>
<dt><b>*EXCLUDE</b></dt>
<dd>The user cannot access the object.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGOBJPGP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGOBJPGP.RVKOLDAUT"></a>
<h3>Revoke old authority (RVKOLDAUT)</h3>
<p>Specifies whether the authorities for the current primary group are revoked when the primary group is changed to the user specified for the <b>New primary group (NEWPGP)</b> parameter.
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>The authorities for the current primary group are revoked when the primary group is changed to the other user.
</dd>
<dt><b>*NO</b></dt>
<dd>The authorities for the current primary group become a private authority when the primary group is changed to the other user.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGOBJPGP.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGOBJPGP.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
CHGOBJPGP OBJ(USERLIB/PROGRAM1) OBJTYPE(*PGM) NEWPGP(ANN)
PGPAUT(*CHANGE)
</pre>
</p>
<p>This command changes the primary group for the program named PROGRAM1, located in the user library USERLIB, to the group named ANN. The new primary group has *CHANGE authority to the object. The authority is revoked from the current primary group.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGOBJPGP.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGOBJPGP.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF22BE</b></dt>
<dd>Function not done for user profile &amp;1.
</dd>
<dt><b>CPF22DA</b></dt>
<dd>Operation on file &amp;1 in &amp;2 not allowed.
</dd>
<dt><b>CPF220B</b></dt>
<dd>New primary group &amp;1 does not have a gid.
</dd>
<dt><b>CPF220C</b></dt>
<dd>Owner and primary group cannot be the same.
</dd>
<dt><b>CPF220D</b></dt>
<dd>Primary group may not be changed for object &amp;1 in &amp;3 type &amp;2.
</dd>
<dt><b>CPF2204</b></dt>
<dd>User profile &amp;1 not found.
</dd>
<dt><b>CPF2207</b></dt>
<dd>Not authorized to use object &amp;1 in library &amp;3 type *&amp;2.
</dd>
<dt><b>CPF2208</b></dt>
<dd>Object &amp;1 in library &amp;3 type *&amp;2 not found.
</dd>
<dt><b>CPF2209</b></dt>
<dd>Library &amp;1 not found.
</dd>
<dt><b>CPF221D</b></dt>
<dd>Primary group may not have been changed for object &amp;1 in &amp;3 type *&amp;2.
</dd>
<dt><b>CPF2210</b></dt>
<dd>Operation not allowed for object type *&amp;1.
</dd>
<dt><b>CPF2211</b></dt>
<dd>Not able to allocate object &amp;1 in &amp;3 type *&amp;2.
</dd>
<dt><b>CPF2213</b></dt>
<dd>Not able to allocate user profile &amp;1.
</dd>
<dt><b>CPF2216</b></dt>
<dd>Not authorized to use library &amp;1.
</dd>
<dt><b>CPF2217</b></dt>
<dd>Not authorized to user profile &amp;1.
</dd>
<dt><b>CPF2222</b></dt>
<dd>Storage limit is greater than specified for user profile &amp;1.
</dd>
<dt><b>CPF2226</b></dt>
<dd>Function not done for user profile &amp;1.
</dd>
<dt><b>CPF2230</b></dt>
<dd>Not authorized to object &amp;1 in library &amp;3.
</dd>
<dt><b>CPF2232</b></dt>
<dd>Not authorized to user profile &amp;1.
</dd>
<dt><b>CPF2233</b></dt>
<dd>No delete authority to user profile &amp;1.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGOBJPGP.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>