373 lines
16 KiB
HTML
373 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>Change Auditing Value (CHGAUD)</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="CHGAUD.Top_Of_Page"></a>
|
||
|
<h2>Change Auditing Value (CHGAUD)</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="#CHGAUD.PARAMETERS.TABLE">Parameters</a><br>
|
||
|
<a href="#CHGAUD.COMMAND.EXAMPLES">Examples</a><br>
|
||
|
<a href="#CHGAUD.ERROR.MESSAGES">Error messages</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<div> <a name="CHGAUD"></a>
|
||
|
<p>The Change Auditing Value (CHGAUD) command sets up or changes auditing on an object or group of objects. An object name pattern can be used to change authority for a group of related objects.
|
||
|
</p>
|
||
|
<p>The CHGAUD command can also be used to change auditing of a directory tree where the directory, its contents, and the contents of all of its subdirectories are to have auditing changed. If SUBTREE(*ALL) is specified, this command will attempt to change the auditing of all objects within the subtree. A diagnostic message will be sent for each object that could not have its auditing changed and, when all of the objects have been attempted, an escape message will be sent. If all of the objects had auditing 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>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>
|
||
|
<p>You must have audit (*AUDIT) special authority to use this command. Users with *AUDIT special authority can turn auditing on or off for an object regardless of whether they have authority to the object.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CHGAUD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
|
||
|
<div>
|
||
|
<h3><a name="CHGAUD.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="#CHGAUD.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="#CHGAUD.OBJAUD"><b>OBJAUD</b></a></td>
|
||
|
<td valign="top">Object auditing value</td>
|
||
|
<td valign="top"><b><u>*NONE</u></b>, *USRPRF, *CHANGE, *ALL</td>
|
||
|
<td valign="top">Optional, Positional 2</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CHGAUD.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="#CHGAUD.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="#CHGAUD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div> <a name="CHGAUD.OBJ"></a>
|
||
|
<h3>Object (OBJ)</h3>
|
||
|
<p>Specifies the object, or a pattern to match multiple objects, for which auditing values are to be changed.
|
||
|
</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 whose auditing value is 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="#CHGAUD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CHGAUD.OBJAUD"></a>
|
||
|
<h3>Object auditing value (OBJAUD)</h3>
|
||
|
<p>Specifies the object auditing value to associated with the object.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NONE</u></b></dt>
|
||
|
<dd>Using or changing this object does not cause an audit entry to be sent to the security journal.
|
||
|
</dd>
|
||
|
<dt><b>*USRPRF</b></dt>
|
||
|
<dd>The user profile of the user accessing this object is used to determine if an audit record is sent for this access. The OBJAUD parameter of the Change User Audit (CHGUSRAUD) command is used to turn auditing on for a specific user.
|
||
|
</dd>
|
||
|
<dt><b>*CHANGE</b></dt>
|
||
|
<dd>All change accesses to this object by all users are logged.
|
||
|
</dd>
|
||
|
<dt><b>*ALL</b></dt>
|
||
|
<dd>All change or read accesses to this object by all users are logged.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CHGAUD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CHGAUD.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="#CHGAUD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CHGAUD.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="#CHGAUD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="CHGAUD.COMMAND.EXAMPLES">Examples</a> </h3>
|
||
|
<p><b>Example 1: Changing object auditing value of a file</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
CHGAUD OBJ('/QSYS.LIB/PAYROLL.LIB/PAYFILE.FILE')
|
||
|
OBJAUD(*CHANGE)
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command changes the object auditing value of the PAYFILE file in the PAYROLL library. The auditing value of the PAYFILE file is changed so that all change access to the file by all users is logged by the system.
|
||
|
</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 2: Changing object auditing value of a symbolic link when SYMLNK(*NO)</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
CHGAUD OBJ('/sym1') OBJAUD(*CHANGE) 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, the object auditing value for dir1 is changed so that all change access to the directory by all users is logged by the system. It does not change the object auditing value of the symbolic link object (sym1) and it does not change the object auditing value of the contents of dir1.
|
||
|
</p>
|
||
|
<p><b>Example 3: Changing object auditing value of a symbolic link when SYMLNK(*YES)</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
CHGAUD OBJ('/sym1') OBJAUD(*CHANGE) 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, the object auditing value for sym1 is changed so that all change access to the symbolic link by all users is logged by the system. It does not change the object auditing value of the object pointed to by the symbolic link (dir1) and it does not change the object auditing value of the contents of dir1.
|
||
|
</p>
|
||
|
<p><b>Example 4: Changing object auditing value of a directory when SUBTREE(*ALL) and SYMLNK(*NO)</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
CHGAUD OBJ('/dir1') OBJAUD(*CHANGE) 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, the object auditing value for dir1, dir2.1, dir2.2, dir2.3, dir3.1, dir3.2, dirA is changed so that all change access to those directories by all users is logged by the system. The object auditing value of sym3.3, dirB.1, dirB.2, dirB.3 is not changed.
|
||
|
</p>
|
||
|
<p><b>Example 5: Changing object auditing value of a directory when SUBTREE(*ALL) and SYMLNK(*YES)</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
CHGAUD OBJ('/dir1') OBJAUD(*CHANGE) 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, the object auditing value for dir1, dir2.1, dir2.2, dir2.3, dir3.1, dir3.2, sym3.3 is changed so that all change access to those directories and symbolic link by all users is logged by the system. The object auditing value of dirA, dirB.1, dirB.2, dirB.3 is not changed.
|
||
|
</p>
|
||
|
<p><b>Example 6: Changing object auditing value of a directory when SUBTREE(*NONE) and SYMLNK(*NO)</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
CHGAUD OBJ('/dir1') OBJAUD(*CHANGE) 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>The object auditing value of dir1 is changed so that all change access to the directory by all users is logged by the system.
|
||
|
</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="#CHGAUD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="CHGAUD.ERROR.MESSAGES">Error messages</a> </h3>
|
||
|
<p><b><u>*ESCAPE Messages</u></b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>CPE3526</b></dt>
|
||
|
<dd>Journal damaged.
|
||
|
</dd>
|
||
|
<dt><b>CPE3527</b></dt>
|
||
|
<dd>Journal inactive.
|
||
|
</dd>
|
||
|
<dt><b>CPE3528</b></dt>
|
||
|
<dd>Journal space or system storage error.
|
||
|
</dd>
|
||
|
<dt><b>CPE3529</b></dt>
|
||
|
<dd>Journal is remote.
|
||
|
</dd>
|
||
|
<dt><b>CPE3530</b></dt>
|
||
|
<dd>New journal receiver is needed.
|
||
|
</dd>
|
||
|
<dt><b>CPE3531</b></dt>
|
||
|
<dd>New journal is needed.
|
||
|
</dd>
|
||
|
<dt><b>CPE3532</b></dt>
|
||
|
<dd>Object already journaled.
|
||
|
</dd>
|
||
|
<dt><b>CPE3450</b></dt>
|
||
|
<dd>Descriptor not valid.
|
||
|
</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>CPFA0DE</b></dt>
|
||
|
<dd>Object type not valid for request. Object is &1.
|
||
|
</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>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>CPF22B0</b></dt>
|
||
|
<dd>Not authorized to change the auditing value.
|
||
|
</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>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CHGAUD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|