560 lines
24 KiB
HTML
560 lines
24 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 Authority (CHGAUT)</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="CHGAUT.Top_Of_Page"></a>
|
|
<h2>Change Authority (CHGAUT)</h2>
|
|
<table width="100%">
|
|
<tr>
|
|
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
|
|
<b>Threadsafe: </b>Yes
|
|
</td>
|
|
<td valign="top" align="right">
|
|
<a href="#CHGAUT.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#CHGAUT.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#CHGAUT.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="CHGAUT"></a>
|
|
<p>The Change Authority (CHGAUT) command is used to change a user's authority for the object or group of objects named in this command. An object name pattern can be used to change authority for a group of related objects.
|
|
</p>
|
|
<p>The CHGAUT command can also be used to change the authority of a directory tree where the directory, its contents, and the contents of all of its subdirectories are to have the authority changed. If SUBTREE(*ALL) is specified, this command will attempt to change the authority of all objects within the subtree. A diagnostic message will be sent for each object that could not have its authority changed and, when all of the objects have been attempted, an escape message will be sent. If all of the objects had their authority changed with no errors, a completion message will be sent.
|
|
</p>
|
|
<p>If a symbolic link object is encountered, either specified in the <b>Object (OBJ)</b> parameter or encountered in the processing of a subtree, the value specified for the <b>Symbolic link (SYMLNK)</b> parameter will be applied to that symbolic link object. If processing a subtree, the processing of that branch of the subtree then stops because a symbolic link object itself cannot have subtrees.
|
|
</p>
|
|
<p>Authority can be given to:
|
|
</p>
|
|
<ul>
|
|
<li>Named users
|
|
</li>
|
|
<li>PUBLIC users who do not have authority specifically given to them either for the object or for the authorization list
|
|
</li>
|
|
<li>The NetWare Inherited Rights Filter for the file (used only by the QNetWare file system)
|
|
</li>
|
|
<li>Groups of users who do not have any authority to the object or are not on the authorization list that secures the object
|
|
</li>
|
|
<li>Users on an established authorization list.
|
|
</li>
|
|
</ul>
|
|
<p>The AUTL value on the DTAAUT parameter specifies the authority for the following users:
|
|
</p>
|
|
<ul>
|
|
<li>Users who do not have authority specifically given to them for an object
|
|
</li>
|
|
<li>Users who are not on the authorization list that secures the object
|
|
</li>
|
|
<li>Users whose groups do not have authority specifically given to it
|
|
</li>
|
|
<li>Users whose groups are not on the authorization list that secures the object.
|
|
</li>
|
|
</ul>
|
|
<p>DTAAUT(*AUTL) is allowed only with USER(*PUBLIC). User profiles cannot be secured by an authorization list.
|
|
</p>
|
|
<p>See Appendix D of the iSeries Security Reference, SC41-5302 for the authorities needed to use this command.
|
|
</p>
|
|
<p>For more information about integrated file system commands, see the Integrated file system information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
|
|
</p>
|
|
<p><b>Restrictions:</b>
|
|
</p>
|
|
<ul>
|
|
<li>When doing subtree processing, you must also have read (*R) and execute (*X) authorities to the path name and all subdirectories within that path.
|
|
</li>
|
|
<li>If changing authority for an object in the QSYS.LIB or independent ASP QSYS.LIB file system:
|
|
<ol>
|
|
<li>A user must either be the owner of the object or have all object (*ALLOBJ) special authority to use this command on an object.
|
|
</li>
|
|
<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>This command should not be used to change the authority for an authorization list object (/QSYS.LIB/authorization-list-name.AUTL).
|
|
</li>
|
|
<li>DTAAUT(*AUTL) is valid only with USER(*PUBLIC).
|
|
</li>
|
|
<li>Before you give authorities to use a device, controller, or line description, its associated device, controller, or line must be varied on.
|
|
</li>
|
|
<li>For display stations or for work station message queues associated with the display station you can either: (1) enter this command at the device for which authorities are to be granted or (2) precede this command with the Allocate Object (ALCOBJ) command and follow this command with the Deallocate Object (DLCOBJ) command.
|
|
</li>
|
|
</ol>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="CHGAUT.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="#CHGAUT.OBJ"><b>OBJ</b></a></td>
|
|
<td valign="top">Object</td>
|
|
<td valign="top"><i>Path name</i></td>
|
|
<td valign="top">Required, Positional 1</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CHGAUT.USER"><b>USER</b></a></td>
|
|
<td valign="top">User</td>
|
|
<td valign="top">Single values: *PUBLIC, *NTWIRF<br>Other values (up to 50 repetitions): <i>Name</i></td>
|
|
<td valign="top">Optional, Positional 2</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CHGAUT.DTAAUT"><b>DTAAUT</b></a></td>
|
|
<td valign="top">New data authorities</td>
|
|
<td valign="top"><b><u>*SAME</u></b>, *NONE, *RWX, *RX, *RW, *WX, *R, *W, *X, *EXCLUDE, *AUTL</td>
|
|
<td valign="top">Optional, Positional 3</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CHGAUT.OBJAUT"><b>OBJAUT</b></a></td>
|
|
<td valign="top">New object authorities</td>
|
|
<td valign="top">Single values: <b><u>*SAME</u></b>, *NONE, *ALL<br>Other values (up to 4 repetitions): *OBJEXIST, *OBJMGT, *OBJALTER, *OBJREF</td>
|
|
<td valign="top">Optional, Positional 4</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CHGAUT.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"><a href="#CHGAUT.SUBTREE"><b>SUBTREE</b></a></td>
|
|
<td valign="top">Directory subtree</td>
|
|
<td valign="top"><b><u>*NONE</u></b>, *ALL</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CHGAUT.SYMLNK"><b>SYMLNK</b></a></td>
|
|
<td valign="top">Symbolic link</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="#CHGAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="CHGAUT.OBJ"></a>
|
|
<h3>Object (OBJ)</h3>
|
|
<p>Specifies the object, or a pattern to match multiple objects, for which specific authorities are to be given to one or more users or to an authorization list.
|
|
</p>
|
|
<p>For more information on specifying path names, refer to "Object naming rules" in the 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>path-name</i></b></dt>
|
|
<dd>Specify the path name of the objects for which specific authorities are to be changed.
|
|
<p>The object path name can be either a simple name or a name that is qualified with the name of the directory in which the object is located. A pattern can be specified in the last part of the path name. An asterisk (*) matches any number of characters and a question mark (?) matches a single character. If the path name is qualified or contains a pattern, it must be enclosed in apostrophes.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CHGAUT.USER"></a>
|
|
<h3>User (USER)</h3>
|
|
<p>Specifies the users for whom authorities to the objects specified for the <b>Object (OBJ)</b> parameter are to be changed. If user names are specified, the authorities are changed specifically for those users.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>Either this parameter or the <b>Authorization list (AUTL)</b> parameter must be specified.
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>*PUBLIC</b></dt>
|
|
<dd>All users who do not have authority specifically given to them for the object, who are not on the authorization list, whose user group does not have any authority, or whose user group is not on the authorization list, are authorized to use the object as specified for the <b>New data authorities (DTAAUT)</b> and <b>New object authorities (OBJAUT)</b> parameters.
|
|
</dd>
|
|
<dt><b>*NTWIRF</b></dt>
|
|
<dd>The NetWare Inherited Rights Filter for the file is authorized to use the object as specified in the DTAAUT and OBJAUT parameters. This value is used only by the QNetWare file system.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Other values (up to 50 repetitions)</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the user profile name of the user who you want to have 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="#CHGAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CHGAUT.DTAAUT"></a>
|
|
<h3>New data authorities (DTAAUT)</h3>
|
|
<p>Specifies the data authorities to be given to the users specified for the <b>User (USER)</b> parameter. If a value other than *SAME is specified, the value replaces any data authorities that the users currently have to the objects.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*SAME</u></b></dt>
|
|
<dd>The users' data authorities to the objects do not change.
|
|
</dd>
|
|
<dt><b>*NONE</b></dt>
|
|
<dd>The users do not have any of the data authorities to the objects.
|
|
</dd>
|
|
<dt><b>*RWX</b></dt>
|
|
<dd>The users are given *RWX authority to the objects. The users are given *RWX authority to perform all operations on the object except those limited to the owner or controlled by object existence, object management, object alter, and object reference authority. The user can change the object and perform basic functions on the object. *RWX authority provides object operational authority and all the data authorities.
|
|
</dd>
|
|
<dt><b>*RX</b></dt>
|
|
<dd>The users are given *RX authority to perform basic operations on the object, such as run a program or display the contents of a file. The user is prevented from changing the object. *RX authority provides object operational authority and read and execute authorities.
|
|
</dd>
|
|
<dt><b>*RW</b></dt>
|
|
<dd>The users are given *RW authority to view the contents of an object and change the contents of an object. *RW authority provides object operational authority and data read, add, update, and delete authorities.
|
|
</dd>
|
|
<dt><b>*WX</b></dt>
|
|
<dd>The users are given *WX authority to change the contents of an object and run a program or search a library or directory. *WX authority provides object operational authority and data add, update, delete, and execute authorities.
|
|
</dd>
|
|
<dt><b>*R</b></dt>
|
|
<dd>The users are given *R authority to view the contents of an object. *R authority provides object operational authority and data read authority.
|
|
</dd>
|
|
<dt><b>*W</b></dt>
|
|
<dd>The users are given *W authority to change the contents of an object. *W authority provides object operational authority and data add, update, and delete authorities.
|
|
</dd>
|
|
<dt><b>*X</b></dt>
|
|
<dd>The users are given *X authority to run a program or search a library or directory. *X authority provides object operational authority and data execute authority.
|
|
</dd>
|
|
<dt><b>*EXCLUDE</b></dt>
|
|
<dd>Exclude authority prevents the user from accessing the object.
|
|
</dd>
|
|
<dt><b>*AUTL</b></dt>
|
|
<dd>The public authority of the authorization list specified in the AUTL parameter is used for the public authority for the object.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CHGAUT.OBJAUT"></a>
|
|
<h3>New object authorities (OBJAUT)</h3>
|
|
<p>Specifies the object authorities to be given to the users specified for the <b>User (USER)</b> parameter. If a value other than *SAME is specified, the value replaces any object authorities (*OBJEXIST, *OBJMGT, *OBJALTER, and *OBJREF) that the users currently have to the objects.
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*SAME</u></b></dt>
|
|
<dd>The users' object authorities to the objects do not change.
|
|
</dd>
|
|
<dt><b>*NONE</b></dt>
|
|
<dd>The users do not have any other object authorities (existence, management, alter, or reference). If *EXCLUDE or *AUTL is specified for the DTAAUT parameter, this value must be specified.
|
|
</dd>
|
|
<dt><b>*ALL</b></dt>
|
|
<dd>All of the other object authorities (existence, management, alter, and reference) are given to the users.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Other values (up to 4 repetitions)</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>*OBJEXIST</b></dt>
|
|
<dd>The users are given object existence authority to the object.
|
|
</dd>
|
|
<dt><b>*OBJMGT</b></dt>
|
|
<dd>The users are given object management authority to the object.
|
|
</dd>
|
|
<dt><b>*OBJALTER</b></dt>
|
|
<dd>The users are given object alter authority to the object.
|
|
</dd>
|
|
<dt><b>*OBJREF</b></dt>
|
|
<dd>The users are given object reference authority to the object.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CHGAUT.AUTL"></a>
|
|
<h3>Authorization list (AUTL)</h3>
|
|
<p>Specifies the authorization list whose users are to be given authority to the objects specified for the <b>Object (OBJ)</b> parameter.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>Either this parameter or the <b>Users (USER)</b> parameter must be specified. If this parameter is specified, the DTAAUT and OBJAUT parameters are ignored.
|
|
</p>
|
|
<dl>
|
|
<dt><b>*NONE</b></dt>
|
|
<dd>The current authorization list is removed from the object.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the authorization list to be used to secure the object. If the object is currently secured by an authorization list, the specified authorization list will now be used to secure the object.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CHGAUT.SUBTREE"></a>
|
|
<h3>Directory subtree (SUBTREE)</h3>
|
|
<p>Specifies whether or not to change the objects within the subtree if the object specified by the <b>Object (OBJ)</b> parameter is a directory or a library.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NONE</u></b></dt>
|
|
<dd>The objects specified by the OBJ parameter are changed. If the object is a directory or a library, it will be changed, but the directory or library contents will not be changed.
|
|
</dd>
|
|
<dt><b>*ALL</b></dt>
|
|
<dd>The objects specified by the OBJ parameter are changed. If the object is a directory or a library, it will be changed as well as the contents of the directory or library and the contents of all subdirectories.
|
|
<p>
|
|
<b>Note: </b>Pattern matching from the OBJ parameter only applies to the first level objects. If the first level object is a directory or a library, the pattern matching does not apply to the directory or library contents or the contents of the subdirectories.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>This command may run a long time when SUBTREE(*ALL) is specified if there are many subdirectories to be processed.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CHGAUT.SYMLNK"></a>
|
|
<h3>Symbolic link (SYMLNK)</h3>
|
|
<p>If the object is a symbolic link, specifies whether or not to change the symbolic link or the object pointed to by the symbolic link.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NO</u></b></dt>
|
|
<dd>The symbolic link object is not changed. The object pointed to by the symbolic link is changed.
|
|
</dd>
|
|
<dt><b>*YES</b></dt>
|
|
<dd>If the object is a symbolic link, the symbolic link is changed. The object pointed to by the symbolic link is not changed.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="CHGAUT.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p><b>Example 1: Changing authority to all users</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
CHGAUT OBJ('/QSYS.LIB/USERLIB.LIB/PROGRAM1.PGM')
|
|
USER(*PUBLIC) DTAAUT(*RW)
|
|
</pre>
|
|
</p>
|
|
<p>This command gives authority to use and change 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 OBJAUT parameter is not specified, any object authorities *PUBLIC already has remain.
|
|
</p>
|
|
<p><b>Example 2: Changing authority to users on authorization List</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
CHGAUT OBJ('/QSYS.LIB/MYLIB.LIB/PRGM3.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>
|
|
<p><b>The following examples use the chart below:</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
* sym1 (symbolic link to dir1)
|
|
*
|
|
*
|
|
* dir1
|
|
* * * *
|
|
* * * *
|
|
* * * *
|
|
* dir2.1 dir2.2 dir2.3
|
|
* * * *
|
|
* * * *
|
|
* dir3.1 dir3.2 sym3.3 (symbolic link to dirA)
|
|
*
|
|
*
|
|
* dirA
|
|
* * * *
|
|
* * * *
|
|
* * * *
|
|
* dirB.1 dirB.2 dirB.3
|
|
*
|
|
</pre>
|
|
</p>
|
|
<p><b>Example 3: Changing authority of a symbolic link when SYMLNK(*NO)</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
CHGAUT OBJ('/sym1') USER(JOEUSER) DTAAUT(*RX)
|
|
SUBTREE(*ALL) SYMLNK(*NO)
|
|
</pre>
|
|
</p>
|
|
<p>This command will first determine if there are subtrees to process. Since the object specified in the OBJ parameter is a symbolic link, the SUBTREE parameter will be ignored because a symbolic link object does not have subtrees. Next, the object pointed to by symbolic link sym1 (dir1) will be changed because the SYMLNK parameter specifies that the symbolic link object not be changed.
|
|
</p>
|
|
<p>In this example, JOEUSER's authority to dir1 is changed. It does not change JOEUSER's authority to the symbolic link object (sym1) and it does not change JOEUSER's authority to the contents of dir1.
|
|
</p>
|
|
<p><b>Example 4: Changing authority of a symbolic link when SYMLNK(*YES)</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
CHGAUT OBJ('/sym1') USER(JOEUSER) DTAAUT(*R) OBJAUT(*OBJMGT)
|
|
SUBTREE(*ALL) SYMLNK(*YES)
|
|
</pre>
|
|
</p>
|
|
<p>This command will first determine if there are subtrees to process. Since the object specified in the OBJ parameter is a symbolic link, the SUBTREE parameter will be ignored because a symbolic link object does not have subtrees. Next, the symbolic link object (sym1) will be changed because the SYMLNK parameter specifies that the symbolic link object be changed.
|
|
</p>
|
|
<p>In this example, JOEUSER's authority to sym1 is changed. It does not change JOEUSER's authority to the object pointed to by the symbolic link (dir1) and it does not change JOEUSER's authority to the contents of dir1.
|
|
</p>
|
|
<p><b>Example 5: Changing authority of a directory when SUBTREE(*ALL) and SYMLNK(*NO)</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
CHGAUT OBJ('/dir1') USER(JOEUSER) DTAAUT(*R) OBJAUT(*OBJMGT)
|
|
SUBTREE(*ALL) SYMLNK(*NO)
|
|
</pre>
|
|
</p>
|
|
<p>This command will first determine if there are subtrees to process. Since the object specified in the OBJ parameter is a directory, the subtrees will be processed. When the processing of the tree encounters a *SYMLNK object, the value for the SYMLNK parameter will be applied to that *SYMLNK object. When the SYMLNK parameter is *NO, the object the symbolic link points to will be changed. The processing of that branch of the tree then stops because the *SYMLNK object itself does not have a subtree.
|
|
</p>
|
|
<p>In this example, JOEUSER's authority to dir1, dir2.1, dir2.2, dir2.3, dir3.1, dir3.2, dirA is changed. It does not change JOEUSER's authority to sym3.3, dirB.1, dirB.2, dirB.3.
|
|
</p>
|
|
<p><b>Example 6: Changing authority of a directory when SUBTREE(*ALL) and SYMLNK(*YES)</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
CHGAUT OBJ('/dir1') USER(JOEUSER) DTAAUT(*R) OBJAUT(*OBJMGT)
|
|
SUBTREE(*ALL) SYMLNK(*YES)
|
|
</pre>
|
|
</p>
|
|
<p>This command will first determine if there are subtrees to process. Since the object specified in the OBJ parameter is a directory, the subtrees will be processed. When the processing of the tree encounters a *SYMLNK object, the value for the SYMLNK parameter will be applied to the *SYMLNK object. When the SYMLNK parameter is *YES, the symbolic link object will be changed. The processing of that branch of the tree then stops because the *SYMLNK object itself does not have a subtree.
|
|
</p>
|
|
<p>In this example, JOEUSER's authority to dir1, dir2.1, dir2.2, dir2.3, dir3.1, dir3.2, sym3.3 is changed. It does not change JOEUSER's authority to dirA, dirB.1, dirB.2, dirB.3.
|
|
</p>
|
|
<p><b>Example 7: Changing authority of a directory when SUBTREE(*NONE) and SYMLNK(*NO)</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
CHGAUT OBJ('/dir1') USER(JOEUSER) DTAAUT(*R) OBJAUT(*OBJMGT)
|
|
SUBTREE(*NONE) SYMLNK(*NO)
|
|
</pre>
|
|
</p>
|
|
<p>This command will not process subtrees. Since the object specified in the OBJ parameter is not a symbolic link, the SYMLNK parameter will be ignored.
|
|
</p>
|
|
<p>JOEUSER's authority to dir1 is changed.
|
|
</p>
|
|
<p><b>NOTE:</b>
|
|
</p>
|
|
<p>The only way to change dirB.1, dirB.2, and dirB.3 is to specify them individually in the OBJ parameter of the change command, or to specify the change command with OBJ(dirA) and SUBTREE(*ALL).
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="CHGAUT.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPE3101</b></dt>
|
|
<dd>A non-recoverable I/O error occurred.
|
|
</dd>
|
|
<dt><b>CPE3408</b></dt>
|
|
<dd>The address used for an argument was not correct.
|
|
</dd>
|
|
<dt><b>CPE3418</b></dt>
|
|
<dd>Possible APAR condition or hardware failure.
|
|
</dd>
|
|
<dt><b>CPE3474</b></dt>
|
|
<dd>Unknown system state.
|
|
</dd>
|
|
<dt><b>CPFA0AA</b></dt>
|
|
<dd>Error occurred while attempting to obtain space.
|
|
</dd>
|
|
<dt><b>CPFA0AB</b></dt>
|
|
<dd>Operation failed for object. Object is &1.
|
|
</dd>
|
|
<dt><b>CPFA0AD</b></dt>
|
|
<dd>Function not supported by file system.
|
|
</dd>
|
|
<dt><b>CPFA0A2</b></dt>
|
|
<dd>Information passed to this operation was not valid.
|
|
</dd>
|
|
<dt><b>CPFA0A3</b></dt>
|
|
<dd>Path name resolution causes looping.
|
|
</dd>
|
|
<dt><b>CPFA0A4</b></dt>
|
|
<dd>Too many open files for process.
|
|
</dd>
|
|
<dt><b>CPFA0A7</b></dt>
|
|
<dd>Path name too long.
|
|
</dd>
|
|
<dt><b>CPFA0A9</b></dt>
|
|
<dd>Object not found. Object is &1.
|
|
</dd>
|
|
<dt><b>CPFA0B1</b></dt>
|
|
<dd>Requested operation not allowed. Access problem.
|
|
</dd>
|
|
<dt><b>CPFA0C1</b></dt>
|
|
<dd>CCSID &1 not valid.
|
|
</dd>
|
|
<dt><b>CPFA0DD</b></dt>
|
|
<dd>Function was interrupted.
|
|
</dd>
|
|
<dt><b>CPFA0D4</b></dt>
|
|
<dd>File system error occurred. Error number &1.
|
|
</dd>
|
|
<dt><b>CPFA08B</b></dt>
|
|
<dd>Path name cannot begin with *.
|
|
</dd>
|
|
<dt><b>CPFA08C</b></dt>
|
|
<dd>Pattern not allowed in path name directory.
|
|
</dd>
|
|
<dt><b>CPFA085</b></dt>
|
|
<dd>Home directory not found for user &1.
|
|
</dd>
|
|
<dt><b>CPFA086</b></dt>
|
|
<dd>Matching quote not found in path name.
|
|
</dd>
|
|
<dt><b>CPFA087</b></dt>
|
|
<dd>Path name contains null character.
|
|
</dd>
|
|
<dt><b>CPFA088</b></dt>
|
|
<dd>Path name pattern not valid.
|
|
</dd>
|
|
<dt><b>CPFA089</b></dt>
|
|
<dd>Pattern not allowed in path name.
|
|
</dd>
|
|
<dt><b>CPFA09C</b></dt>
|
|
<dd>Not authorized to object. Object is &1.
|
|
</dd>
|
|
<dt><b>CPFA09D</b></dt>
|
|
<dd>Error occurred in program &1.
|
|
</dd>
|
|
<dt><b>CPFA09E</b></dt>
|
|
<dd>Object in use. Object is &1.
|
|
</dd>
|
|
<dt><b>CPFA091</b></dt>
|
|
<dd>Pattern not allowed in user name.
|
|
</dd>
|
|
<dt><b>CPFA092</b></dt>
|
|
<dd>Path name not converted.
|
|
</dd>
|
|
<dt><b>CPFA094</b></dt>
|
|
<dd>Path name not specified.
|
|
</dd>
|
|
<dt><b>CPFBC50</b></dt>
|
|
<dd>Path name or path names not found.
|
|
</dd>
|
|
<dt><b>CPF223A</b></dt>
|
|
<dd>&1 objects changed, &2 objects not changed.
|
|
</dd>
|
|
<dt><b>CPF22F0</b></dt>
|
|
<dd>Unexpected errors occurred during processing.
|
|
</dd>
|
|
<dt><b>CPF3BF6</b></dt>
|
|
<dd>Path Type value is not valid.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGAUT.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|