141 lines
5.7 KiB
HTML
141 lines
5.7 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 Security Attributes (CHGSECA)</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="CHGSECA.Top_Of_Page"></a>
|
|
<h2>Change Security Attributes (CHGSECA)</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="#CHGSECA.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#CHGSECA.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#CHGSECA.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="CHGSECA"></a>
|
|
<p>The Change Security Attributes (CHGSECA) command changes the security attributes of a system. This command can be issued to:
|
|
</p>
|
|
<ul>
|
|
<li>Change the starting value for user ID numbers (UID) that are generated for user profiles.
|
|
</li>
|
|
<li>Change the starting value for group ID numbers (GID) that are generated for user profiles.
|
|
</li>
|
|
</ul>
|
|
<p>When the UID (user ID number) is to be changed, a search is made for the first available user ID number, starting at the specified value. When the GID (group ID number) is to be changed, a search is made for the first available group ID number, starting at the specified value. If the maximum number is reached before an available number is found, the search will wrap and continue searching starting at 101. These numbers will then be used the next time a UID or GID is generated, for example, when the Create User Profile (CRTUSRPRF) command is issued and *GEN is specified for the UID parameter or the GID parameter, or when profiles are restored. Each subsequent time a UID or GID is generated, the search starts with the last used UID or GID that was generated.
|
|
</p>
|
|
<p>If the UID or GID parameter is not specified, or *SAME is specified, no change will be made to the starting value.
|
|
</p>
|
|
<p>You can use this command to set the starting point for generating UIDs or GIDs on i5/OS to one value (for example 3000) and the starting point on a different system could be set to a different value (for example 5000). This facilitates generating unique UID or GID values on multiple systems in a network.
|
|
</p>
|
|
<p>The Change User Profile (CHGUSRPRF) command or the Change User Profile UID or GID (QSYCHGID) API can be used to specify the same UID for profiles on different systems or to The same GID for profiles on different systems.
|
|
</p>
|
|
<p><b>Restrictions:</b>
|
|
</p>
|
|
<ul>
|
|
<li>You must have security administrator (*SECADM) special authority.
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGSECA.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="CHGSECA.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="#CHGSECA.UID"><b>UID</b></a></td>
|
|
<td valign="top">User ID number</td>
|
|
<td valign="top">101-4294967294, <b><u>*SAME</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CHGSECA.GID"><b>GID</b></a></td>
|
|
<td valign="top">Group ID number</td>
|
|
<td valign="top">101-4294967294, <b><u>*SAME</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGSECA.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="CHGSECA.UID"></a>
|
|
<h3>User ID number (UID)</h3>
|
|
<p>Specifies the new starting value at which a search for an available user ID (UID) number will begin.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*SAME</u></b></dt>
|
|
<dd>No change is made to the starting value for generated UIDs.
|
|
</dd>
|
|
<dt><b><i>101-4294967294</i></b></dt>
|
|
<dd>Specify the new starting value at which a search for an available UID number will begin.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGSECA.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CHGSECA.GID"></a>
|
|
<h3>Group ID number (GID)</h3>
|
|
<p>Specifies the new starting value at which a search for an available group ID (GID) number will begin.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*SAME</u></b></dt>
|
|
<dd>No change is made to the starting value for generated GIDs.
|
|
</dd>
|
|
<dt><b><i>101-4294967294</i></b></dt>
|
|
<dd>Specify the new starting value at which a search for an available GID number will begin.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGSECA.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="CHGSECA.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p>
|
|
<pre>
|
|
CHGSECA UID(2000) GID(3000)
|
|
</pre>
|
|
</p>
|
|
<p>User ID numbers generated after this command has run will start with the first available user ID number found with the search starting at 2000. Group ID numbers generated after this command has run will start with the first available user ID number found with the search starting at 3000.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGSECA.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="CHGSECA.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPFB304</b></dt>
|
|
<dd>User does not have required special authorities.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGSECA.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|