367 lines
16 KiB
HTML
367 lines
16 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>Delete User Profile (DLTUSRPRF)</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="DLTUSRPRF.Top_Of_Page"></a>
|
|
<h2>Delete User Profile (DLTUSRPRF)</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="#DLTUSRPRF.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#DLTUSRPRF.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#DLTUSRPRF.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="DLTUSRPRF"></a>
|
|
<p>The Delete User Profile (DLTUSRPRF) command deletes a user profile from the system. The user of this command must have security administrator (*SECADM) special authority (which can be obtained through the program adopt operation), and object existence (*OBJEXIST) authority and use (*USE) authority for the user profile to be deleted.
|
|
</p>
|
|
<p>The message queue associated with this user profile is automatically deleted if the user profile is the owner of the message queue.
|
|
</p>
|
|
<p>If a user profile is damaged by system failure, it can be deleted by using the Delete User Profile (DLTUSRPRF) command and re-created by using the Create User Profile (CRTUSRPRF) command. After a user profile is re-created, the owned objects and primary group objects can be transferred back to it. Also, authorities that were granted to the damaged profile must be granted again to the new user profile by using the Grant Object Authority (GRTOBJAUT) command.
|
|
</p>
|
|
<p><b>Restrictions:</b>
|
|
</p>
|
|
<ul>
|
|
<li>You must have use (*USE) and object existence (*OBJEXIST) authority to the user profile.
|
|
</li>
|
|
<li>You must have *OBJEXIST, *USE, and delete (*DLT) authorities to delete a message queue associated with and owned by the user profile.
|
|
</li>
|
|
<li>The user profile cannot be deleted if a user is currently running under the profile, or if it owns any objects and OWNOBJOPT(*NODLT) is specified. All objects in the user profile must first either be transferred to new owners by using the Change Object Owner (CHGOBJOWN) command or be deleted from the system. This can also be accomplished by specifying OWNOBJOPT(*DLT) to delete the objects or OWNOBJOPT(*CHGOWN user-profile-name) to change the ownership. Authority granted to the user does not have to be specifically revoked by the Revoke Object Authority (RVKOBJAUT) command; it is automatically revoked when the user profile is deleted.
|
|
</li>
|
|
<li>To delete any object, you must have *OBJEXIST authority for the object.
|
|
</li>
|
|
<li>The user profile cannot be deleted if it is the primary group for any object. All objects that the user is the primary group for must either be transferred to new users by using the Change Object Primary Group (CHGOBJPGP) command, or be deleted from the system. The transfer can be accomplished by specifying PGPOPT(*CHGPGP user-profile-name) to change the primary group.
|
|
</li>
|
|
<li>This command calls the system distribution directory support to delete the user from the directory and to delete the user from distribution lists, if necessary. The system distribution directory support uses journaling and commitment control for the system distribution directory files (QUSURSYS/QAOS*). Commitment control must be inactive when this function is requested. If commitment control is active when this function is requested, the journal must be QUSRSYS/QAOSDIAJRN.
|
|
</li>
|
|
</ul>
|
|
<p><b>ADDITIONAL CONSIDERATIONS</b>
|
|
</p>
|
|
<ol>
|
|
<li>Owned object types *USRPRF, *RCT, and *AUTHLR are not deleted from the system. Ownership of these object types is transferred to user profile QDFTOWN.
|
|
</li>
|
|
<li>Owned objects of the type *PRDDFN are not deleted. Ownership is transferred to the user profile QSYS.
|
|
</li>
|
|
<li>In addition to the above restrictions, all restrictions that apply to DLTLIB also apply to specifying OWNOBJOPT(*DLT). For example, if an object is in use, it cannot be deleted. Or, if a physical file has an associated logical file owned by another user, the physical file cannot be deleted.
|
|
</li>
|
|
<li>Owned objects of type *LIB are not deleted from the system if the library contains objects owned by another user profile. The ownership of the library is transferred to the system user profile, QDFTOWN.
|
|
</li>
|
|
<li>Owned objects of type *DIR are not deleted from the system if the directory contains objects owned by another user profile. The ownership of the directory is transferred to the system user profile, QDFTOWN.
|
|
</li>
|
|
<li>Owned objects of type *BLKSF are not deleted from the system if the user-defined file system represented by the *BLKSF contains objects owned by another user profile. The ownership of the user-defined file system is transferred to the system user profile, QDFTOWN.
|
|
</li>
|
|
<li>A user profile cannot be both the owner of the object and the primary group of the object. Therefore, if the new owner is already the primary group of an object that the current user owns, the transfer of ownership fails. Also, if the new primary group already owns an object that the current user is the primary group of, the transfer of primary groups fails.
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#DLTUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="DLTUSRPRF.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"><a href="#DLTUSRPRF.USRPRF"><b>USRPRF</b></a></td>
|
|
<td valign="top">User profile</td>
|
|
<td valign="top"><i>Name</i></td>
|
|
<td valign="top">Required, Positional 1</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#DLTUSRPRF.OWNOBJOPT"><b>OWNOBJOPT</b></a></td>
|
|
<td valign="top">Owned object option</td>
|
|
<td valign="top">Single values: <b><u>*NODLT</u></b>, *DLT<br>Other values: <i>Element list</i></td>
|
|
<td valign="top" rowspan="3">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Element 1: Owned object value</td>
|
|
<td valign="top">
|
|
*CHGOWN</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Element 2: User profile name if *CHGOWN</td>
|
|
<td valign="top">
|
|
<i>Name</i></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="4"><a href="#DLTUSRPRF.PGPOPT"><b>PGPOPT</b></a></td>
|
|
<td valign="top">Primary group option</td>
|
|
<td valign="top">Single values: <b><u>*NOCHG</u></b><br>Other values: <i>Element list</i></td>
|
|
<td valign="top" rowspan="4">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Element 1: Primary group value</td>
|
|
<td valign="top">
|
|
*CHGPGP</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Element 2: New primary group</td>
|
|
<td valign="top">
|
|
<i>Name</i>, *NONE</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Element 3: New primary group authority</td>
|
|
<td valign="top">
|
|
<b><u>*OLDPGP</u></b>, *PRIVATE, *ALL, *CHANGE, *USE, *EXCLUDE</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#DLTUSRPRF.EIMASSOC"><b>EIMASSOC</b></a></td>
|
|
<td valign="top">EIM association</td>
|
|
<td valign="top"><b><u>*DLT</u></b>, *NODLT</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#DLTUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="DLTUSRPRF.USRPRF"></a>
|
|
<h3>User profile (USRPRF)</h3>
|
|
<p>Specifies the user profile to be deleted.
|
|
</p>
|
|
<p>This is a required parameter.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>The following IBM-supplied user profiles are not valid on this parameter:
|
|
</p>
|
|
<p>QANZAGENT, QAUTPROF, QCLUMGT, QCLUSTER, QCOLSRV, QDBSHR, QDBSHRDO, QDFTOWN, QDIRSRV, QDLFM, QDOC, QDSNX, QEJB, QEJBSVR, QFNC, QGATE, QIBMHELP, QIPP, QLPAUTO, QLPINSTALL, QMGTC, QMSF, QNETSPLF, QNFSANON, QNTP, QPEX, QPGMR, QPM400, QSECOFR, QSNADS, QSPL, QSPLJOB, QSRV, QSRVAGT, QSRVBAS, QSYS, QSYSOPR, QTCM, QTCP, QTFTP, QTMHHTTP, QTMHHTP1, QTSTRQS, QUSER, QYCMCIMOM, QYPSJSVR
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the user profile to be deleted.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#DLTUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="DLTUSRPRF.OWNOBJOPT"></a>
|
|
<h3>Owned object option (OWNOBJOPT)</h3>
|
|
<p>Specifies the type of operations to be performed on the owned objects of the user profile.
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NODLT</u></b></dt>
|
|
<dd>The owned objects for the user profile are not changed, and the user profile is not deleted if the user owns any objects.
|
|
</dd>
|
|
<dt><b>*DLT</b></dt>
|
|
<dd>The owned objects for the user profile are deleted. The user profile is deleted if the deletion of all owned objects is successful.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Element 1: Owned object value</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>*CHGOWN</b></dt>
|
|
<dd>The owned objects for the user profile have ownership transferred to the specified user profile. The user profile is deleted if the transfer of all owned objects is successful.
|
|
<p>When *CHGOWN is specified, a user profile name must be specified for the new user profile. The new user profile owns all objects owned by the user profile specified for the <b>User profile (USRPRF)</b> parameter.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
<p><b>Element 2: User profile name if *CHGOWN</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>name</b></dt>
|
|
<dd>Specify the name of the user profile to be the new owner.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#DLTUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="DLTUSRPRF.PGPOPT"></a>
|
|
<h3>Primary group option (PGPOPT)</h3>
|
|
<p>Specifies the type of operations to be done on the objects the user profile to be deleted is the primary group for.
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NOCHG</u></b></dt>
|
|
<dd>The objects the user profile is the primary group for do not change, and the user profile is not deleted if the user is the primary group for any objects.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Element 1: Primary group value</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>*CHGPGP</b></dt>
|
|
<dd>The objects the user profile is the primary group for are transferred to the specified user profile. The user profile is deleted if the transfer of all objects is successful.
|
|
<p>When *CHGPGP is specified, a user profile name or *NONE must be specified. If a user profile name is specified, that user will be the primary group for all objects for which the user profile specified by the USRPRF parameter is the primary group. If *NONE is specified, all of the objects for which the user profile specified by the USRPRF parameter is the primary group for will no longer have a primary group.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
<p><b>Element 2: New primary group</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>*NONE</b></dt>
|
|
<dd>The objects do not have a primary group.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the user profile to be the new primary group. The user profile specified must have a group ID number (<b>gid</b>).
|
|
</dd>
|
|
</dl>
|
|
<p><b>Element 3: New primary group authority</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*OLDPGP</u></b></dt>
|
|
<dd>The new primary group has the same authority to the object as the old primary group.
|
|
</dd>
|
|
<dt><b>*PRIVATE</b></dt>
|
|
<dd>If the new primary group has a private authority to the object, it will become the primary group for that object and the primary group authority will be what the private authority was. 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 new primary group has *ALL authority to the object.
|
|
</dd>
|
|
<dt><b>*CHANGE</b></dt>
|
|
<dd>The new primary group has *CHANGE authority to the object.
|
|
</dd>
|
|
<dt><b>*USE</b></dt>
|
|
<dd>The new primary group has *USE authority to the object.
|
|
</dd>
|
|
<dt><b>*EXCLUDE</b></dt>
|
|
<dd>The new primary group has *EXCLUDE authority to the object.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#DLTUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="DLTUSRPRF.EIMASSOC"></a>
|
|
<h3>EIM association (EIMASSOC)</h3>
|
|
<p>Specifies whether Enterprise Identity Mapping (EIM) associations should be deleted for this user in the local registry. All types of associations for this user in the local registry will be deleted, including target, source, admin and policy.
|
|
</p>
|
|
<p>If this system is not configured for EIM, then no processing is done. If this system is configured for EIM, but the connect to EIM fails (for example, the LDAP server that EIM is configured to use is not active), then a QSYEIM job is submitted that will attempt to connect to EIM for one hour. Not being able to delete EIM associations does not cause the delete of the profile to fail.
|
|
</p>
|
|
<p>If associations are not deleted, a profile created with the same name will use these associations.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*DLT</u></b></dt>
|
|
<dd>EIM associations will be deleted.
|
|
</dd>
|
|
<dt><b>*NODLT</b></dt>
|
|
<dd>EIM associations will not be deleted.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#DLTUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="DLTUSRPRF.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p>
|
|
<pre>
|
|
DLTUSRPRF USRPRF(JJADAMS)
|
|
</pre>
|
|
</p>
|
|
<p>This command deletes the user profile named JJADAMS from the system if no objects are owned by the user profile, no user is currently running under it, and the user is not the primary group of any objects.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#DLTUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="DLTUSRPRF.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPFA030</b></dt>
|
|
<dd>Object already in use.
|
|
</dd>
|
|
<dt><b>CPF22BF</b></dt>
|
|
<dd>User profile &1 not deleted.
|
|
</dd>
|
|
<dt><b>CPF22B3</b></dt>
|
|
<dd>User profile &1 not deleted.
|
|
</dd>
|
|
<dt><b>CPF22C1</b></dt>
|
|
<dd>NEWOWN and USRPRF parameters cannot be the same.
|
|
</dd>
|
|
<dt><b>CPF220A</b></dt>
|
|
<dd>New owner &1 does not have a uid.
|
|
</dd>
|
|
<dt><b>CPF220B</b></dt>
|
|
<dd>New primary group &1 does not have a gid.
|
|
</dd>
|
|
<dt><b>CPF220C</b></dt>
|
|
<dd>Owner and primary group cannot be the same.
|
|
</dd>
|
|
<dt><b>CPF2203</b></dt>
|
|
<dd>User profile &1 not correct.
|
|
</dd>
|
|
<dt><b>CPF2204</b></dt>
|
|
<dd>User profile &1 not found.
|
|
</dd>
|
|
<dt><b>CPF221A</b></dt>
|
|
<dd>User profile &1 not deleted.
|
|
</dd>
|
|
<dt><b>CPF221E</b></dt>
|
|
<dd>User profile &1 not deleted.
|
|
</dd>
|
|
<dt><b>CPF221F</b></dt>
|
|
<dd>PGPOPT and USRPRF parameters cannot be the same.
|
|
</dd>
|
|
<dt><b>CPF2213</b></dt>
|
|
<dd>Not able to allocate user profile &1.
|
|
</dd>
|
|
<dt><b>CPF2215</b></dt>
|
|
<dd>User profile &1 not deleted.
|
|
</dd>
|
|
<dt><b>CPF2217</b></dt>
|
|
<dd>Not authorized to user profile &1.
|
|
</dd>
|
|
<dt><b>CPF2222</b></dt>
|
|
<dd>Storage limit is greater than specified for user profile &1.
|
|
</dd>
|
|
<dt><b>CPF2225</b></dt>
|
|
<dd>Not able to allocate internal system object.
|
|
</dd>
|
|
<dt><b>CPF2227</b></dt>
|
|
<dd>One or more errors occurred during processing of command.
|
|
</dd>
|
|
<dt><b>CPF2229</b></dt>
|
|
<dd>Not authorized to delete user profile.
|
|
</dd>
|
|
<dt><b>CPF2238</b></dt>
|
|
<dd>Access path to user profiles damaged.
|
|
</dd>
|
|
<dt><b>CPF2258</b></dt>
|
|
<dd>Group profile &1 not deleted.
|
|
</dd>
|
|
<dt><b>CPF2263</b></dt>
|
|
<dd>Group information removed from &1 user profiles.
|
|
</dd>
|
|
<dt><b>CPF2265</b></dt>
|
|
<dd>User profile &1 not deleted.
|
|
</dd>
|
|
</dl>
|
|
<p><b><u>*STATUS Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPI2236</b></dt>
|
|
<dd>Deleting owned objects.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#DLTUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|